When performing an Active Directory synchronization, the follow error is logged:
 Database error 8623: The query processor ran out of internal resources and could not produce a query plan. This is a rare event and only expected for extremely complex queries or queries that reference a very large number of tables or partitions. Please simplify the query. If you believe you have received this message in error, contact Customer Support Services for more information.
Issue fixed in Identity Manager version 7.0 RP2. The latest version of Identity Manager can be downloaded here.