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 order line failed
Power Apps
Unanswered

Patch order line failed

(0) ShareShare
ReportReport
Posted on by 4

Hi everyone, I have an issue with a patch on the order line. I'm trying to insert a row into the entity but I'm getting an error during the patch function. The problem lies in the 'existing product' field (because if I remove it, the patch works fine). What I don't understand is that it expects a field of record type and, by conducting tests, the record is indeed correct. Could you help me?

ForAll(catalogoTemp, Patch('Order Lines',Defaults('Order Lines'), {
 // 'Product Name':catalogoTemp[@Product].Name, 
 Order:ordineCreato, 
 Quantity:0,
 'Select Product':'Select Product (Order Lines)'.Existing,
 'Existing Product':catalogoTemp[@Product],
 'Property Configuration':'Properties Configuration'.Edit, 
 Name:catalogoTemp[@Product].Name, 
 'Product type':'Product Type'.Product
}));

 

I have the same question (0)
  • pavanmanideep Profile Picture
    495 Power Up Champ - 2025 on at

    @TuongDoan I see this thread is kept open from long time, I am trying to help you if you have any issues further to assist, hence my reply. Sorry if you got it wrong...

     

    Cheers,

    PMDY

  • TuongDoan Profile Picture
    573 Moderator on at

    You literally didn't answer anything LOL

     

     

  • pavanmanideep Profile Picture
    495 Power Up Champ - 2025 on at

    @LookForHelp 

     

    If I have answered your question, please mark your post as Solved.

    If you like my response or got a direction forward to proceed, please give it a Thumbs Up at least. Appreciate your Kudos. You can accept more than one post as a solution.

     

    If you were still facing any issue or challenge, please do let me know so that I can try to check for you. Happy to help you further.

     

    Blog: https://ecellorscrm.com

     

    Cheers,

    PMDY

  • cchannon Profile Picture
    4,702 Moderator on at

    @LookForHelp did this post help resolve your issue? If so, please mark the solution for future forum visitors to see!

  • cchannon Profile Picture
    4,702 Moderator on at

    When using a Patch (and some other live datasource operations), there is a distinction between a "record" and a "record" that is directly tied to a live datasource. Try using a Lookup to retrieve the record directly from source inline with that request. Something like:

     

    'Existing Product':Lookup(Products, productid = catalogoTemp[@Product].productid)),

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
Kalathiya Profile Picture

Kalathiya 401

#2
WarrenBelz Profile Picture

WarrenBelz 334 Most Valuable Professional

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 325 Super User 2025 Season 2

Last 30 days Overall leaderboard