Originally posted by: paul.brett
The first issue with this testcase, as shown in the trace:
(Level 1: Offset 0, len 5, comp 1 of 3, #1, DI 000000000001:)
Data at offset 0 ('pushh') failed RESTRICTION check for TYPE
X'0003' (Item Root).
....is that you have created a restriction for Typetree object 'item root'.
Once that is removed, I can see the map still fails due to your component rule:
(Level 1: Offset 14, len 5, comp 3 of 3, #1, DI 000000000002:)
Data at offset 14 ('krish') failed COMPONENT RULE test
for component number 3, TYPE X'0002' (Group2 Root).
Your rule is currently:
$="WHEN(PRESENT(Item),PRESENT(Item2))"
I think you meant to write:
IF(PRESENT(Item),PRESENT(Item2))
Which means, that if 'item' exists, then Item2 must also exist. Alter the rule to suit your needs. With the above, I get:
(Level 0: Offset 0, len 19, comp 1 of 0, #1, DI 000000000003:)
Data at offset 0 ('pushh<CR><LF>vissj<CR><LF>kr...') was found to be of TYPE
X'0002' (Group2 Root).
INPUT 1 was valid.
End of Validation messages for INPUT CARD 1
Thank-you.
Paul.
Follow me on Twitter
#IBMSterlingTransformationExtender#IBM-Websphere-Transformation-Extender#DataExchange