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 / Template: "Copy one Sh...
Power Automate
Unanswered

Template: "Copy one SharePoint folder to another on a recurring basis" got error when copying files

(0) ShareShare
ReportReport
Posted on by

Hi, There,

There are 5 subfolders in the source folder, and each of them contain lots of files and subfolder, There is only one file failed when execute the flow, Both source and target folder are Teams group file, it says:

 

A file with the name Shared Documents/General/testing/General1/2021-2022/ABC/Mar2021 SC/2021-2022 AAA BBB - CCC - EEE.xlsx already exists. It was last modified by  on . CallStack --    at Microsoft.SharePoint.SPGlobal.HandleComException(COMException comEx)

   at Microsoft.SharePoint.Library.SPRequest.CreateOrUpdateFileAndItem(String bstrUrl, String bstrWebRelativeUrl, Guid& docId, Object punkDoc, Int32 docLength, Int32 exists, String bstrCreatedBy, String bstrModifiedBy, Int32 iCreatedByID, Int32 iModifiedByID, Int32 iVersion, Object varTimeCreated, Object varTimeLastModified, Object varProperties, String checkInComment, Int32 docLibRowID, String bstrListName, Int32 bNoExecute, SPFileSaveParams sfsp, Int32 bSkipModerateStatusCheck, UInt32& pdwVirusCheckStatus, String& pVirusCheckMessage, Object& pvarMergedProperties)

   at Microsoft.SharePoint.Deployment.FileSerializer.CreateOrUpdateFileWithGuid(Stream spstm, SPLoggerObject loggerObject, SPWeb web, Guid fileId, SPResourcePath filePath, String fileValue, Int64 bytesInAzure, String quickXorHash, Int32 authorId, String authorLoginName, Int32& editorId, String editorLoginName, String checkinComment, DateTime& timeCreated, DateTime& timeLastModified, MetaInfoHandler metaInfo, Int64 length, Int32 iVersion, Boolean isFirstVersion, Nullable`1 isLastVersion, SPImportSettings settings, Int32 listItemId, String listInternalName, Boolean hasNoExecuteFlag, ImportObjectManager objectManager, DecryptionInfo decryptionInfo, Nullable`1 preserveExistingOnConflict, Boolean createAntlerFile, Guid parentId, Object& propertyArray, Object& mergedMetaProperties, Boolean createStubFileOnly)

   at Microsoft.SharePoint.Deployment.FileSerializer.CreateStubFileForFirstVersionAndBlobCopyForAllVersions(SPLoggerObject loggerObject, SPWeb web, Guid fileId, SPResourcePath filePath, String fileValue, Int32 authorId, String authorLoginName, Int32 editorId, String editorLoginName, String checkinComment, DateTime timeCreated, DateTime timeLastModified, MetaInfoHandler metaInfo, Int32 iVersion, Boolean isFirstVersion, Nullable`1 isLastVersion, Int32 listItemId, String listInternalName, Boolean hasNoExecuteFlag, ImportObjectManager objectManager, SerializationInfoHelper infoHelper)

   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, Nullable`1 isLastVersion, 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, Nullable`1 isLastVersion, 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, Nullable`1 isLastVersion, Boolean hasWebParts, SerializationInfoHelper infoHelper, SerializationInfoHelper infoHelperListitem, StreamingContext context)

   at Microsoft.SharePoint.Deployment.FileSerializer.CreateOrUpdateFileAndAssocData(Object fileOrListItem, SPLoggerObject loggerObject, SPWeb web, Guid id, SPResourcePath& filePath, Boolean fileExistsInDb, Nullable`1 isLastVersion, 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, Boolean isLastVersion, StreamingContext context, ISurrogateSelector selector, LoggerStatistics stats)

   at Microsoft.SharePoint.Deployment.ListItemSerializer.SetObjectData(Object obj, SerializationInfo info, StreamingContext context, ISurrogateSelector selector)

clientRequestId: c93c68b7-ba1a-4a3d-89db-a80cb5f4091e

serviceRequestId: c93c68b7-ba1a-4a3d-89db-a80cb5f4091e

 

Could anyone help me on this?

Thank you.

Categories:
I have the same question (0)

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 458

#2
Vish WR Profile Picture

Vish WR 345

#3
David_MA Profile Picture

David_MA 261 Super User 2026 Season 1

Last 30 days Overall leaderboard