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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Cannot store data in a...
Power Apps
Unanswered

Cannot store data in a collection to a SharePoint list keep getting error specified column does not exist

(0) ShareShare
ReportReport
Posted on by

Hi,

 

I'm really new to power apps and I'm struggling to get data from a collection into a SharePoint list.  The first part works writing data from a collection into an order SharePoint list, however when I ask it to write into a different list it won't work, it keeps saying 'The specified column 'ItemSize' does not exist. The column with the most similar name is 'ItemSize', the column does exist.

 

This is the OnSelect function I am using, the first part works, where 'ShoeStyle Orders v3' is the first SharePoint list, colShoppingCart3 is my collection. This does create a record as expected.

 

The second part is where it gives me the error, 'ShoeStyle Ordered Items v3' is a different sharepoint list where the fields match however I get the error, it adds the Title field and required rows depending on the number of items selected but not the rest of the data:

 

Set(varRecordID,Patch('ShoeStyle Orders v3',Defaults('ShoeStyle Orders v3'),{Title:TextInput2.Text,'Order Comments':TextInput3.Text,'Order Total':With({ST:Sum(colShoppingCart3,SubTotal)},ST+ST*0.07+4.99)}).ID);

 

Collect('ShoeStyle Ordered Items v3', AddColumns(colShoppingCart3, "OrderID", varRecordID))

 

Any help would be really appreciated

Categories:
I have the same question (0)
  • scalca Profile Picture
    on at

    I would still recommend to use Patch in order to submit to your second SP List instead of collect which seems to push data into SP but does not recognize added columns.
    instead I would use Patch within a ForAll loop to create items in SP
    ForAll(AddColumns(colShoppingCart, "OrderId", varRecordId), Patch(test, Defaults('ShoeStyle Ordered Items v3'), {Title: ThisRecord.Name, Order: ThisRecord.OrderId}))

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard