Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publish hyper file does not work #67

Open
mcdowellalex opened this issue Jul 14, 2022 · 1 comment
Open

Publish hyper file does not work #67

mcdowellalex opened this issue Jul 14, 2022 · 1 comment

Comments

@mcdowellalex
Copy link

mcdowellalex commented Jul 14, 2022

https://github.com/tableau/hyper-api-samples/blob/main/Community-Supported/publish-hyper/publish-hyper-file.py

This example does not seem to publish the data source.

I don't get any errors and I get the full print statements:

Creating single table for publishing.
Tables available in customer.hyper are: [TableName('Extract', 'Extract')]
The number of rows in table "Extract"."Extract" is 2.
The connection to the Hyper file has been closed.
The Hyper process has been shut down.
Signing into ... at https://10ax.online.tableau.com/
Publishing customer.hyper to Group A Reports...
Datasource published. Datasource ID:...

However, when I go into the Tableau Server, there is no data source. I have even tried the following code after publishing to see if I could find it anywhere and no luck

all_datasources, pagination_item = server.datasources.get()
print("\nThere are {} datasources on site: ".format(pagination_item.total_available))
print([datasource.name for datasource in all_datasources])

Is there an updated version or way to publish data sources (specifically hyper files)?

@jonas-eckhardt
Copy link
Contributor

I just tried it and it works on my side.

Can you please double-check by manually logging into Tableau Server, click on "Explore" on the left side, select "All Datasources", on the right side, there is a filter option and select your name as owner, and then it should show up in there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants