-
Notifications
You must be signed in to change notification settings - Fork 422
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
Filter parameters in live connection are ignored during PDF or CSV generation #1438
Comments
|
Hi @jorwoods, |
Hi @jorwoods, |
I'm working on reproducing this. Will update here as I learn more. As a workaround, people experiencing this might try using the REST API directly. TSC is just a thing wrapper on the REST APIs, so testing with them directly could help determine whether this is a backend or TSC side issue. |
I tried various workbooks/views on Tableau Server & Cloud and can't reproduce this yet. I tried on both live datasources and extracts. I did notice using @mohit-rana85 can you share more details about your environment, including:
|
Hi @bcantoni, Thank you for your efforts. I have tested the REST API directly using the parameter method along with the VF method, both with and without including the data source name in the query. Additionally, I attempted to add all filter values to the VF method. However, I was unable to generate the correct reports. Please find the code for your review test_rest_api_pdf_generation.txt. To further investigate, I performed another test to determine if the live connection is causing the problem. I created two views: one containing parameters from an extract and another with parameters only from a live connection. The filter works as expected on both sheets. Additionally, I conducted a test where both connections were live, and I interchanged the primary and secondary data sources in the relationship blend. In both cases, the data source included as a secondary data source in the relationship blend was completely ignored. Based on these tests, my hypothesis is that the issue arises from the relationship blend, where the data source in the secondary status is ignored by the REST API and Tableau Server Client code. Environment used for testing: Please let me know if any additional information is needed. |
Describe the bug
Our workbooks contain data sources in extract mode for performance optimization. However, some data sources that are required for annotating the data need to remain in live connection mode to enhance the user experience. When we generate a pdf or csv from a view using the TSC package, all parameters in the extract are considered by the code, but the filters specific to selecting data in the live connection are ignored.
Versions
Details of your environment, including:
To Reproduce
Steps to reproduce the behavior. Please include a code snippet where possible.
We have a workbook with Impala connection (Extract) and oracle connection (Live connection).
Python code:
Results
What are the results or error messages received?
The PDF generated with the above code produces a report that ignores the "selected" parameter. The expected behavior is that the PDF should be generated considering all specified parameters, including those associated with the live connection.
NOTE: Be careful not to post user names, passwords, auth tokens or any other private or sensitive information.
The text was updated successfully, but these errors were encountered: