cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Venxir
Resolver I
Resolver I

Error when updating with EditForm and SubmitForm

Hello,

 

When using a simple EditForm in Powerapps I have the issue if a primary key (nvarchar) contains a comma, the whole query dies because it thinks i'm supplying more then one parameter. this happens when I use the SubmitForm function on an Edit Form. When the primary key does not contain a comman, the query works.

 

My primary key looks like "O/xx-xxxx,xx", a workaround is using underscore instead of comma.

 

The data is written through a gateway to my on-premise SQL Server.

 

Anyone else having this problem?

4 REPLIES 4
v-yamao-msft
Community Support
Community Support

Hi Venxir,

 

Do you get any error messages?

 

I have seen a similar issue about Error while saving decimals value from another thread, the thread link is:
https://powerusers.microsoft.com/t5/PowerApps-Forum/Error-while-saving-decimals-value/m-p/23946/high...

 

I have reported this issue on my side, but I haven’t got any updates on it. I will keep an eye on this issue.


Best regards,
Mabel Mao

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

Hello Mabel,

 

Something like "Mashup exception, inner exception: One key specified but two values supllied". The error was in dutch and I couldn't find the correct English translation... Smiley Frustrated

I am also having this problem. My primary key is "#####, ####, ####" and the error I am receiving when I try to submit the edit form is, 

 
 

"The Requested Operation is Invalid. Server Response: [dbo].[TABLE_NAME] failed: 1 Keys were specified, but 3 values were provided. Inner Exception: 1 Keys were Specified, but 3 values were provided. clientRequestID: c408c390-f4c6-4062-8120-9b37f6f34a76"

 

 

The Mashup engine cannot handle the comma's you're using, I had the same problem. Try replacing those comma's for something else.

Helpful resources

Announcements
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.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

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