The following information would be really helpful;
AR or AP?
Multi-currency?
Which versions are you using?
In general you would deal with this as follows;
1. Backup the database
2. Run the data integrity check
3. When finished run the Rebuild function.
4. Repeat steps 2 and 3 until step two reports no errors (may take 2 or 3 tries).
If the data integrity check advises you that an expert is required to repair the data then you will need to contact your Adagio dealer for assistance.