Have you deleted any companies through SQL in the past. I have seen this issue before and the Dynamics database was looking for companies that were no longer in SQL. I ran the clear companies script from Partnersource and that resolved the issue. If you are doing this in live make sure that you backups before proceeding.
↧