Reset or clear error message in activity while calling a Service REST

I have an activity where I check for certain fields using Property-Validate and set the error message. I check for 2 fields by selecting the "Required" checkbox. Later I capture these error message using @getMessagesAll(Primary) and set it on the Response back to the REST service caller.

1. When I send a request without 1 field I get error message that both fields are required eventhough the 2nd field is there in the json.

2. When I send a 2nd request with all fields, I still get the same error message eventhough all 2 fields are there in the json.

How can I reset or clear this error messages before this step is called?


Keep up to date on this post and subscribe to comments

December 12, 2019 - 5:56pm


Can you try using page-clear-messages before property validation step.



December 12, 2019 - 7:53pm

Thanks Deva. I tried that and it didnt work then I tried to set empty value on the Response as well that didnt work as well


December 13, 2019 - 8:35am

Hi, The error may be on the property, can you try Property-Clear message method in the activity? Thanks.