Failures Preprocessor Not Deleting my Error Messages

Failures Preprocessor Not Deleting my Error Messages

arshad.k
Enthusiast Enthusiast
560 Views
1 Reply
Message 1 of 2

Failures Preprocessor Not Deleting my Error Messages

arshad.k
Enthusiast
Enthusiast

Hello Guys!!!

    I have struck in Failure Handling, Error messages not deleting using FailuresPreprocessor...

Can anyone give hand to solve this?

 

My Execute Method

arshadk_0-1641301555724.png

My Failure Processor

arshadk_1-1641301597902.png

 

@naveen.kumar.t @jeremytammik @RPTHOMAS108 @sahin.ikbal 

 

0 Likes
561 Views
1 Reply
Reply (1)
Message 2 of 2

longt61
Advocate
Advocate

You can only suppress transaction Warnings, not Errors. When Errors happen, user input is required to determine the specific solutions. You can check if it is an Error or Warning using FailureSeverity enumeration.

P/s: in order to remove all warnings, you can use FailuresAccessor.DeleteAllWarnings() instead of using a foreach loop to delete each warning. If the FailureSeverity is not Warning, your code can cause an exception.

0 Likes