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 function for for...
Power Apps
Unanswered

Patch function for forms - column does not exist

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I have 2 forms on my app - 

one form is from datasource 'Client Intake', the other form is from datasource 'Soap Notes'.

I also have an image in the app and a peninput to draw on the image. 

Here is my code:

Patch('SOAP Notes', Defaults('SOAP Notes'), Form1.Updates, Form4.Updates); ResetForm(Form1); NewForm(Form1); ResetForm(Form4); NewForm(Form4); Reset(NameSearch); Reset([@MyPen]); Patch(Drawings, Defaults(Drawings), {Image:MyPen.Image})

However, I get the following error:
Annotation 2019-10-16 090454.png

 

 

How do I fix the column issue and also get my image and peninput to merge together?

Categories:
I have the same question (0)
  • mdevaney Profile Picture
    29,991 Moderator on at

    @Anonymous 

    You syntax for PATCH needs a small bit of work.  The 3rd parameter must be supplied as a parameter like this code.  Replace your_column_name with the column name from the datasource you want to update.

     

    Patch(
     'SOAP Notes',
     Defaults('SOAP Notes'),
     {
     your_column_name1: Form1.Updates,
     your_column_name2: Form4.Updates
     }
    ); 

     

    ---
    Please click "Accept as Solution" if my response helped to solve your issue so that others may find it more quickly. If your thought the post was helpful please give it a "Thumbs Up."

  • v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

    Could you please share a bit more about your 'Soap Notes' data source?

    Is there a column called "Address" within your 'Soap Notes' data source?

    Further, do the Form1 and Form4 connect to your same 'Soap Notes' data source?

     

    According to the error screenshot you provided, it seems to tell that there is no column called "Address" in your 'Soap Notes' data source. Please check if there is a 'Address' column existed in your 'Soap Notes' data source or you have deleted the 'Address' column from your 'Soap Notes' data source.

     

    As an alternative solution, please consider disable/remove the 'Address' field data card from your Form1 as below:

     3.JPG

    then try your Patch formula again, check if the issue is solved.

     

    If the Form1 and Form4 do not connect to same 'Soap Notes' data source, please consider modify your Patch formula as below:

     

    Patch(
    'SOAP Notes',
    Defaults('SOAP Notes'),
    {
    Column1: Form1.Updates.Column1,
    Column2: Form1.Updates.Column2,
    Column3: Form1.Updates.Column3,
    ...
    },
    Form4.Updates
    );
    ResetForm(Form1); NewForm(Form1); ResetForm(Form4); NewForm(Form4); Reset(NameSearch); Reset([@MyPen]); Patch(Drawings, Defaults(Drawings), {Image:MyPen.Image}

    Please note that if you want to use EditForm.Updates within your Patch formula to patch data, please make sure the EditForm connects to same data source as that used in your Patch function.

     

    Best regards,

     

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 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 207 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 150 Super User 2026 Season 2

Last 30 days Overall leaderboard