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 / Copy File action updat...
Power Automate
Answered

Copy File action updated? (SharePoint)

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello,

 

I made a flow a couple of months ago and now it doesn't work anymore. It seems like the copy file action has changed. Before it used FilePath, not it seems like it uses a ID/File Identifier to copy.

222.png

11111.png

I'm using the HTTP request trigger to send information about a SharePoint file, so I'm using a combination of data from the message and dynamic data. And now I can't seem to copy the file anymore.

When I try to use the correct values I get an error message which I dont understand.

 

Member 'Level' was not found. CallStack -- at System.Runtime.Serialization.SerializationInfo.GetElement(String name, Type& foundType)
 at System.Runtime.Serialization.SerializationInfo.GetByte(String name)
 at Microsoft.SharePoint.Deployment.FileSerializer.UploadFileData(Object fileOrListItem, SPLoggerObject loggerObject, SPWeb web, Guid fileId, SPResourcePath filePath, FileInfo fileInfo, String fileValue, Int32 authorId, String authorLoginName, Int32 editorId, String editorLoginName, String checkinComment, DateTime timeCreated, DateTime timeLastModified, MetaInfoHandler metaInfo, Int32 iVersion, Boolean isFirstVersion, Int32 listItemId, String listInternalName, Boolean hasNoExecuteFlag, ImportObjectManager objectManager, SerializationInfoHelper infoHelper)
 at Microsoft.SharePoint.Deployment.FileSerializer.UploadFileData(Object fileOrListItem, SPLoggerObject loggerObject, SPWeb web, Guid id, SPResourcePath filePath, Boolean fileExistsInDb, SerializationInfoHelper infoHelper, SerializationInfoHelper infoHelperListitem, MetaInfoHandler metaInfo, StreamingContext context)
 at Microsoft.SharePoint.Deployment.FileSerializer.CreateOrUpdateFile(Object fileOrListItem, SPLoggerObject loggerObject, SPWeb web, Guid id, SPResourcePath& filePath, Boolean fileExistsInDb, Boolean isFirstVersion, Boolean hasWebParts, SerializationInfoHelper infoHelper, SerializationInfoHelper infoHelperListitem, StreamingContext context)
 at Microsoft.SharePoint.Deployment.FileSerializer.CreateOrUpdateFileVersions(Object fileOrListItem, SPLoggerObject loggerObject, SPWeb web, Guid id, SPResourcePath& fileUrl, Boolean fileExistsInDb, SerializationInfoHelper infoHelper, StreamingContext context)
 at Microsoft.SharePoint.Deployment.FileSerializer.CreateOrUpdateFileAndAssocData(Object fileOrListItem, SPLoggerObject loggerObject, SPWeb web, Guid id, SPResourcePath& filePath, Boolean fileExistsInDb, SerializationInfoHelper infoHelper, SerializationInfoHelper infoHelperListitem, StreamingContext context, ISurrogateSelector selector)
 at Microsoft.SharePoint.Deployment.ListItemSerializer.AddOrUpdateDoclibItem(SerializationInfoHelper infoHelper, SPListItem& listItem, SPLoggerObject loggerObject, SPWeb web, Guid newId, SPResourcePath& listItemServerRelativePath, Boolean bIsPublish, Boolean exists, StreamingContext context, ISurrogateSelector selector, LoggerStatistics stats)
 at Microsoft.SharePoint.Deployment.ListItemSerializer.SetObjectData(Object obj, SerializationInfo info, StreamingContext context, ISurrogateSelector selector)
clientRequestId: e400ffca-3ccb-4a7b-a773-772d5a2636cc
serviceRequestId: 2d91ad9e-a05c-7000-6ed5-f380b77120ed

 

 

My old flow when it actually worked:

333.PNG

Appreciate any thoughs and answers  Cat Happy

Categories:
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    movefile.PNG

     

    If I move the file everything works, but this is not what I need to do. And then I'm able to use the FilePath value.
    movefileaction.PNG

  • Verified answer
    v-yuazh-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous,

     

    I have made a test on my side, and the Copy file action would works well on my side when I choose or fill in the file path in the "File to copy" column,the flow would run successfully as below:

    Capture.PNG

     

     

    Please check if the file path that you entered in the "File to copy" column is correct.

     

    Best regards,

    Alice

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 430

#2
11manish Profile Picture

11manish 341 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 282

Last 30 days Overall leaderboard