Author |
Message
|
valentine |
Posted: Fri Dec 08, 2006 5:03 am Post subject: Parent-Child in FixedWidth Jtext Adapter |
|
|
Newbie
Joined: 07 Dec 2006 Posts: 8
|
Hi,
I need to configure a Fixed-Width file adapter which has one header and mulitple childs records. I have set the Cardinality of the child to N.
When I set the EndBODelimiter to EOF I get one parent and one child record even thought there are mulitple child records. And when I set the When I set the EndBODelimiter to EOL I get the following error message:-
[Type: Warning] [MsgID: 106005] [Mesg: **** WARNING :: Internal error: Exception :: java.lang.Exception: Already reached end of BO while expecting more token
at com.wbi.DataHandlers.text.custfixedwidth.getNextToken(custfixedwidth.java:615)
at com.wbi.DataHandlers.text.custfixedwidth.parseAttributeList(custfixedwidth.java:808)
at com.wbi.DataHandlers.text.custfixedwidth.getBOFromString(custfixedwidth.java:505)
at com.wbi.DataHandlers.text.custfixedwidth.getMultipleCard(custfixedwidth.java:923)
at com.wbi.DataHandlers.text.custfixedwidth.parseAttributeList(custfixedwidth.java:789)
at com.wbi.DataHandlers.text.custfixedwidth.getBOFromString(custfixedwidth.java:505)
at com.wbi.DataHandlers.text.custfixedwidth.getBO(custfixedwidth.java:315)
at com.crossworlds.DataHandlers.DataHandler.getBO(DataHandler.java:570)
at com.crossworlds.connectors.jtext.FileParser.createAndFormatWorkUnit(FileParser.java:816)
at com.crossworlds.connectors.jtext.FileParser.run(FileParser.java:624)
at java.lang.Thread.run(Thread.java:568)
From the trace file it seems that the adapter is still trying to parse the child record assuming its a parent BO.
Any ideas what needs to be done to resolve the issue.
Thanks,
Valentine |
|
Back to top |
|
 |
vk |
Posted: Fri Dec 08, 2006 7:11 am Post subject: |
|
|
Partisan
Joined: 20 Sep 2005 Posts: 302 Location: Houston
|
Quote: |
I need to configure a Fixed-Width file adapter which has one header and mulitple childs records. |
Not clear what you are trying to do. Are you trying to read a file having one header and multiple detail records? Or are you trying to writre a message having one header and multiple detail records into a file?
Can you provide more details on your BO structures?
Regards,
VK. |
|
Back to top |
|
 |
valentine |
Posted: Sun Dec 10, 2006 8:28 pm Post subject: |
|
|
Newbie
Joined: 07 Dec 2006 Posts: 8
|
Hi,
I want to read a file which is a dump of SAP. It has one header line and multiple child lines.
Thanks,
Valentine |
|
Back to top |
|
 |
vk |
Posted: Sun Dec 10, 2006 9:24 pm Post subject: |
|
|
Partisan
Joined: 20 Sep 2005 Posts: 302 Location: Houston
|
What version of JText adapter are you using? The base version 5.6.0 had an issue in processing event file with multiple BOs -
Quote: |
CR71317/JR23325
A parsing error when JText polls input file contain multiples business objects separated by a multiple business object EndofBODelimiters. The fix now enables the adapter to process an event file that has multiple business objects and is separated by multiple business object delimiters. |
This issue was fixed in fixpack 5.6.3 for the JText adapter. If you are not at fixpack 3, then retest after installing the same.
Regards,
VK. |
|
Back to top |
|
 |
valentine |
Posted: Mon Dec 11, 2006 4:55 am Post subject: |
|
|
Newbie
Joined: 07 Dec 2006 Posts: 8
|
Now I am getting the following error message:-
[Mesg: **** WARNING :: Internal error: Exception :: java.lang.Exception: Unable to find version "*.*.*" of business object definition
Thanks
Valentine. |
|
Back to top |
|
 |
|