Closed AymanAlneser closed 3 years ago
Found the issue in publisher.py datasource_item = server.datasources.publish(datasource_item=datasource_item, file=self.hyper_file_path, mode=create_mode)
the argument is called file not file path , even though the docs from tableau says it should be file_path changing this has fixed the issue for me
when I try to publish to tableau using this code
luid = hf.publish(tableau_server_url=tableau_server, username=username, password=password, site_id=site_id, project_name=project_name, datasource_name=datasource_name) print(f'Published Hyper File as new datasource luid: {luid}')
I get the error : TypeError: publish() got an unexpected keyword argument 'file_path'
I saw that Publish() does not expect the path argument
TypeError Traceback (most recent call last)