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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Automate
Unanswered

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard