Saturday 12 January 2013

Handling SelectionFailure Fault in Assign activity for missing elements


SelectionFailure is a common fault that occurs when an element is missing and you are trying to assign it to target element.
It is possible that the source element might actually be an optional element in
the input document and the XML element marker being in square brackets will indicate this is an optional element.
Open an assignment that causes selectionFailure faults when an element is not present
in the input.
Right-click to the left-hand side of the assignment that causes the selectionFailure fault and select the ignoreMissingFromData.This will cause the assignment to be ignored if the source element does not exist

When the ignoreMissingFromData attribute is set on a copy statement in Assign,
it causes that copy statement to be skipped if the from query were to cause a
SelectionFailure fault.



No comments:

Post a Comment