cancel
Showing results for 
Search instead for 
Did you mean: 

How to Ignore the Node

sridharreddy_kondam
Active Contributor
0 Kudos

Hi All,

Need your help,

Everything working fine and generating the file as required,

But small problem, If the condtion is not satisfied the mapping will generate empty node, Say out of 10 records, 4 do not satisy the condition, so 4 empty nodes are generated ..and 6 satisfy so 6 lines to be generated in the file...

But due to empty node coming for the 4 records and empty column is being inserted...

How to ignore the empty node?

My question : Is there a way to Ignore Empty Nodes in FCC...

Please Suggest...

Regards,

Sirhdar

Accepted Solutions (1)

Accepted Solutions (1)

prateek
Active Contributor
0 Kudos

I think it is not directly possible in FCC. If you don't want to create empty node using mapping, then use standard node function "createIf" and "Exist".

Regards,

Prateek

Answers (3)

Answers (3)

sridharreddy_kondam
Active Contributor
0 Kudos

Hi All,

We cannot ignore the Node In FCC in the File adapter...

Only way is to handle in the mapping and ignore the target node based on the condition... corrected it...

Thanks

SudhirT
Active Contributor
0 Kudos

Hi Sridhar,

As suggested, Use the conditions check for the source field with ExistS function and if it exists than based on the condition use createIf function to create the target node.

Thanks!

Former Member
0 Kudos

Hi sridhar,

this threads gives how to ignore an empty field , in a similar way u can ignore empty node i guess , else u can do this at the mappin level as suggested by prateek