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

Announcements

News and Announcements icon
Community site session details

Community site session details

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

Error when copying file

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

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:
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Forgot to attach the flow

     

    yjamous_0-1595640527013.png

     

  • v-alzhan-msft Profile Picture
    Microsoft Employee on at

    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
    Microsoft Employee on at

    Hi Alice

    The configuration in the thread (2nd post).

  • v-alzhan-msft Profile Picture
    Microsoft Employee on at

    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
    Microsoft Employee on at

    @v-alzhan-msft 

     

    Here you go

     

    yjamous_1-1595870287905.png

     

  • v-alzhan-msft Profile Picture
    Microsoft Employee on at

    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
    Microsoft Employee on at

    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

    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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 289

#2
11manish Profile Picture

11manish 288 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 125

Last 30 days Overall leaderboard