Inside a sync scope what order do tables sync? #1287
Replies: 2 comments 1 reply
-
The order is declared when you are creating your Setup For instance, as example, your setup for AdventureWorks should be something like: var setup = new SyncSetutp("Address", "Customer", "CustomerAddress"); Because we need the
If you still have some foreign keys constraints issues, you can try the options var options = new SyncOptions { DisableConstraintsOnApplyChanges = true }; |
Beta Was this translation helpful? Give feedback.
-
For some reason, regardless of the order of my tables in the setup, provisioning takes place in a different order (as I can see in the progress) and therefore leads to issues due to missing references (even with DisableConstraintsOnApplyChanges = true). |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a sync scope with 10 tables. I list Table A before Table B and even alphabetically Table A becomes before Table B. Table B has FK to Table A. When I sync I get an error saying The FK value of Table B doesn't exists in Table A. What is the order of tables processed in a sync? or can I dictate the order in which the tables are processed?
Beta Was this translation helpful? Give feedback.
All reactions