Custom Account Aggregation via Rule for AD Direct IIQ Application

We have an AD Direct application configured with Multiple domains. The problem with the current account aggregation task for applications is it fails and stops, resulting in an error when the initial domain read by aggregation is unreachable.

What we want is an aggregation that can continue to aggregate the next available domain for the AD Direct App and just outputs the errors without compromising aggregations of other domains.

Is it possible to do such aggregations? Can we create it via Rule? If yes, can you provide some example codes? Any insights will also help.

Thanks!

You might need to separate out each domain into a different AD Application, each with its own aggregation task. This way, you can chain the aggregation tasks in a single sequential task, and configure the sequence to continue with the next task even if one of the tasks in the sequence fails.