Tableau-Powershell-Scripts icon indicating copy to clipboard operation
Tableau-Powershell-Scripts copied to clipboard

Error code on blank view export

Open Jonathanhumphries-dev opened this issue 3 years ago • 0 comments

Hey Glen, this has been extremely helpful to us. One issue I'm currently facing is when exporting an excel crosstab when the view is blank. I know we can't download the excel file but I would like to be able to capture the error code. Do you know the syntax for capturing the 6 digit error code indicating the view is empty? I have tried using $.Exception.Message and $.ScriptStackTrace but it doesn't provide an accurate return value.

Thank you, Jon

Jonathanhumphries-dev avatar Jun 28 '22 21:06 Jonathanhumphries-dev