If you have an entity that is failing to sync, you could end up with a validation message similar to "Dependency has validation errors" which highlights there are related record(s) with errors.
What does "Dependency has validation errors" mean?
Integrating between Re-Leased and Xero can be challenging. There's things that can go wrong with syncing the data between the two. This could be due to a few reasons but is usually because whatever you are doing in Re-Leased cannot be done the same way in Xero. There might be other scenarios where something has gone wrong and data has become rotten. Either way, this will shed some light on why this is happening and how to handle it.
Entities refer to Contacts, Accounts, Tax Types, Invoices, Attachments, Credit Notes, Payments and Tracking Options. These entities interact and rely on each other. For instance, an Invoice has a Contact, Tax, Account and Tracking references on the Invoice itself. If one of these references don't exist in Re-Leased or in Xero, it will fail to sync between the two systems.
As an example, you are syncing to Re-Leased and a contact failed to sync across because it is invalid. Any Invoice or Credit Note using this contact will also fail to come across. This is because Re-Leased has no context of the Contact on the Invoice or Credit Note, therefore making itself invalid as well. In this situation, you must first make the 'dependent entity' i.e. the Contact, successfully sync between the two systems. Once you have resolved that, you will be able to sync your Invoice or Credit Note.
- Copy the 'Id' of the Account/Contact/Invoice/Tax/TrackingCategory mentioned in the validation message
- On the Sync Results Page ensure 'linked' is selected on the filter at the top of the table
- Enter the 'Id' into the search bar filter and you should see your record with a validation message
- Read the 'Detail message' and click on the 'More info' link if you are unsure about your next steps