cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Yaronbs
Level: Powered On

App with changed SQL database displays "The request operation is invalid"

We have developed a PowerApss application which accesses an on-premise SQL Server database through several views.

Everything worked fine until the client dropped the database. Since they did not have a backup, they were required to re-build the database and specificaly the views.

 

We managed to correct all the errors in the app that existed due to missing objects or changed field names.

We are still faced with a red error in each of our main screens:

"The request operation is invalid.

Server response: The key didn't match any rows in the table.

clientRequestId: <GUID>."

This happens although data does show up in various controls and grids.

Publishing a new version or clearing the local PowerApps cache does not help.

It should be noted that we use collections to support offline scenarios.

 

We will be trying to get some additional data from the gateway or SQL Server, but any other ideas would be welcome.

1 ACCEPTED SOLUTION

Accepted Solutions
Yaronbs
Level: Powered On

Re: App with changed SQL database displays "The request operation is invalid"

Seems like adding the missing view in the database solved this particular problem so thanks!

4 REPLIES 4
Super User
Super User

Re: App with changed SQL database displays "The request operation is invalid"

Hi @Yaronbs 

After re-building the database, did you refresh the connection in your app via the View > Datasources menu item? There should be a refresh option via the '3 dots' icon next to your SQL datasource.

If you haven't refreshed your connection, that might help.

Yaronbs
Level: Powered On

Re: App with changed SQL database displays "The request operation is invalid"

Thanks for the the tip.

I refreshed all the connections and there is no change in the app's behaviour (although it did not ask or allow me to save after these actions).

There is one view that a connection is pointing to that is no longer avaialbe (and not in use in the app); I'll see if deleting it helps.

Yaronbs
Level: Powered On

Re: App with changed SQL database displays "The request operation is invalid"

Seems like adding the missing view in the database solved this particular problem so thanks!

Community Support Team
Community Support Team

Re: App with changed SQL database displays "The request operation is invalid"

Hi @Yaronbs ,

Could you please share a bit more about your issue?

Have you solved your problem?

 

After you remove the SQL Table from your SQL Server, the SQL Table connection you created before within your app would be invalid, even though, you re-create your SQL Table/SQL View in your SQL Database.

 

As an fixed solution, please consider remove the old SQL Table/SQL View connection from your app, then re-create a new connection to the new created SQL Table or SQL View from your app, then check if the issue is solved.

 

If you have solved your problem, please consider go ahead to click "Accept as Solution" to identify this thread has been solved.

 

Best regards,

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

Helpful resources

Announcements
firstImage

PowerApps Monthly Community Call!

Join us next Wednesday for our Demo Extravaganza, October 16, 2019 8am PDT.

firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Top Kudoed Authors
Users Online
Currently online: 188 members 5,344 guests
Please welcome our newest community members: