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

Patch function for forms - column does not exist

(0) ShareShare
ReportReport
Posted on by

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,989 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
    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

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard