Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Error with PDF Viewer

(0) ShareShare
ReportReport
Posted on by 432

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: workingpdfflow.png

 

The error happens in the first bit where the variables assigned, this is how it goes in the working tenant:

pdfflowworking.png

And this is the failing tenant:

brokenpdfflow.png

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).

 

  • Verified answer
    gjeh Profile Picture
    432 on at
    Re: Error with PDF Viewer

    edit: issue resolved

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard >