Receiver File Adapter Content Conversion Problem.
I am getting in receiver file adapter due to content conversion setting. Problem is that all the fields coming in file adapter are optional. In content conversion , i have specified fieldfixedlengths. So whenever any optional field is not present , it fails . How should we handle it? is there any option to declare fields as optional, I know that is the there for sender adapter. But no. of fields is also very large, so putting each and every field as optional is very time consuming.
What should i do?
Daniele Conca replied
your code needs the source element to <i>exist</i> to work fine.
Try the following: in the test tab of you mapping, remove a node and then test your UDF on that node with the "display queue" tool. You should see an empty context as result.
In that case no output will be produced and your message will fail.
Check the difference with the MapWithDefault function.