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 Platform Community / Forums / Power Apps / the data return in the...
Power Apps
Answered

the data return in the response is invalid, response data should be a valid json object error in powerapps

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I need help in fixing this error: "the data return in the response is invalid, response data should be a valid json object error"

 

I get this error when trying to generate and send a PDF file to an email address / When trying to save the PDF file to a Document Library.  

 

DivyaTJ_0-1679065017954.png

 

 

The action completes and i receive the PDF file just as expected, however this error comes up. 

 

DivyaTJ_1-1679065202612.png

 

Is this an known error? or am i making any mistake.? 

 

 

Categories:
  • v-chengfen-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

    Do you want to trigger flow through Power apps to save the content of the page as a PDF file?

    I made a template for your reference:

    Here is in apps

    vchengfenmsft_0-1679276283672.png

    Here is flow:

    I use power apps v2 as trigger

    vchengfenmsft_1-1679276366794.png

    vchengfenmsft_2-1679276392044.png

    Here is result:

    vchengfenmsft_3-1679276454322.png

    vchengfenmsft_4-1679276482714.png

     

    Best Regards

    Cheng Feng

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @v-chengfen-msft Thank you for helping me. I tried the same as mentioned above. But this time i am getting a different error message. 

     

    Error Message: 

    DivyaTJ_1-1679305821668.png

     

     

    PowerApp trigger: 

    DivyaTJ_5-1679307504739.png

     

     

    Flow:

    DivyaTJ_3-1679307426569.png

     

    DivyaTJ_4-1679307473742.png

     

     

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I am trying to generate a PDF file of a Container and share the same on email. 

     

    With my initial flow, it creates a file and also generates an email with the same. Task is successful, but the error pops up. 

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I am trying to generate a PDF file of a Container and share the same on email. 

     

    With my initial flow, it creates a file and also generates an email with the same. Task is successful, but the error pops up. 

  • Verified answer
    v-chengfen-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

    From your screenshot, what went wrong is some issue with the trigger

    Please try to delete the trigger, add it again, and use it again after refreshing.

     

     

    Best Regards

    Cheng Feng

     

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I am not sure what is the issue. I had a PDF viewer (Experimental) on the screen, i removed it and now everything works fine. I don't get that error anymore. 

     

    but thank you for your support @v-chengfen-msft 

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 381 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 340

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard