Tableau Activities - Error when downloading View Crosstab

Hi everyone!
I’m trying to download several views crosstabs from tableau with the activity “Download View Crosstab Excel” . For some of them I don’t have any problem. But with a lot of them it appears this error:
“Activity ended with error: Error Code: [Status Code : 400 : BadRequest : Error in downloading file ] Message: Unable to download the specified Excel”
I already try using Basic Auth and API Token to configure the Tableau Application Scope.
Please help!
Thanks!

The “Activity ended with error: Error Code: [Status Code : 400 : BadRequest : Error in downloading file]” message indicates that there is an issue with downloading the specified Excel file from Tableau. This error can occur due to various reasons, such as authentication issues, incorrect parameters, or limitations in Tableau’s API.

Here are a few suggestions to troubleshoot the issue:

  1. Verify Authentication: Ensure that you have provided the correct authentication credentials (Basic Auth or API Token) in the Tableau Application Scope activity. Double-check the username, password, and site URL if you’re using Basic Auth. If you’re using an API Token, make sure it is valid and has appropriate permissions.

  2. Check View Permissions: Ensure that the account you are using to access Tableau has sufficient permissions to download the views you are targeting. Confirm that the account can access the views and export them as crosstabs manually in the Tableau interface.

  3. Confirm View Existence: Double-check that the views you are trying to download actually exist in Tableau. It’s possible that the view names or IDs provided in the activity are incorrect or have changed.

  4. Validate View Parameters: Review the parameters you are passing to the “Download View Crosstab Excel” activity. Ensure that the view names or IDs, filters, and any other parameters are correctly configured. You might try downloading a simple view without any filters to see if that works as expected.

  5. Check Tableau Server/API Limitations: Tableau Server or the Tableau API may have limitations on the number of concurrent downloads or the size of the exported file. Check Tableau’s documentation or contact their support to verify if there are any restrictions that could be causing the issue.

If the issue persists after trying the above suggestions, you may need to provide additional details about your Tableau setup, the specific views you are trying to download, and the configuration of your UiPath workflow. This information will help in further diagnosing the problem and providing a more specific solution.