web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Automate
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).

 

Categories:
I have the same question (0)
  • Verified answer
    gjeh Profile Picture
    432 on at

    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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 241 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 179

#3
Haque Profile Picture

Haque 159

Last 30 days Overall leaderboard