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 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)
  • 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)),
  • 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!

  • pavanmanideep Profile Picture
    503 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

  • TuongDoan Profile Picture
    573 Moderator on at

    You literally didn't answer anything LOL

     

     

  • pavanmanideep Profile Picture
    503 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

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 93 Most Valuable Professional

#2
Haque Profile Picture

Haque 81

#3
Valantis Profile Picture

Valantis 49

Last 30 days Overall leaderboard