cancel
Showing results for 
Search instead for 
Did you mean: 
Reply

SharePoint Copy File error

I have a fairly straight forward archive workflow to move older SharePoint library entries from a work library to an archive library.  The basic flow is as follows: Get Files (properties only) ->checks conditions -> if met then Copy File -> Update File Properties -> Delete File.  The conditions check for specific file types and last modified greater than 6 months. 

 

Right now I have it running daily, and every day I get multiple files failing with an error code of 400 an a msg saying "Source object has changed during copy process. please rerun copy operation to get the latest copy."  The next day when the archive job runs, the files that errored out, get archived.  

 

I would like to improve the efficiency of my flow.  For example, in the 3 runs this week, I had 22 files fail archiving with the error, only 3 archived on the first attempt, and 20 of the failed files archived on the following day.  The remaining 2 are failures today and I expect will archive tomorrow.

 

Is anyone else seeing this, or does anyone have any ideas on how to resolve the problem beyond just having them get picked up in the next cycle?  

 

Thanks,

Tom 

23 REPLIES 23
SCTdan
Continued Contributor
Continued Contributor

What if you compare the results of Get Properties when a file fails vs when it succeeds, perhaps a clue in there?

I will give that a shot.  I would assume, maybe incorrectly, that if anything changed, it would result in the 'last modified date' to be updated, but that's not happening.

I'm not sure what the resulting behavior would/should be, but is it possible that someone has the file open for viewing?  

I think that's extremely unlikely for these types of files as they are essentially old production batch files that are only kept for auditing purposes.  I could maybe see an occasional fail, but this is consistently failing more times than it initially succeeds in any run, and then next run always resolves the previous runs failures. 

 

I'll let you know if anything turns up with the properties.

@tsyrell Did you figure out what the problem was? I am hitting the same issue and I'm definitely not touching the documents while the flow runs.

Hi @SaschaTorkel can you please share a screenshot of your Flow? Also if possible, share the output of a failed file and a successful file. In the meantime I will try to build a similar Flow to see if I can recreate the issue.

Sure:
flow.PNG

 

@MattWeston365  I'm not sure what you exactly mean by "output of a failed and succesful file". Here a screenshot of one failed copy action:

flow1.PNG

 

The full error message:

{
"status": 400,
"message": "Source object has changed during copy process. please rerun copy operation to get the latest copy. Source file length 73655, target file length 75778, source file eTag \"{7635DB32-218D-4A35-A7DE-3D11EBEFB7A6},9\", target file eTag \"{7635DB32-218D-4A35-A7DE-3D11EBEFB7A6},8\" CallStack -- \r\nclientRequestId: 63ee2bf3-fa0d-4107-ad62-7ca70d69f0e1\r\nserviceRequestId: 63ee2bf3-fa0d-4107-ad62-7ca70d69f0e1"
}
 
As a workaround I put in the same copy action again set to "run after failed". For now all files get copied at least with the second try, but this is not a solution I like to put in production.

Hi Sasha and Matt

 

