cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
hilary_stoupa
Kudo Kingpin
Kudo Kingpin

Error on Copy File

I'm using a copy file step to copy a file to another library.

In most cases, this succeeds. But this morning, for three different files, I've had this error in the Copy File step:

"body":{"status":400,"message":"The 'ObjectId' attribute is not declared. CallStack --    at System.Xml.Schema.XmlSchemaValidator.SendValidationEvent(XmlSchemaValidationException e, XmlSeverityType severity)\r\n   at System.Xml.Schema.XmlSchemaValidator.SendValidationEvent(String code, String arg)\r\n   at System.Xml.Schema.XmlSchemaValidator.ValidateAttribute(String lName, String ns, XmlValueGetter attributeValueGetter, String attributeStringValue, XmlSchemaInfo schemaInfo)\r\n   at System.Xml.XsdValidatingReader.ValidateAttributes()\r\n   at System.Xml.XsdValidatingReader.ProcessElementEvent()\r\n   at System.Xml.XsdValidatingReader.Read()\r\n   at Microsoft.SharePoint.Deployment.SqlBatchImport.Run()\r\n   at Microsoft.SharePoint.Deployment.SPImport.DeserializeUserGroupMap()\r\n   at Microsoft.SharePoint.Deployment.SPImport.Run()\r\nclientRequestId: 48b79b59-2b46-4ce7-ae9b-87dd4d4f8028\r\nserviceRequestId: 48b79b59-2b46-4ce7-ae9b-87dd4d4f8028"}}

I have no idea what to check. At first I thought it might be permissions related, but then I realized that the successful copies were not copying permissions, so perhaps that's not right. I based that guess on the stack trace reference to "Microsoft.SharePoint.Deployment.SPImport.DeserializeUserGroupMap", but I'm not finding much online to help with this.

Any ideas? 

1 REPLY 1
hilary_stoupa
Kudo Kingpin
Kudo Kingpin

I've found I can manually copy the same files from the same source to the same target as the Flow step is using with the SharePoint Library copy option. I've also found that if I remove the values from a person/group column for the file, the Flow copy succeeds. But the users in those person/group column are valid and I see nothing unusual about the data for them when I query via the REST API.

Helpful resources

Announcements
MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

New Process Advisor Capabilities carousel.png

Read the blog for the latest news

Read the latest about new experiences and capabilities in the Power Automate product blog.

PA Survey Carousel Image.png

We want to hear from you!

If you are a small business ISV/Reseller, share your thoughts with our research team.

Users online (2,252)