We just started receiving this error message when doing a submitform. This error only occurs in the PRODUCTION environment and not the TEST or DEV environment. The sql connector for this PowerApps module is also used in other PRODUCTION environment modules without error. Further, this module works fine in both the TEST and DEV environments. All have been working fine for almost a year now.
The underlying data is Azure sql. There are two screens. First the user inputs an EmployeeID and if found, a gallery of records is displayed on this first screen. Then the user selects on of the records and the record is then displayed in a form on the second screen. After the user makes changes, they select the UPDATE button which uses SUBMITFORM to enable the change. The error occurs on the SUBMITFORM.
Is there a limit to the number of fields on a form? Any direction is greatly appreciated.
Could you please share more details about the error message within your app?
Have you set Not Null property for some fields in your Azure SQL Table?
I have made a test on my side, and don't have the issue that you mentioned. Please check if you have set Not Null property for some fields in your Azure SQL Table, if true, please make sure you have provided valid values for these fields in your Edit form.
In addition, please also consider remove the connection from your app, then re-create a new connection to your Azure SQL Table, then try your app again, check if the issue is solved.
If the issue still exists with the SubmitForm()function, as an alternative solution, you could consider submit your form data using Patchfunction instead of SubmitForm() function. Please set the OnSelect property of the "Submit" button to following:
None of the editable fields are set to NOT NULL. Plus the editable fields all contain appropriate values. The problem persists in the form's EDIT mode, I have not tested NEW mode yet. In fact, this app works fine in our DEV and TEST environments. Only when it is imported to the PRODUCTION environment do I experience issues. I have rebuilt the connector and also removed the connector and built a new one. Still the problem persists. I have resisted using Patch because there are 43 datacards on the form. If that is the only option, then I will try.
Can you think of any reasons why the app works in other environment but not the PRODUCTION environment?