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 LookUp column wi...
Power Apps
Answered

Patch LookUp column with Blank() doesn't work

(0) ShareShare
ReportReport
Posted on by 46

Hi Community,

I am trying to patch the Parent Asset column in the Customer Asset Dataverse table with a Blank() value. I don't receive any errors, but the earlier value remains unchanged. Does anyone know what could be causing this? There are no errors showing in the "Monitor," and all requests are marked as successful. If I change the value to another Parent Asset value, it works well, but when I try to set it to Blank(), nothing happens.

 

 

 

Could you please assist?

I have the same question (0)
  • Dennis_Kozlov Profile Picture
    46 on at

    below the code to Patch

     

    If(CountRows(ToPatch_remove) = 2,
    ForAll(
    ToPatch_remove,
    Patch(
    'Customer Assets',
    ThisRecord,
     
    {'Parent Asset': Blank()}
    //{'Parent Asset': LookUp('Customer Assets', 'Customer Asset' = combo_udstyr.Selected.'Customer Asset')} - working well
     
    )
     
    );

     

  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @Dennis_Kozlov ,

     

    Based on my test, Patch Blank() to a LookUp column to clear the field should work.

    vjefferni_1-1701768045492.png

    vjefferni_2-1701768069510.png

     

    It seems you have missed a closing bracket in your formula:

    If(
     CountRows(ToPatch_remove) = 2,
     ForAll(
     ToPatch_remove,
     Patch(
     'Customer Assets',
     ThisRecord,
     {'Parent Asset': Blank()}
     //{'Parent Asset': LookUp('Customer Assets', 'Customer Asset' = combo_udstyr.Selected.'Customer Asset')} - working well
     )
     )
    );

     

    Best regards,

  • Dennis_Kozlov Profile Picture
    46 on at

    Hi @v-jefferni 

     

    Thank you very much for your prompt response. Yes, you are correct regarding the missing closing bracket in my formula. However, this hasn't resolved my issue, unfortunately. I have just run some tests and figured out that when I use...

    Patch('Customer Assets'ThisRecord{'Parent Asset': Blank()})  i get empty body on monitor
     Dennis_Kozlov_1-1701774066912.png

     

     
    And when i use Patch('Customer Assets'ThisRecord,{'Parent Asset': Blank(),ip:"test"})  i get request body only with  ip: "test" the Parent Asset will be exclude 😞 
    Dennis_Kozlov_0-1701773851715.png

     

    Does anyone have any idea why this might be happening? Could it be something specific to the 'Parent Asset' column, considering it works with the 'account'? Could there be some configuration within Power Apps that I'm missing?

  • Verified answer
    Dennis_Kozlov Profile Picture
    46 on at

    I have found a solution. I should use the 'Unrelate' function to remove the 'Parent Asset'. relationship in table

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

#2
11manish Profile Picture

11manish 489

#3
Haque Profile Picture

Haque 327

Last 30 days Overall leaderboard