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 Apps
Unanswered

PowerApps

(0) ShareShare
ReportReport
Posted on by 3

Hello, I have a question.

 

I migrated from dataverse to SQL due to row limits present in Power Apps. I changed all the names of the tables and I'm sure that PowerApps can get the information from the Database, but the problem is that when I try to save something in the form, this error appears: "The 'registerserviceID' field is required" , this field is a primary key so ,for me , it doesn't even make sense. I'm new in PowerApps bindings to SQL, but I'm not new in SQL.

 

Thanks for your time!

erro.png
Categories:
I have the same question (0)
  • rbrooks66 Profile Picture
    143 on at

    I created an input form and used SQL because I wanted all the drop downs to point to different reference tables.  I used a Stored Procedure to save the data to SQL.  Are you using a Stored Procedure or did you find another way to save the data?  Does your registerserviceID field exist only in the SQL table?  Is it an identity or a guid type?  Just trying to figure out how you set it up.

  • Zorkito1 Profile Picture
    3 on at

    Hello Again,

    The way I'm saving the data is by sending the EditForm in question.
    registerserviceID only exists in the SQL table and is not being used or called in powerapps. What do you mean by "Stored Procedure"?(i know the meaning of "Stored Procedure") I created a database from code and inserted it into Microsoft Azure. The question is, why does this error appear?

  • rbrooks66 Profile Picture
    143 on at

    Let me go through the process I did after addressing what I think could be wrong with your issue.  The registererviceID only exists in the SQL table but how are you supplying that value?  When you go to insert the record the table still needs the primary key.  Do you have it set up as an identity column where the system automatically increments the primary key?  If not, whether you declared the primary key as a GUID or integer or whatever, you still need to supply it.  This is my table, and I have the primary key set up as an identity field, so I don't need to supply the primary key, it will automatically increment the key by 1 when the record is inserted.  If that fixes your problem, don't worry about the rest of this post.  But, I will explain what I did to get the data from my form to my SQL table.

     

    Screenshot 2022-04-19 091745 Identity.png

     

    Then, I used a stored procedure to connect to the SQL table.  In SQL I have a stored procedure to insert the record from Power Apps.  This link explains how to set this up https://www.mssqltips.com/sqlservertip/6857/call-sql-server-stored-procedure-from-power-apps/.  This is the stored procedure, with an input for each field in my power apps form (Location, Category, SubCategory, etc.).

    Screenshot 2022-04-19 092145 Stored Proc.png

     

    This is my power apps form.

    Screenshot 2022-04-19 092354 Power Apps Form.png

    I hooked the stored procedure to my power apps form as described in the link above to my Save button.

     

    Screenshot 2022-04-19 092601 Save button.png

    Hope this helps, good luck.

     

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
11manish Profile Picture

11manish 530

#2
WarrenBelz Profile Picture

WarrenBelz 459 Most Valuable Professional

#3
Haque Profile Picture

Haque 314

Last 30 days Overall leaderboard