I'm looking to move a file to a different library at the end of a flow route and I'm using the new Move File function to do so however I'm running into the following error;
Missing or mismatched field definition on the destination list for source field '_dlc_ExpireDate' type 'DateTime'. Source site template id 'Site Name', target site template id 'Site Name'. Total blocked root objects in this operation is [1].
It looks like it is forcing me to replicate the meta data in the sorce library in the destination library or the Move File function action will fail. I have replicated all the meta data in the source library in the destination library and am being challenged with meta data fields that are not my own custom ones (message above). Any help on a way round this would be much apprecaited.
Solved! Go to Solution.
Hi @Scottb1,
I assume that you could try to use the action Copy file to copy the file from one library to another library.
I have made the following flow, the file could be copied properly.
While if you would like to move a file without replicating all the meta data in the source library in the destination library when using the action Move file, please submit your request on Flow Ideas Forum as well:
https://powerusers.microsoft.com/t5/Flow-Ideas/idb-p/FlowIdeas
Best regards,
Mabel
Hi @Scottb1
Unless you replicated the libraries through code they are unlikely to be 100% the same.
To move a file it is easeir to go throguh these steps:
1. Get file content
2. create file ( using the content)
3. update the file properties.
Hi @Scottb1,
I assume that you could try to use the action Copy file to copy the file from one library to another library.
I have made the following flow, the file could be copied properly.
While if you would like to move a file without replicating all the meta data in the source library in the destination library when using the action Move file, please submit your request on Flow Ideas Forum as well:
https://powerusers.microsoft.com/t5/Flow-Ideas/idb-p/FlowIdeas
Best regards,
Mabel
Hi @Pieter_Veenstra to move the file where would the step be to move the file from one document library to another?
Hello, I'm running into a similar issue I think to this situation. I'm getting an error (see below) preventing the Move. I need to do the Move and not the Copy to retain the version history on the file in its new location.
Missing or mismatched field definition on the destination list for source field 'Sub_x002d_Category' type 'Choice'. Source site template id 'TeamCollaborationSite', target site template id 'TeamCollaborationSite'. Total blocked root objects in this operation is [1].
clientRequestId: 'unique id'
serviceRequestId: 'unique id'
I thought that the files would move regardless of the metadata columns being the same across the two libraries. If the corresponding field didn't exist, then the data would be lost, otherwise it would transfer over. I'm at a loss for what is preventing this file from moving when I have the identical column value setup in the destination.
@GUSers Did you ever solve this? I'm running into the same issues, but my column type is 'Note' instead of 'Choice.'
No @Anonymous I did not get resolution on it. I met with one of my IT colleagues and we poked around a bit more, but were not successful in selecting and/or moving the file. Unfortunately, what seems like pretty basic logic is proving to be more difficult than touted for us low coders.
Bummer. I ended up switching the move step to a Copy File followed by a Delete File. Luckily I don't need version history on these items.
@Anonymous any chance you could share what you've got to get your Copy/Delete flow working? Maybe that will allow us to understand something we are missing. The code should be very similar since the manual process is really one button click different and ignoring the delete action.
Glad you were able to get that to work for you. As we've been investigating this functionality, we encountered a second scenario where we want to implement this flow, so hoping we can get things figured out.
@GUSers for sure!
I didn't run into an issue with the "Move File" action until I tried to move a file that originated in a document library with custom metadata columns. It appears that the Move File action tries to match up metadata and errors out if it can't. I tried creating matching columns in the receiving document library but noticed that the error messages started referencing metadata I couldn't find in the library. Microsoft should look at adding an option in the action to "remove metadata" or "fail" in the migration. Copying the file from one library to another avoids the metadata issue. In the end, I added a step between the Copy File and Delete File step to Update File Properties with metadata values from the original file (original creation date, created by, etc.).
I voted for this idea here: https://powerusers.microsoft.com/t5/Power-Automate-Ideas/Move-A-File-Copy-Metadata/idc-p/954085
I had the same issue. The workaround for me (maybe it's a best practice) was to create column site.
I have added the same columns on my both libraires. With that, i can now move files from my library to an archive library. I prefer to move files instead of copying because i added a Column ID for quality purpose
Note : You will have the same system name column on both library that is why it's important to create columns on the site level
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
User | Count |
---|---|
31 | |
28 | |
27 | |
21 | |
10 |