cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Andries1
Helper I
Helper I

Field required error

I'm trying to write a collection in repeating tables but when I action save to Sharepoint I keep on getting an error stating I'm missing a field or required field error. Yet all the fields in my sharepoint is filled in?

1 ACCEPTED SOLUTION

Accepted Solutions
v-xida-msft
Community Support
Community Support

Hi @Andries1 ,

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

How do you save your collection data back to your SP List? Using Patch function?

Have you rename some columns (e.g. Title column) within your SP list?

 

Based on the issue that you mentioned, I have made a test on my side, and don't have the issue that you mentioned. When saving a Collection data back to SP List, the sample syntax as below:

ForAll(
          Collection, 
          Patch(
                    'YourSPList',
                     Defaults('YourSPList'),
                     {
                         Column1: Collection[@Column1],
                         Column2: Collection[@Column2],
                         Column3: Collection[@Column3],
                         ...
                     }
          )
)

If you use Patch function to save your collection data back to your SP List, please check if you have typed proper columns within the '{}' part of the Patch function (if you have renamed your column names), and specify proper values for all Required/Mandatory fields within the '{}' part.

 

You could go to your SP List settings, then check if you have specify proper values for all Required fields list as below:1.JPG

After that, click the specific column in above column list, then make sure you reference the Internal Column Name of your List column within the '{}' part of your Patch function:2.JPG

Note: Within Patch function, you should reference the Internal Name of the List columns.

 

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.

View solution in original post

2 REPLIES 2
mdevaney
Super User III
Super User III

@Andries1
Can you please share more information?
* Your code used to submit the collection to SP
* A screenshot of the error message
v-xida-msft
Community Support
Community Support

Hi @Andries1 ,

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

How do you save your collection data back to your SP List? Using Patch function?

Have you rename some columns (e.g. Title column) within your SP list?

 

Based on the issue that you mentioned, I have made a test on my side, and don't have the issue that you mentioned. When saving a Collection data back to SP List, the sample syntax as below:

ForAll(
          Collection, 
          Patch(
                    'YourSPList',
                     Defaults('YourSPList'),
                     {
                         Column1: Collection[@Column1],
                         Column2: Collection[@Column2],
                         Column3: Collection[@Column3],
                         ...
                     }
          )
)

If you use Patch function to save your collection data back to your SP List, please check if you have typed proper columns within the '{}' part of the Patch function (if you have renamed your column names), and specify proper values for all Required/Mandatory fields within the '{}' part.

 

You could go to your SP List settings, then check if you have specify proper values for all Required fields list as below:1.JPG

After that, click the specific column in above column list, then make sure you reference the Internal Column Name of your List column within the '{}' part of your Patch function:2.JPG

Note: Within Patch function, you should reference the Internal Name of the List columns.

 

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.

View solution in original post

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Carousel April Dunnam Updated 768x460.jpg

Urdu Hindi D365 Bootcamp

Dont miss our very own April Dunnam’s The Developer Guide to the Galaxy! Find out what the Power Platform has to offer for the traditional developer.

Top Solution Authors
Top Kudoed Authors
Users online (3,994)