I’m struggling to save the output of a report using get-report (or get-v2024report). I just upgraded to v1.4.8 of the sdk, but now I get the following error. What am I doing wrong?
Thanks!
Just a sanity check but is your config.json file in that directory? You can verify by running Get-DefaultConfiguration
Thanks for the sanity check. I use the env variables instead of config.json. All the other commands work fine, but this continues to throw the error. 1.4.6 version got further but I couldn’t figure out how to save the output to a file. It was always corrupted. It was coming down as an application/zip but stuffed into a string.
I am also seeing this error on deny-AccessRequest, which used to work as well.
Downgraded to 1.4.7, things are working better now
Hey @blanked,
I wasn’t able to replicate this with v1.4.8 of the SDK, I do see that it comes back with application/zip instead of the file format provided. I will update the docs and work with the team to see if something changed there.
I am curious, does this happen with every report id? I am wondering if the one you were using got into a weird state.
PS /Users/tyler.mairose/development/powershell-sdk> Get-V2024Report -TaskResultId d14dcef34d7e4c288656cb355323d36f -FileFormat csv -Verbose -WithHttpInfo
VERBOSE: Request Headers:
Name Value
---- -----
Authorization Bearer *****
X-SailPoint-SDK Powershell-1.4.8
User-Agent OpenAPI-Generator/1.4.8/ps
Accept application/csv
VERBOSE: Request Body:
VERBOSE: Requested HTTP/1.1 GET with 0-byte payload
VERBOSE: Received HTTP/1.1 response of content type application/zip of unknown size
Name Value
---- -----
StatusCode 200
Headers {[Date, System.String[]], [Transfer-Encoding, System.String[]], [Connection, System.String[]], [Server, System.String[]]…}
Response PK........??\Z............T...Accounts Report-Example CSV Source-2c91808684149198018415574b9b15f4 202502282322.csv???J?0.??.??..?$????^tA?"Z?r.6???…
The “cannot convert value” error is fixed in 1.4.9 and up.
The output-saving for get-report is fixed in 1.4.11.
Thanks for the quick resolutions!!
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.