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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Microsoft flow, Copy f...
Power Automate
Unanswered

Microsoft flow, Copy file error 400 - "Member 'Level' was not found. CallStack...

(0) ShareShare
ReportReport
Posted on by 8

Hey,

 

This is my first post so I hope you can excuse potential flaws in how I formulate my question.

 

I have an issue with microsoft flow not performing the flow that I have constructed in sharepoint. I have tried troubleshooting this for a while now but can't seem to figure out the issue.

 

What I'm trying to do is copy files from a folder to another folder:

( DokumentLibrary1/Subfolder/Subfolder2/(copy)file --> DokumentLibrary2/Subfolder/(place)file )

 

I have gotten as far as narrowing it down to the "Copy file" action not working(it has previousley been working).

The error message I am getting is as follows:

 "status"400,
  "message""Member 'Level' was not found. CallStack...

sharepointError.png

 

Anyone that can help me with any info?

 

Thanks in advance!

 

/CK

 

Categories:
I have the same question (0)
  • v-bacao-msft Profile Picture
    on at

    Hi @Christian_K,

     

    Could you share a full screenshots of your Flow configuration? It seems to be a problem with this action configuration.

    I can't reproduce your mistakes here.

    Could you provide all the error messages?

    Please provide more details and we would provide a proper workaround for you.

     

    Best Regards,

    Barry

  • Christian_K Profile Picture
    8 on at

    Hey,

     

    Thanks for the reply.

     

    Its kind of hard to show the whole process, but this is more or less the flow...

    1. When HTTP Request is recieved

    2. Get Metadata by Path

    2. List Folder

    3. Apply to each

    4. If (filetyp != folder)

    5. Copy file from path A to path B

    copyFlowFail.pngnewCopyFlow.png

     

    The error message is pretty long:

    start --------- 

    "status"400,
      "message": "Member 'Level' was not found. CallStack --    at System.Runtime.Serialization.SerializationInfo.GetElement(String name, Type& foundType)\r\n   at System.Runtime.Serialization.SerializationInfo.GetByte(String name)\r\n   

    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)\r\n   

    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)\r\n  

     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)\r\n   

    at Microsoft.SharePoint.Deployment.FileSerializer.CreateOrUpdateFileVersion(Object fileOrListItem, SPLoggerObject loggerObject, SPWeb web, Guid id, SPResourcePath& fileUrl, Boolean fileExistsInDb, String version, Boolean isFirstVersion, SerializationInfoHelper infoHelper, SerializationInfoHelper infoHelperListitem, StreamingContext context, ISurrogateSelector selector)\r\n  

     at Microsoft.SharePoint.Deployment.ListItemSerializer.AddOrUpdateDoclibItemVersion(SerializationInfoHelper infoHelper, SPListItem& listItem, SPLoggerObject loggerObject, SPWeb web, Guid newId, SPResourcePath& listItemServerRelativePath, Boolean bIsPublish, Boolean exists, String version, Boolean isFirstVersion, Boolean isLastVersion, StreamingContext context, ISurrogateSelector selector, LoggerStatistics stats)\r\n   

    at Microsoft.SharePoint.Deployment.ListItemVersionSerializer.AddListItemVersion(SPWeb web, SPListItem listItem, SPLoggerObject loggerObject, Guid newId, Boolean editHistory, Boolean existsInDb, Boolean isFirst, Boolean isLast, Boolean isDocLib, StreamingContext context, XmlElement listItemData, SerializationInfoHelper listItemInfoHelper, SPResourcePath& listItemServerRelativeUrl, ISurrogateSelector selector, LoggerStatistics stats, Guid docId)\r\n  

     at Microsoft.SharePoint.Deployment.ListItemSerializer.UpdateListItemVersionData(SerializationInfoHelper infoHelper, SPWeb web, SPListItem& listItem, Guid newId, Boolean existsInDb, Boolean isDocLib, SPResourcePath& listItemServerRelativePath, StreamingContext context, ISurrogateSelector selector)\r\nclientRequestId: ... \r\nserviceRequestId: ...

    --------- end

  • Christian_K Profile Picture
    8 on at

    @v-bacao-msft

     

    Might not matter, but forgot to ref. you.

  • simonjhudson Profile Picture
    42 on at

    HiIt's been a while since anyone repleid; but I have been ahving the same issue that you had.

    In the end it turns out to be something wierd to do with the Promoted State (used for turning pages into news pages) in the source files. At least that was teh case for us. Creating a copy of the soruce file solved our issue, even though we don;t really know why.

     

    I hope it helps you 

  • Tom_Slosse Profile Picture
    1,430 on at

    Hey all

     

     

    Maybe you should try the action, create file instead of copy file.

    In the past there have been some issues with the copy file action.

    It is better to create a new one but with the file content of the file you want to "copy".

     

    Kind regards

     

     

    Tom

  • simonjhudson Profile Picture
    42 on at

    interesting Tom. How would we create a new file or page with the content of an existing one?

  • Community Power Platform Member Profile Picture
    on at

    Having the same issue here, and can't solve it. I had the copy file action working earlier.
    Any new thoughts regarding this?

    If I try to make a new aspx file I get access denied, so that doesn't seem to be a solution to the issue.

  • Tom_Slosse Profile Picture
    1,430 on at

    Hey @simonjhudson

     

     

    Sorry for the super late answer.

     

    Well there is a action called Get File Content so you can get the content of the existing page and copy it to the new one.

    Here is an example of it:

    Create new file.PNG 

     

    Kind regards

     

     

    Tom

  • Carl__D Profile Picture
    84 on at

    I've just had the same issue.

    The page I was trying to copy had changes that were not yet published, once the site was re-published 'Copy File' then worked in Power Automate. 

  • aliciawarner Profile Picture
    23 on at

    This was happening to me when I tried to copy the OOTB site homepage. For us, it shows as created by System Account. I think this is why it worked for others after they created a copy within the same site, because I think then it will show as created by the person who copied it, and have the required metadata for the flow to be successful.

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…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 398 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 331 Super User 2025 Season 2

#3
Expiscornovus Profile Picture

Expiscornovus 203 Most Valuable Professional

Last 30 days Overall leaderboard