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 / Flow failed: the data ...
Power Apps
Answered

Flow failed: the data returned in the response is invalid??

(0) ShareShare
ReportReport
Posted on by 129

Hello,

 

We created a canvas app to update an existing record in sharepoint offline and online. 

 

I have been testing offline mode by pulling in data (online) into a collection.. Then using this collection to get the ID of the row i am about to update.

 

Once i have the ID and all my updated data, I add it to a new collection (SendData) which i store in an offline table.

 

Here is what happens on the Save button when updating a record within the app:

 

If(Not(Connection.Connected),
Collect(SendData,{ID: IssuesGallery.Selected.ID, Title: IssuesGallery.Selected.Title ,Status: Status_Radio_3.Selected.Value, Notes: TextInput1_3.Text}));

 

I then added logic to update the sharepoint list once the user opens the app online:

On Start of my App:

 

LoadData(SendData, "temporary2", true);
If(Not(IsEmpty(SendData.ID)),
ForAll(SendData,HomeReadyUpdate.Run(ID,Title,Status,Notes)));
Clear(SendData);
SaveData(SendData,"temporary2");


This is working as it should in sharepoint, but my OnStart logic is causing the following "error" to  display:

 Flow Failed: The data returned in the responce is invalid. 

 

Is there something i need to add OnStart or in my flow? Or is this a bug? Thank you!!

Categories:
I have the same question (0)
  • v-monli-msft Profile Picture
    Microsoft Employee on at

    Hi @nvrhughes ,

     

    This is because that the OnStart property would trigger every time the app is open, whether online or offline. But while you are in offline mode, HomeReadyUpdate.Run() cannot be triggered and that is what caused the error I think. 

     

    Try to add an If condition to the formula in OnStart property to only run the Flow when Connection.Connected is connectd.

     

    Regards,

    Mona

  • Verified answer
    nvrhughes Profile Picture
    129 on at

    Turning off Asynchronous Pattern resolved the issue.

     

     

    2019-10-17 10_24_27-PowerApps.png

  • stapes Profile Picture
    894 on at

    Whereabouts do you get the chance to turn off Asynchronous Pattern?

  • Murderbot Profile Picture
    132 on at

    @stapes Asynchronous pattern is in the settings of any power automate action.

    image.png

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 490

#2
WarrenBelz Profile Picture

WarrenBelz 427 Most Valuable Professional

#3
Vish WR Profile Picture

Vish WR 381

Last 30 days Overall leaderboard