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?
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.
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
Read the latest about new experiences and capabilities in the Power Automate product blog.
User | Count |
---|---|
24 | |
20 | |
9 | |
9 | |
7 |
User | Count |
---|---|
40 | |
33 | |
26 | |
22 | |
13 |