Showing results for 
Search instead for 
Did you mean: 
Frequent Visitor

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



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:


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

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!!


Accepted Solutions

Turning off Asynchronous Pattern resolved the issue.



2019-10-17 10_24_27-PowerApps.png

View solution in original post

Community Support
Community Support

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.




Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Turning off Asynchronous Pattern resolved the issue.



2019-10-17 10_24_27-PowerApps.png

Impactful Individual
Impactful Individual

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

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


Helpful resources

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on June 15, 2022 at 8am PDT.

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.


New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Top Kudoed Authors
Users online (1,825)