I never determined the isues, so I essentially ended up doing nothing.  When tracking the failed files, it appeard that when the flow ran the next time (it's scheduled to run daily), it usually picked them up.  Sometimes it took a secnd run, but they were always processed successfully.

Hi @tsyrell and @SaschaTorkel 

 

I've been trying to replicate the issue. Never have I wanted my Flow to fail so badly so that I can try to help, but every test so far has been successful. Here is what my Flow looks like:

 

Copy.PNG

It's simple, but it seems to work every time (even trying with an old .XLT file format). In your Flows, what actions are taking place before you start the copy process?

@MattWeston365 thank you for trying to reproduce this error. If you search for the exact error message, you get one hit on google: this thread. So this problem seems to be not that common.

 

Anyway, the flow is based on "new item created" trigger on a SharePoint list, where a user selects the documents to be copied via a PowerApps form.

Here are the immediate actions before the "copy document loop": https://1drv.ms/u/s!AtXsM1f8HFVSuAaSdm7VtqF3aRbB (Somehow i cannot embed images anymore here)

 

I prepare the loan ID, which serves als target folder name, which is set up by the create file action. Also I put the IDs of the documents, that should be copied, in to an array and use it in the apply to each loop.

Thanks for that @SaschaTorkel , I'll refactor my Flow. I might also suggest an alternative method for copying/moving the file which might be worth trying.

 

On an aside, I found the same that this thread was the only one in search engines when searching for the error. On the bright side, you're top of Google 🙂

Same problem here Smiley Sad

Im my case, flow is trigered by http call and allways fails in the first run .. same error.

Hi @giovani_martini did you say that you were using the Send HTTP Request to SharePoint action and you're getting the same error?

Hi @MattWeston365 

No, I meant to say that my flow trigger is "When an HTTP request is received". But that has nothing to do with the error on the action that copies the file to another library.

 

The error i am facing is the same as @tsyrell , "Source object has changed during copy process. Please rerun copy operation to get the latest copy."

 

I have this flow that is triggered manually by a http request, it should copy a document from one library to another using this action, simple as that!

 

Sometimes works, sometimes don't, and i don't know why, this error message is not helping.

Anonymous
Not applicable

I'm having the same problem.

 

The flow is triggered by flaging an email.

The flow copies 2 Excel files from one folder in a SharePoint library to another folder in the same SharePoint library.

The first file always copies and the second file sometimes fails.

Neither of the source files are being edited by anyone.

 

This is the error details reported by MS Flow:

Source object has changed during copy process. please rerun copy operation to get the latest copy. Source file length 241542, target file length 246391, source file eTag "{47C123A7-BC4C-432F-A23B-D77EF1AB98C7},99", target file eTag "{47C123A7-BC4C-432F-A23B-D77EF1AB98C7},98" CallStack --
clientRequestId: b0901234-567a-1b2c-d3e4-0a2b3c45d033
serviceRequestId: b0901234-567a-1b2c-d3e4-0a2b3c45d033

 

Hi!

Looks like the error stopped, at least for me.

My flow did run 25 times without any error, and i didnt change nothing.

Hi everyone,

on our side this errors did just start like 1 week ago - same as above mentioned:

Source object has changed during copy process. please rerun copy operation to get the latest copy. 
Source file length 69829, target file length 72478, source file eTag "{3CA4FAE5-6B62-4D12-9C87-2DF7CA899EF9},5",
target file eTag "{3CA4FAE5-6B62-4D12-9C87-2DF7CA899EF9},4" CallStack -- clientRequestId: 2e6ff3da-03ce-4f00-84d5-e6d1b5dd5c54 serviceRequestId: 2e6ff3da-03ce-4f00-84d5-e6d1b5dd5c54

I didn't do that much as just this actions happen bevor the crash:
2019-07-17 21_04_08-Microsoft Edge.png

Any help or evenguesses where to start fixing this could be helpful.

As the pre-comments already mentioned: without any changes the flow runs just smooth when you simply rerun it - so the same file, the same source, the same everything - just when you run it a second time everything is fine. At the first try it isn't..... and even that: sometimes the flow runs even at the first attempt.?!? 

Hi @AlexDorfmayr 

 

I did some attempts trying to figure out why this was breaking. When the error was occurring to me, I have notice that the error happen mostly when the file was recently created or modified, or when file was opened while de flow runs.

But like I mentioned, this error stop for me. Hope you find a solution for you.

Best!

Hello everyone !

As mentioned several times above, I am getting the exact same error as you on a Flow launched by users on SitePages.

Here is the full error :

{
"status": 400,
"message": "Source object has changed during copy process. please rerun copy operation to get the latest copy. Source file length 21851, target file length 23881, source file eTag \"{C42CA771-AA8A-4F1F-B7A0-989DE2FA163F},16\", target file eTag \"{C42CA771-AA8A-4F1F-B7A0-989DE2FA163F},11\" CallStack -- \r\nclientRequestId: 601fb208-9d87-4c2c-89fc-1edfe9589dd2\r\nserviceRequestId: 601fb208-9d87-4c2c-89fc-1edfe9589dd2"
}
 

As you can see, the length and eTag are different. I don't know why it is happening right now, but it is a bit of a embarrassment.

I tried the solution of putting a second Copy action if the first fails, but this one does not work at all and get the same error as the first.

I tried re-running the flow several minutes later, after having the page created, but nothing changed either.

 

I have to precise : my flow is launched by the user on the SitePage library, on a single item, then several actions are processed, like setting variables, and checking if the file already exists. Then the Copy action that fails.

 

@giovani_martini, @MattWeston365 , do you have any idea, or is it just some SharePoint Voodoo ?

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Helpful resources

Announcements

Community will be READ ONLY July 16th, 5p PDT -July 22nd

Dear Community Members,   We'd like to let you know of an upcoming change to the community platform: starting July 16th, the platform will transition to a READ ONLY mode until July 22nd.   During this period, members will not be able to Kudo, Comment, or Reply to any posts.   On July 22nd, please be on the lookout for a message sent to the email address registered on your community profile. This email is crucial as it will contain your unique code and link to register for the new platform encompassing all of the communities.   What to Expect in the New Community: A more unified experience where all products, including Power Apps, Power Automate, Copilot Studio, and Power Pages, will be accessible from one community.Community Blogs that you can syndicate and link to for automatic updates. We appreciate your understanding and cooperation during this transition. Stay tuned for the exciting new features and a seamless community experience ahead!

Summer of Solutions | Week 4 Results | Winners will be posted on July 24th

We are excited to announce the Summer of Solutions Challenge!    This challenge is kicking off on Monday, June 17th and will run for (4) weeks.  The challenge is open to all Power Platform (Power Apps, Power Automate, Copilot Studio & Power Pages) community members. We invite you to participate in a quest to provide solutions to as many questions as you can. Answers can be provided in all the communities.    Entry Period: This Challenge will consist of four weekly Entry Periods as follows (each an “Entry Period”)   - 12:00 a.m. PT on June 17, 2024 – 11:59 p.m. PT on June 23, 2024 - 12:00 a.m. PT on June 24, 2024 – 11:59 p.m. PT on June 30, 2024 - 12:00 a.m. PT on July 1, 2024 – 11:59 p.m. PT on July 7, 2024 - 12:00 a.m. PT on July 8, 2024 – 11:59 p.m. PT on July 14, 2024   Entries will be eligible for the Entry Period in which they are received and will not carryover to subsequent weekly entry periods.  You must enter into each weekly Entry Period separately.   How to Enter: We invite you to participate in a quest to provide "Accepted Solutions" to as many questions as you can. Answers can be provided in all the communities. Users must provide a solution which can be an “Accepted Solution” in the Forums in all of the communities and there are no limits to the number of “Accepted Solutions” that a member can provide for entries in this challenge, but each entry must be substantially unique and different.    Winner Selection and Prizes: At the end of each week, we will list the top ten (10) Community users which will consist of: 5 Community Members & 5 Super Users and they will advance to the final drawing. We will post each week in the News & Announcements the top 10 Solution providers.  At the end of the challenge, we will add all of the top 10 weekly names and enter them into a random drawing.  Then we will randomly select ten (10) winners (5 Community Members & 5 Super Users) from among all eligible entrants received across all weekly Entry Periods to receive the prize listed below. If a winner declines, we will draw again at random for the next winner.  A user will only be able to win once overall. If they are drawn multiple times, another user will be drawn at random.  Individuals will be contacted before the announcement with the opportunity to claim or deny the prize.  Once all of the winners have been notified, we will post in the News & Announcements of each community with the list of winners.   Each winner will receive one (1) Pass to the Power Platform Conference in Las Vegas, Sep. 18-20, 2024 ($1800 value). NOTE: Prize is for conference attendance only and any other costs such as airfare, lodging, transportation, and food are the sole responsibility of the winner. Tickets are not transferable to any other party or to next year’s event.   ** PLEASE SEE THE ATTACHED RULES for this CHALLENGE**   Week 1 Results: Congratulations to the Week 1 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge.   Community MembersNumber SolutionsSuper UsersNumber Solutions Deenuji 9 @NathanAlvares24  17 @Anil_g  7 @ManishSolanki  13 @eetuRobo  5 @David_MA  10 @VishnuReddy1997  5 @SpongYe  9JhonatanOB19932 (tie) @Nived_Nambiar  8 @maltie  2 (tie)   @PA-Noob  2 (tie)   @LukeMcG  2 (tie)   @tgut03  2 (tie)       Week 2 Results: Congratulations to the Week 2 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 2: Community MembersSolutionsSuper UsersSolutionsPower Automate  @Deenuji  12@ManishSolanki 19 @Anil_g  10 @NathanAlvares24  17 @VishnuReddy1997  6 @Expiscornovus  10 @Tjan  5 @Nived_Nambiar  10 @eetuRobo  3 @SudeepGhatakNZ 8     Week 3 Results: Congratulations to the Week 3 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 3:Community MembersSolutionsSuper UsersSolutionsPower Automate Deenuji32ManishSolanki55VishnuReddy199724NathanAlvares2444Anil_g22SudeepGhatakNZ40eetuRobo18Nived_Nambiar28Tjan8David_MA22   Week 4 Results: Congratulations to the Week 4 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 4:Community MembersSolutionsSuper UsersSolutionsPower Automate Deenuji11FLMike31Sayan11ManishSolanki16VishnuReddy199710creativeopinion14Akshansh-Sharma3SudeepGhatakNZ7claudiovc2CFernandes5 misc2Nived_Nambiar5 Usernametwice232rzaneti5 eetuRobo2   Anil_g2   SharonS2  

Check Out | 2024 Release Wave 2 Plans for Microsoft Dynamics 365 and Microsoft Power Platform

On July 16, 2024, we published the 2024 release wave 2 plans for Microsoft Dynamics 365 and Microsoft Power Platform. These plans are a compilation of the new capabilities planned to be released between October 2024 to March 2025. This release introduces a wealth of new features designed to enhance customer understanding and improve overall user experience, showcasing our dedication to driving digital transformation for our customers and partners.    The upcoming wave is centered around utilizing advanced AI and Microsoft Copilot technologies to enhance user productivity and streamline operations across diverse business applications. These enhancements include intelligent automation, AI-powered insights, and immersive user experiences that are designed to break down barriers between data, insights, and individuals. Watch a summary of the release highlights.    Discover the latest features that empower organizations to operate more efficiently and adaptively. From AI-driven sales insights and customer service enhancements to predictive analytics in supply chain management and autonomous financial processes, the new capabilities enable businesses to proactively address challenges and capitalize on opportunities.    

Updates to Transitions in the Power Platform Communities

We're embarking on a journey to enhance your experience by transitioning to a new community platform. Our team has been diligently working to create a fresh community site, leveraging the very Dynamics 365 and Power Platform tools our community advocates for.  We started this journey with transitioning Copilot Studio forums and blogs in June. The move marks the beginning of a new chapter, and we're eager for you to be a part of it. The rest of the Power Platform product sites will be moving over this summer.   Stay tuned for more updates as we get closer to the launch. We can't wait to welcome you to our new community space, designed with you in mind. Let's connect, learn, and grow together.   Here's to new beginnings and endless possibilities!   If you have any questions, observations or concerns throughout this process please go to https://aka.ms/PPCommSupport.   To stay up to date on the latest details of this migration and other important Community updates subscribe to our News and Announcements forums: Copilot Studio, Power Apps, Power Automate, Power Pages

Users online (892)