web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Error when copying file
Power Automate
Unanswered

Error when copying file

(0) ShareShare
ReportReport
Posted on by

Hi

I'm building a workflow which copies file from one document library to another. When this is executed, I get the following error:

 

{ "status"400,
  "message""Non-supported type ListItem for copy/move jobs. CallStack --    at Microsoft.SharePoint.Deployment.ExportObjectManager..ctor(SPDeployment deploymentDriver, SPSite site, SqlSession sqlSession, SPDeploymentSettings settings)\r\n   at Microsoft.SharePoint.Deployment.SPExport.InitializeExport()\r\n   at Microsoft.SharePoint.Deployment.SPExport.Run()\r\nclientRequestId: 53338b4f-3c73-48ef-bcbc-7ef2b36af92b\r\nserviceRequestId: 53338b4f-3c73-48ef-bcbc-7ef2b36af92b"
}
 
 
 

 

Categories:
I have the same question (0)
  • Community Power Platform Member Profile Picture
    on at
    Re: Error when copying file

    Forgot to attach the flow

     

    yjamous_0-1595640527013.png

     

  • v-alzhan-msft Profile Picture
    on at
    Re: Error when copying file

    Hi @Anonymous ,

     

    Could you please share the screenshot of the configuration and the run history of the Copy file action?

     

    Best Regards,

    Alice

     

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

  • Community Power Platform Member Profile Picture
    on at
    Re: Error when copying file

    Hi Alice

    The configuration in the thread (2nd post).

  • v-alzhan-msft Profile Picture
    on at
    Re: Error when copying file

    Hi @Anonymous ,

     

    You need to share the action detail in edit mode so we could help solve the problem quickly.

     

    Best Regards,

    Alice

     

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

  • Community Power Platform Member Profile Picture
    on at
    Re: Error when copying file

    @v-alzhan-msft 

     

    Here you go

     

    yjamous_1-1595870287905.png

     

  • v-alzhan-msft Profile Picture
    on at
    Re: Error when copying file

    Hi @Anonymous ,

     

    The file to copy column require the File identifier instead of the file path.

    1.png

    Best Regards,

    Alice

     

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

  • Community Power Platform Member Profile Picture
    on at
    Re: Error when copying file

    Hi @v-alzhan-msft 

    I'm still getting error when I do the copy

     

     

    {
      "status"400,
      "message""Non-supported type ListItem for copy/move jobs. CallStack --    at Microsoft.SharePoint.Deployment.ExportObjectManager..ctor(SPDeployment deploymentDriver, SPSite site, SqlSession sqlSession, SPDeploymentSettings settings)\r\n   at Microsoft.SharePoint.Deployment.SPExport.InitializeExport()\r\n   at Microsoft.SharePoint.Deployment.SPExport.Run()\r\nclientRequestId: 093f6703-f6a8-46f6-ac2e-e30b2ea63c88\r\nserviceRequestId: 093f6703-f6a8-46f6-ac2e-e30b2ea63c88"
    }

     

     

    yjamous_0-1596655801305.png

     

     

  • Verified answer
    sudharsan1985 Profile Picture
    1,325 on at
    Re: Error when copying file

    Hi @Anonymous 

    Please follow the below steps to copy the file from one document library to another.

    1. I had created a flow that will trigger when a file is created or modified and I have used the trigger action called 'When a file is created or modified (properties only)'.

    image.png

     

     

     

     

     

     

    2. Use the action named 'Get file content using path' to get the file content. Provide the 'Full Path' from the above action.

     

    3. Add the 'Scope' action and inside add the action named 'Create File' mapped to the destination library.

    image.png

    4. Add another 'Scope' action and choose the 'Configure run after' property like the below. Which makes this scope to run only if the create file action failed which is because the file with the same name already exists, in this case, we have to update the file.

    image.png

    So inside this action, add 'Update File' action like the below.

    image.png

    Save the flow and try to run it and you should be successful. 😀

     

    Hope it helps, please like it or mark it as a solution if it resolves your clarification or issue
    -Sudharsan K...

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 462 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard