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 / Patch Attachments Error
Power Apps
Answered

Patch Attachments Error

(0) ShareShare
ReportReport
Posted on by 2

Good morning!

As part of a project I need to patch to a list. The only part that is snagging is the attachments. I used the default attachment column but when I try to patch to it using .Attachments it errors out with the following:

KaiBPL_2-1644319451781.png

I can't seem to find what the issue is, if I remove .Attachments it works fine but nothing is patched to the Attachments column. Am I missing something glaringly obvious?

KaiBPL_1-1644318918918.png

 

 

Categories:
  • Verified answer
    WarrenBelz Profile Picture
    156,940 Most Valuable Professional on at

    Hi @KaiBPL ,

    You cannot Patch attachments other than with FormName.Updates.

    Patch(
     ListName,
     Defaults(ListName),
     YourFormName.Updates
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

     

     

  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @KaiBPL,

    I think @WarrenBelz has provided the correct formula, however, if you have already had a Form, you could directly use the SubmitForm() function.

    You could not reference to the attachment column name when you using the Patch() function.

    It is necessary for you to insert the attachment control within a form, you could modify formula as below:

    Patch(
     'YourSPList',
     Defaults('YourSPList'),
     {
     Column1:TextInput1.Text,
     Column2:TextInput2.Text,
     Column3:TextInput3.Text,
     ...,
     ColumnN:TextInputN.Text
     },
     EditForm1.Updates
    )

     

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 248 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 192 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard