cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Message is: Server error. Server response: Not a valid connector response…

Hello,

 

I am receiving this error message when submitting a form. The sql connector works fine in other apps and other parts of this app. Only when submitform is called does this message appear.

 

Any help is greatly appreciated.

1 ACCEPTED SOLUTION

Accepted Solutions

I ran into the same error message when trying to update a table with a trigger. After removing the trigger (Smiley Sad) it all worked as expected. Could it be that your table in PRD has a trigger where dev/test do not?

View solution in original post

6 REPLIES 6
v-xida-msft
Community Support
Community Support

Hi @Anonymous ,

Could you please share a bit more about the error message?

Do you mean that the error message appear only when the SumitForm() function is executed?

 

Based on the issue that you mentioned, I have made a test on my side, and don't have the issue that you mentioned.

 

Please consider remove the SQL connection from your app, then re-create a new connection to your SQL Table from your app, then try it again, check if the issue is solved.

 

In addition, if the issue still exists, as an alternative solution, please consider use Patch function to submit your form data instead of SubmitForm function. Please set the OnSelect property of the "Submit" button to following:

If(
   EditForm1.Mode = FormMode.New,
   Patch(
            '[dbo].[YourSQLTable]',
             Defaults('[dbo].[YourSQLTable]'),
             {
               Column1: DataCardValue1.Text,
               Column2: DataCardValue2.Text,
               Column3: DataCardValue3.Text,
               ...
             }
   ),
   Patch(
             '[dbo].[YourSQLTable]',
             BrowseGallery1.Selected,                 /* <--I assume that you used a Gallery to list all records of your SQL Table in your app */
             {
                  Column1: DataCardValue1.Text,
                  Column2: DataCardValue2.Text,
                  Column3: DataCardValue3.Text,
                   ...
             }
   )
)

Note: DataCardValue1, DataCardValue2, DataCardValue3, ... represents the Data Card values in your Edit form.

 

Please consider take a try with above solution, then check if the issue is 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.
Anonymous
Not applicable

Hello,

 

I appreciate your prompt feedback. Since there are 43 datacards, it has taken some time to put the Patch function together. It works in the DEV environment, but so did the SUBMITFORM. Before the app may be promoted to TEST and PRODUCTION, the id_num of the newly written sql record is needed. With the SUBMITFORM, I was able to retrieve the id_num (IDENTITY column in sql table). I cannot seem to do this with Patch. 

Anonymous
Not applicable

Quite simply, this errors when the user clicks the button which invokes the SUBMITFORM function. This problem is only experienced in the PRODUCTION environment. The app works fine in the DEV and TEST environments. 

 

I changed the SUBMITFORM to Patch. Again, it works fine in DEV and TEST. In PRODUCTION, the same error message.

I ran into the same error message when trying to update a table with a trigger. After removing the trigger (Smiley Sad) it all worked as expected. Could it be that your table in PRD has a trigger where dev/test do not?

View solution in original post

NoumanQ
Advocate II
Advocate II

Same issue being faced on our end aswell. It seems this issue has been going on for a long time.

Anonymous
Not applicable

The underlying table may have a trigger on it. PowerApps does not allow for Azure SQL Server triggers.

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (2,244)