awaiting for your input @ruben.maas
Hi @Saranga Amaraweera \ @seeda ,
Using an XML map all primary records are processed sequential independently, we can’t change that behavior with configuration.
so if TASK is the primary table of the XML map it is not possible to rollback all tasks in case of an exception.
The only way to accomplish this requirement is to change the primary table of the XML to a parent object, e.g. REQUEST and process the associated tasks as child transactions.
That way, if one task failed to update the other related to the same parent object (REUQEST) will be rolledback.
Cheers,
Ruben
here we are using request table also . Example i mentioned Tasks only .
as per my undersetting .Need to follow
- we can create one custom table as parent table of request
- use customer table reference id in all child request table in one of the user_def column. this way if any one of the child request/task fails , entire transaction rolled back .
let me test on this scenario