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 / Error with SharePoint ...
Power Automate
Unanswered

Error with SharePoint move file action

(0) ShareShare
ReportReport
Posted on by 9

We are getting this error with one of our flows that moves a SharePoint File to another document library.

This constraint cannot be enabled as not all values have corresponding parent values. CallStack --    at System.Data.ConstraintCollection.AddForeignKeyConstraint(ForeignKeyConstraint constraint)

   at System.Data.ConstraintCollection.Add(Constraint constraint, Boolean addUniqueWhenAddingForeign)

   at System.Data.DataRelationCollection.DataSetRelationCollection.AddCore(DataRelation relation)

   at System.Data.DataRelationCollection.Add(DataRelation relation)

   at System.Data.DataRelationCollection.Add(String name, DataColumn parentColumn, DataColumn childColumn)

   at Microsoft.SharePoint.Deployment.ListItemObjectHelper.ProcessQueryResult(SqlDataReader reader)

   at Microsoft.SharePoint.Deployment.ListItemObjectHelper.GetNextBatchV2()

   at Microsoft.SharePoint.Deployment.ObjectHelper.RetrieveDataFromDatabase(ExportObject exportObject)

   at Microsoft.SharePoint.Deployment.ListItemObjectHelper.RetrieveData(ExportObject exportObject)

   at Microsoft.SharePoint.Deployment.ExportObjectManager.ExportListItemObjects(Boolean isRootObject)

   at Microsoft.SharePoint.Deployment.ExportObjectManager.GetRootObjectBatchOnType(SPObjectType objectType)

   at Microsoft.SharePoint.Deployment.ExportObjectManager.GetNextExportObjectBatchForRootObjects()

   at Microsoft.SharePoint.Deployment.ExportObjectManager.MoveNext()

   at Microsoft.SharePoint.Deployment.SPExport.SerializeObjects()

   at Microsoft.SharePoint.Deployment.SPExport.Run()

clientRequestId: 4ae1833b-a7e5-408e-8e2c-96a36de9aa9a

serviceRequestId: 4ae1833b-a7e5-408e-8e2c-96a36de9aa9a

 

The flow uses the When an item or a file is modified trigger and Get changes for an item or a file (properties only) to check for column changes.  

MY_0-1600392933159.png

 

MY_0-1600393154396.png

 

 

What would be causing the error?

Categories:
I have the same question (0)
  • sudharsan1985 Profile Picture
    1,325 on at

    Hi @MY 

    I tried the below actions with the different values for the 'File to Move' property in the 'Move File' action. I used 'Full Path' from the triggerOutput instead of 'Identifier'. Please try it out. Remember to add the condition for 'Checked-out' documents. If your document library is enabled with check-in and check-out functionality, you have to check whether the files are checked-in or not then you have to move the file. You can also use the 'Checkout' value in the trigger condition so that the flow will trigger only when the file is checked in.

     

    sudharsan1985_0-1600515586580.png

     

    Hope it helps, please like it or mark it as a solution if it resolves your clarification or issue
    -Sudharsan K...

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…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard