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

Move File - Missing or mismatched field definition

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. 
 

1 ACCEPTED SOLUTION

Accepted Solutions
v-yamao-msft
Community Support
Community Support

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.

1.PNG

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

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

View solution in original post

11 REPLIES 11

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.

v-yamao-msft
Community Support
Community Support

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.

1.PNG

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

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

Hi @Pieter_Veenstra to move the file where would the step be to move the file from one document library to another?

GUSers
Regular Visitor

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.

Anonymous
Not applicable

 

@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.

Anonymous
Not applicable

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.  

GUSers
Regular Visitor

@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.

Anonymous
Not applicable

@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.).  

 

GraysonBishop
Advocate IV
Advocate IV
ALP1
Super User
Super User

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

ALP1_0-1648641366564.pngALP1_1-1648641438526.png

 

 

ALP1_2-1648641481559.png

 

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



Helpful resources

Announcements
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.

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.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Solution Authors
Users online (2,999)