Showing results for 
Search instead for 
Did you mean: 
Not applicable

When attempting to update properties of a file, I get a "read only" error in one flow but not another for the same field.

For the two flows below, they operate in the same way except the first and (functioning) flow loops through all the files in the library and updates the field, whereas the second (non-functioning) flow only operates on a selected file. 

In both flows I check the file out, before making the property update however in the second flow I get the following error:
"The 'inputs.parameters' of workflow operation 'Update_file_properties' of type 'OpenApiConnection' is not valid. Error details: The API operation does not allow writing a value for parameter 'item/Locations[0]/Value'. This parameter is read only."

This is the functioning Flow, that updates the area field without issue:


This is the non-functioning flow that fails when attempting to update the area field. 



Impactful Individual
Impactful Individual

Are both of these flows working on the same document library? Are they both using the same SharePoint connection? If they are in different libraries, does the flow have the same permission level in both libraries?

Not applicable

Both are operating on the same document library and same files. I am running them from the same account with the same connections. 

Also on the one that fails, if I manually enter array data then it updates without a problem, its only when using the dynamic content does this error happen, and only on this flow.

Impactful Individual
Impactful Individual

I'm afraid I'm not sure what's going wrong. The next thing I'd do if it were my flow would be to take a closer look at the data that's being used in the flow that fails.


If you want to see more details about what's going on in your flow, go to the Run History page (you can get there by clicking 'All runs' on the main page for your flow).  At the top of the Run History page is a button to get a .CSV file.  If you download this CSV file and open it in Excel, it will give you detailed information about every action in your flow.  You can see exactly what the inputs were, and the outputs.


I'd start by doing two runs of your flow.  One with the manual data that succeeds, then a second run with the dynamic data that fails.  Then download your CSV and find the appropriate input/output columns and compare them.  Look for anything that's different, and it may give you a clue as to what's going wrong.

Helpful resources

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (2,918)