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 / Error in running Patch...
Power Apps
Unanswered

Error in running Patch function

(0) ShareShare
ReportReport
Posted on by 291

Hi Folks,

 

Below is the message that i am getting while using the patch formula,

 I already have the 'AccessToCopiedFolderLocation" column in changepoint sharepoint list.

IMathur_0-1596906635308.png

and because of this patch function is not able to run.

Please help!

 

Categories:
I have the same question (0)
  • Pstork1 Profile Picture
    68,697 Most Valuable Professional on at

    When doing any kind of comparison using 'or' you need to repeat the whole comparison.  So instead of 

    ProjectStatus.value = "Completed" || "Not Won"

    you should be using 

    ProjectStatus.value = "Completed" || ProjectStatus.value = "Not Won"

     

  • IMathur Profile Picture
    291 on at

    Hi @Pstork1,

     

    It is still there:

    IMathur_0-1596909071269.png

    , there is a gallery in the app, using this filter, with the gallery also, it is showing the same error:

    IMathur_1-1596909162114.png

     

  • Pstork1 Profile Picture
    68,697 Most Valuable Professional on at

    Since the error is referring to a column that isn't used in the formula I suspect you've changed something in the data source since you originally made the connection.  If so then you need to either refresh the data connection or delete it and recreate it.  I'm assuming there was a column with the name in the error at one point in time, but that the column no longer exists.

  • puluthra Profile Picture
    Microsoft Employee on at

    try RemoveDropColumns(changepoint, "AccessToCopiedFolderLocation")

    or

    ShowColumns(changepoint, ID, xyz) //show ID column and the columns you need to patch

    before you use the collection in Patch.

     

    If the column exists in your data source then its best to re-add/refresh the data source. Sometimes I need to re-open the powerapps editor.

  • IMathur Profile Picture
    291 on at

    Yes @Pstork1 , I added this column, after i created the link of the list in the app, but now i have removed the list and added it again, it is still giving this error

  • IMathur Profile Picture
    291 on at

    Hi @puluthra ,

     

    Please see the image below, i have this column in data source list:

    IMathur_0-1596911677803.png

     

  • IMathur Profile Picture
    291 on at

    Hi @puluthra ,

     

    Please see the below error in Remove function and help on this:

    IMathur_0-1596914584368.png

     

  • Verified answer
    puluthra Profile Picture
    Microsoft Employee on at

    @IMathur I meant DropColumns (corrected syntax in my previous post, my bad). The idea is to remove/drop the columns from your collection that do not exist in your data source and try.

    In your case since the column exists and you're still seeing this error, I would try removing the data source from the app, save, close the powerapp and re-open it in the designer, and then re-add the data source. I ran into this issue where powerapps wasn't recognizing the newly added fields and reloading the app fixed the problem.

  • Verified answer
    Pstork1 Profile Picture
    68,697 Most Valuable Professional on at

    Did you save and close the app after removing the data source?  If not its probably retaining the reference to the original Schema.  What type of data source is it?  SharePoint, CDS, SQL, or something else?  For some of the data sources you can use the context menu on the data source connection list in the app to Refresh the data source.  That will pick up the new schema.

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