web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Server response: A val...
Power Apps
Answered

Server response: A value must be provided for item

(0) ShareShare
ReportReport
Posted on by 41
new form, trying to publish as insert.
publishing to sql server.
data is stored in a view of a synonym connecting to a different database.
the user is able to perform the insert via dbms, but receive this error in app.
Any suggestions?
Categories:
I have the same question (0)
  • mdevaney Profile Picture
    29,991 Moderator on at

    @itghcitrus 

    Suggest you provide a screenshot of the full error message and any code you are using to insert the new rows of data.

  • v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @itghcitrus ,

    Could you please show more details about the error message within your canvas app?

    Do you submit data back to your original SQL Table or SQL View?

    How do you submit your data? Using SubmitForm function or Patch function?

     

    Based on the issue that you mentioned, I have made a test on my side, and don't have the issue that you mentioned. Firstly, please check if you have defined proper Primary Key in your SQL Table.

    There are some known limits within SQL Connector in PowerApps, please check the following article:

    https://docs.microsoft.com/en-us/connectors/sql/#known-issues-and-limitations

     

    Also please check if you have provided proper value for these Required fields in your SQL Table. When you write data back to your SQL Table, please use SQL Table as data source rather than SQL View. Currently, the SQL View is Read Only in PowerApps app. If you use Patch function to submit form data, the standard formula format as below:

    Patch(
     '[dbo].[SQL Table]',
     Defaults('[dbo].[SQL Table]'),
     { // must specify all Required fields within '{}' part
     Cokumn1: "xxxx",
     Column2: "xxxx",
     ...
     }
    )

     

    Best regards,

  • itghcitrus Profile Picture
    41 on at
    i submit back to sql view of synonym for table in a different db

    i use SubmitForm
  • v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @itghcitrus ,

    Do you submit data back to SQL View directly?

    Do you bind your Edit form to SQL View, and save data back to SQL View directly?

     

    If you submit data back to SQL View directly, I think there is something wrong with this operation. Currently, SQL View is Read-Only in canvas app, which could not be use as underlying data source to save data.

     

    Please connect your Edit form to your original SQL Table, then try the SubmitForm function again.

    Note: The Edit form could only connected to single one data source once time.

     

    Best regards,

  • itghcitrus Profile Picture
    41 on at
    i deleted the screen, created a new screen with a form configured for New, each field in the form is configured to Edit (except the Id field as this is the primary key), created a table in the db i am using with powerapps (which is a copy of the table from the other db), same error.
    Table has a primary key, along with 5 text fields and 1 numeric field. SubmitForm button returns same error
  • Verified answer
    itghcitrus Profile Picture
    41 on at

    This miraculously works now, not sure who fixed what, I did not change anything.

    It writes back to the new table in the db

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 633

#2
11manish Profile Picture

11manish 588

#3
Valantis Profile Picture

Valantis 457

Last 30 days Overall leaderboard