on 2021 Jul 08 12:59 PM
Hello Colleagues,
I have a question regarding duplicate messages from the backend for the mandatory field check in the SAP UI5. For the managed scenario RAP, I am invalidating the state of the message also but still, I am not able to clear the duplicacy.
Do you have any idea what could be the problem?
OData version: V2
RAP scenario: managed with draft
Framework method: FOR VALIDATE ON SAVE
Root entity: transpdoc
Regards
Shikha
Request clarification before answering.
Hi Shikha,
Two possibilities here:
1. Before append in the reported with %msg, you need to append the same state area again in the reported without anything in %msg so that it clears the earlier raised messages with the same state area. This append to reported with same state area with nothing in %msg should be there even if the issue is solved and entries are valid.
2. Check the batch calls in console. For merge batch calls, for each POST you should get a response. If even one POST call is failing and response is not returned, then it considers the response of the previous POST and duplicates the messages.
I hope it solves your issue.
Regards,
Rohan Bhateja
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rohan,
Check the batch calls in console. For merge batch calls, for each POST you should get a response. If even one POST call is failing and response is not returned, then it considers the response of the previous POST and duplicates the messages.
This is what happening in my case actually multiple post calls are going from frontend to Backend in the same change request if one request is failed based on the number of post calls messages are duplicated. But i need only one message.
User | Count |
---|---|
51 | |
6 | |
5 | |
5 | |
5 | |
5 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.