cancel
Showing results for 
Search instead for 
Did you mean: 

How to check header data

Former Member
0 Kudos

Hi All,

I have to scenario where in I need to check if the data header is present or not in the incoming data, the header data contains only date field. If the date is not present the process should stop and email should be sent (No BPM). How to handle this?

Regards,

XIer

Message was edited by:

XIer

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

In the receiver datatype make the date field occurrence as 1..1. Map the source date field to the target field. So if the date field is present in the source file then it continues with the mapping. If the date filed is not present in the source file then it fails in mapping and throws a mapping error in sxmb_moni.

Create alerts for mapping. So since the above message is failed due to mapping error it will trigger alerts in the mail box.

Regards,

---Satish

Answers (1)

Answers (1)

Former Member
0 Kudos

hey

you can trigger alerts by writing a UDF and checking for the occurence of the date field.

have a look at the following

/people/bhavesh.kantilal/blog/2006/07/25/triggering-xi-alerts-from-a-user-defined-function

Thanx

Ahmad

Former Member
0 Kudos

Thanks Ahmed,

But how make sure that the data in the header field is a valid Date field and not 12345678 kind of data?

Regards,

XIer

Former Member
0 Kudos

Thanks Ahmed,

But how make sure that the data in the header field is a valid Date field and not 12345678 kind of data?

Regards,

XIer