cancel
Showing results for 
Search instead for 
Did you mean: 

Ignoring Error Records

Former Member
0 Kudos

Hi all,

I have a scenario like this

If i have 100 records in the file then in the idoc there will be 100 data segments to be created.

if say 5 records were error then i need to create an idoc with 95 data segments. and ignore the 5 error records.

how can we do this?

Actually,

As soon as the file is picked by XI, it does a lookup in the XI itself

I have a lookup table with the fields

CodeDomain Group

Code DomainID

ORIGID

DESTID

CURRVALUE

MAPPED VALUE

if the file doesnot contain a CURRVALUE then those records needs to be ignored and proceed processing the other subsequent records.

Please advice.

Thanks in advance..

Regards,

Kumar

Accepted Solutions (1)

Accepted Solutions (1)

nisarkhan_n
Active Contributor
0 Kudos

in mapping to the segment of the idoc (root level ) create the target node only when your lookup valuei meanthe file doesnot contain a CURRVALUE then dnt map it..what i mean is

suppose field A in your Datatype contains field value CURRVALUE...

use if without else

if check the output of the lookup is equasls to CURRVALUE pass this to IF on the else part put the root node of the fileDT

in siple words create the target node wonly wehn your condition is true....

this will work fine

Message was edited by:

n Khan

Answers (1)

Answers (1)

Former Member
0 Kudos

Hey Kumar,

It is very simple. you can do it very easly.

In you mapping, just validate the parent node of surce before mapping to the parent node of target (i.e.<b>IDOC</b>).

Say your source parent name is <b>ROOT</b> or <b>Records</b>, now as per your requirement do like this.

Use <b>IF without Else</b> function

<b>CURRVALUE -


> EQUALS ---> SPACE ---> NOT -


> IF, THEN ---> ROOT ---> IDOC</b>

By doing this, it will create the IDOC only for those records which will be having a value in CURRVALUE field.

Regards,

Sarvesh