on 11-01-2016 4:20 PM
Hello,
When I run MDR job and if there is any error in one of the record, the other record values are not getting saved. Can you please help me how can I overcome this issue? I'm using query.Execute() method and updating the record values in the loop. Should I need to use ExecuteFromDB()?
Thanks.
Regards,
Mohan Babu
Hi Mohan,
You could search in the Repository explorer under Inbound service interfaces, if not found you could create one.
Thanks, Pradeep.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mohan Babu,
In the loop when you modify, the changes are not yet saved, all the changes are saved at once, hence if there is any error everything gets rolled back.
If you want to save for earch iteration in the loop, then you could execute webservice in the loop.
Thanks, Pradeep.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Mohan Babu,
Why do you call a query manually in a MDRO? This makes the complete process nonsense. 😞 😞 😞
A MDRO is defined UPON a query and for every query result the resp. action is called.
There is no need for calling a query or an action manually. If you do so, you will lose all advatanges of the MDRO framework, like parallelism,...
Bye,
Horst
PS: I need to write a blog on that. 😉
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Pradeep / Horst,
Thank you for your responses. My scenario is that I need to update Service Request ticket fields based on some logic. So I would like to get the ticket information. I'm getting all the tickets by querying the standard object and looping over to update the extension fields.
Regards,
Mohan Babu
Hi Mohan,
MDRO executes the action and then save, which means if there is any error in the action execution, none of them would be saved.
To solve your issue, either fix the errorneous record or enhance your query parameter to filter out such errorneous record.
Thanks, Pradeep.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.