Hello All,
In the past on my test tenant I made an app where you can use the pdf viewer element to view pdf's in powerapp. it is working fine.
Now I wanted to port this over to another tenant to a different app but I'm getting an error I havent been able to solve (yet).
General idea of the flow:
The error happens in the first bit where the variables assigned, this is how it goes in the working tenant:
And this is the failing tenant:
Notice how the value of PDF_ID remains empty further down resulting in CalculatedLen getting a negative integer value resulting in the error. Logic would suggest to me that thing go wrong in the call of the api so this is how both flows are called (from a power app).
Broken call:
"https://prod-10.westeurope.logic.azure.com:443/workflows/4c200fba179e4f469ab6bbd92649d59d/triggers/manual/paths/invoke?api-version=2016-06-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=ra7po4KZcHdIr2tLJPINnN5dGym_00linO8&itemid=" & Gallery1.Selected.Id
Working call:
"https://prod-114.westeurope.logic.azure.com:443/workflows/247b6d0d41cb48559e08402eb4a01095/triggers/manual/paths/invoke?api-version=2016-06-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=24eaP6qAeLTdqugHB6stZAC3l9Zw1vlO9ascY&itemid=" & Gallery2.Selected.Identifier
Both are called from the [Document] Property of the PDF Viewer element in powerapps.
The only thing I notice different in the calls is that the working call uses .selected.identifier and the broken call uses .selected.Id
In the PowerApp where it's not working my gallery doesn't have a .selected.id property. only .selected.id and .selected.'Id({Identifier})'
Both .Id and 'Id({Identifier})' deliver the same error by the value of PDF_ID remaining empty.
(I think the difference in available properties is the result of the 2 tenants being different language setting. Working tenant is in English and broken tenant is in Dutch).