Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Ericga
Contributor III
Contributor III

403 - Forbidden Error When Retreiving Lineage using CLI

 

I am attempting to retreive the lineage for all apps on our Qlik Cloud tenant using the script below. But some apps appear not to be in the lineage output. I get a list of Error: 403 - Forbidden (empty response) errors when running the script. The script retreives the lineage from about 85% of the apps.  i am thinking this error is causing the missing lineage not to be retreived. The lineage that is missing is from apps that i own and space that i created so i am puzzled as to why it is not being pulled in.Or is there a better way to get the lineage?

$FileName = "C:\lineageoutput.csv"
>> $apps = qlik app ls --spaceType 'shared,managed' --limit 10000 --json
>> $appdetail = $apps | ConvertFrom-Json
>> ForEach ($App in $appdetail){
>> $lineage = qlik app data lineage --appId $App.resourceId
>> $json = $lineage | ConvertFrom-Json
>> $json | Add-Member -membertype NoteProperty -name ResourceID -value $App.resourceId
>> $json | Add-Member -membertype NoteProperty -name AppName -value $App.name
>> $json | Add-Member -membertype NoteProperty -name SpaceID -value $App.spaceId
>> $json | Export-Csv -Path $FileName -NoTypeInformation -Append
>> }

Labels (3)
0 Replies