Originally posted by: SystemAdmin
I have a type tree generated from a db query. The default for row is track by places and that is what I would expect, with all columns set with a range of (0:1), also as I would expect.
The data retrieved from db is returned correctly, if the column in the db is empty (null) the delimited group is has the ||.
When mapping an optional column in the output rule (on an optional output object) the output object is created with blanks. If I use any rule such as EITHER, TRIMRIGHT, TEXT, IF(PRESENT()..., or a call to a f_map with the db column as arg the output object is not created. I don't understand why any conditional logic or a function call is needed here.
I turn trace on and I don't understand why the validation behavior:
(Level 2: Offset 489, len 0, comp 19 of 45, #1, DI 00000000009D:)
COMPONENT number 19 of TYPE X'0004' (Row usp_WTXMap_Export_835 Data):
occurrence 1 is optional and has no content.
(Level 2: Offset 489, len 0, comp 19 of 45, #2, DI 00000000009D:)
Data at offset 489 ('|||||||||||20100') was found to be of TYPE
X'0018' (rms_835_ELEMENT_05 Column usp_WTXMap_Export_835 Data).
Why is a second instance being reported for an component that has a range of 0:1?
If I change the track to content from places the straight map of the optional input object only creates output when there is data, no function or logic wrapping the input is required and the trace is as follows:
(Level 2: Offset 489, len 0, comp 19 of 45, #1, DI 00000000005D:)
COMPONENT number 19 of TYPE X'0004' (Row usp_WTXMap_Export_835 Data):
occurrence 1 is optional and has no content.
(Level 2: Offset 490, len 0, comp 20 of 45, #1, DI 00000000005D:)
COMPONENT number 20 of TYPE X'0004' (Row usp_WTXMap_Export_835 Data):
occurrence 1 is optional and has no content.
Can anyone tell me why I need to change the track for this to work? Does not make sense based on my understanding of the content vs places track property.
#DataExchange#IBMSterlingTransformationExtender#IBM-Websphere-Transformation-Extender