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 / Error on For All from ...
Power Apps
Suggested Answer

Error on For All from Collection Patch

(0) ShareShare
ReportReport
Posted on by 975
Hi All - SharePoint backed trying to patch update a value using the collection ID. I keep getting this   
- the ID number is right - but it does not find it for some reason. What am I missing? ty 
 
 
 
Categories:
I have the same question (0)
  • Suggested answer
    MS.Ragavendar Profile Picture
    7,613 Super User 2026 Season 2 on at
    ForAll(
        colvendorUpdates As rec,
        Patch(
            KPI_VendorList,
            LookUp(
                KPI_VendorList,
                ID = rec.ID
            ),
            {
                'Last Service Date': dt_lastsdt.SelectedDate
            }
        )
    )
    (Or)
    ForAll(
        colvendorUpdates As rec,
        Patch(
            KPI_VendorList,
            rec,
            {
                'Last Service Date': dt_lastsdt.SelectedDate
            }
        )
    )
    ✅If this helped, please Accept as Solution to help others ❤️ A Like is appreciated 🏷️ Tag @MS.Ragavendar for follow-ups.
  • Suggested answer
    11manish Profile Picture
    3,849 Super User 2026 Season 2 on at
    try above suggested.
     
    Based on the error message and your code, the most likely causes are:
    • ThisRecord.ID is stored as Text instead of Number 
    • colVendorUpdates doesn't contain the SharePoint ID but another identifier.
    • colVendorUpdates was not built directly from KPI_VendorList, so ThisRecord isn't a valid SharePoint record.
  • ctedesco3307 Profile Picture
    975 on at
     
    This works if I update one record but not if I have more then one to update 
     
     
    ForAll(
        colvendorUpdates As rec,
        Patch(
            KPI_VendorList,
            LookUp(
                KPI_VendorList,
                ID = rec.ID
            ),
            {
                'Last Service Date': dt_lastsdt.SelectedDate
            }
        )
    )
     
     
     
    This one does ot have an ID lookup reference  - so wont work for my scenarios 
    ForAll(
        colvendorUpdates As rec,
        Patch(
            KPI_VendorList,
            rec,
            {
                'Last Service Date': dt_lastsdt.SelectedDate
            }
        )
    )
     
     
     
     
     
     
     
     
     
     
     
     
  • ctedesco3307 Profile Picture
    975 on at
     
     
    Based on the error message and your code, the most likely causes are:
    • ThisRecord.ID is stored as Text instead of Number ** I tried putting Value() around  it but did not work 
    • colVendorUpdates doesn't contain the SharePoint ID but another identifier. ** the SharePoint identifier is in there 
    • colVendorUpdates was not built directly from KPI_VendorList, so ThisRecord isn't a valid SharePoint record. *** it is and it is a valid record. 
     
    Thank you

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 410 Most Valuable Professional

#2
11manish Profile Picture

11manish 159 Super User 2026 Season 2

#3
sannavajjala87 Profile Picture

sannavajjala87 89 Super User 2026 Season 2

Last 30 days Overall leaderboard