cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

Update Item deleting other fields that are left blank in the update item flow item

We have a flow that for some reason has starting deleting fields from the update item section, we turned on versioning history to confirm that was happening. We went through every piece from PowerApps and SharePoint and it looks like the Update item in all of our flows is the culprit. Has anyone heard of the update item deleting sharepoint field data when it is left blank?

8 REPLIES 8
Highlighted
Super User II
Super User II

Re: Update Item deleting other fields that are left blank in the update item flow item

@tstubblefiel 

Hi there.  Just shooting for low-hanging-stuff...but did we confirm that there aren't any spaces or other hidden characters in the "Update" action?  Maybe a screenshot will help.

 

Keep us posted!

-Ed-

 

If this reply has answered your question or resolved your challenge, please consider marking it as a Solution. This helps other users find it more easily via search.

Highlighted
Frequent Visitor

Re: Update Item deleting other fields that are left blank in the update item flow item

Yes we have confirmed there are no extra spaces, I would provide a screenshot, but we recently removed trying to figure out a different approach. Basically on the Update item all it was matching was the ID field and another field called WARS ID. All other fields were blank.

 

We use Flow and update item all the time, this is the only flow I have ever seen this happen.

Highlighted
Community Support
Community Support

Re: Update Item deleting other fields that are left blank in the update item flow item

Hi @tstubblefiel ,

 

Do you mean that some fields are not configured but are cleared?

I did a test on my side. If I don't make any settings for the field when configuring Update item action, the field value will be preserved.

However, if you enter a space or a tab in the input box of the field, the field value will be cleared.

 

Please check if there is a space in the field. If it is, click Backspace to clear the space.

43.PNG

Or to avoid this problem, please fill in the necessary fields with Dynamic content.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
Frequent Visitor

Re: Update Item deleting other fields that are left blank in the update item flow item

Sorry for the late response, we did confirm there are no spaces, and it only happens on certain flows, not all of them. Very odd it seems. I will give the dynamic content a try.

Highlighted
New Member

Re: Update Item deleting other fields that are left blank in the update item flow item

@tstubblefiel Did you ever find out what was causing this?

Highlighted
Resolver I
Resolver I

Re: Update Item deleting other fields that are left blank in the update item flow item

Hey, all... is there any update on this? I've actually had this start happening with several of my flows, which have been running for many months: if I don't provide a value in the Update action, it sometimes--but not ALWAYS--removes the data instead of leaving it alone. These are fields that have never been defined as Required, and this problem is recent!

Highlighted
New Member

Re: Update Item deleting other fields that are left blank in the update item flow item

I seemed to find solution: Add any Dynamic content into the field that gives you this problems, save the flow, and remove the Dynamic content by clicking on the cross next to it. This way the field is cleaned completely and will not wipe the existing records.

 

This worked for me.

 

You can double-check if you did it correctly, by selecting "Peek code" from the header of the flow step (three dots on the right side where the step name is. In the code you can see what will be updated (in my case, for all the fields that have been wiped out, the code was saying 

 

"body": {
    "Title": "", 
    "Request": "",

 

Where Title and Request were names of the fields which were being wiped. After I did the excercise described above, these lines from the code disappeared and the flow no more deleted the content of these two fields.

 

B.T.W If anyone knows how to edit this flow "code" directly, let me know, as this would be a huge help for me.

Thanks

Highlighted
Resolver I
Resolver I

Re: Update Item deleting other fields that are left blank in the update item flow item

Best! Tip! Ever!

Helpful resources

Announcements
secondImage

August 2020 CYST Winners!

Check out the winners of the recent 'Can You Solve These?' community challenge!

thirdImage

Experience what's new for Power Automate

Join us for an in-depth look at the new Power Automate features and capabilities at the free Microsoft Business Applications Launch Event.

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

Users online (3,446)