| Author | Message | 
		
		  | adars1 | 
			  
				|  Posted: Sat Nov 15, 2014 9:44 am    Post subject: DFDL parsing of file with fixed length records of group |   |  | 
		
		  | Apprentice
 
 
 Joined: 13 Jun 2010Posts: 39
 
 
 | 
			  
				| Hi 
 I have file with below fixed length  fields with line initiators.
 
 
 
   
	| Code: |  
	| 10001003 30aaaaaaaaaa1111111111
 40streetttttcityyyyyy
 2022222222222ididididid
 30bbbbbbbbbb2222222222
 30bbbbbbbbbb3333333333
 50005
 |  
 Above file has BatchHeader followed by group order details(header,detail,address), and BatchTrailer. I have below dfdl to parse file but not getting header,detail,address within one Order group.
 
 
 
   
	| Code: |  
	| <?xml version="1.0" encoding="UTF-8"?><xsd:schema xmlns:dfdl="http://www.ogf.org/dfdl/dfdl-1.0/" xmlns:ibmDfdlExtn="http://www.ibm.com/dfdl/extensions" xmlns:ibmSchExtn="http://www.ibm.com/schema/extensions" xmlns:recFixLengthFieldsFmt="http://www.ibm.com/dfdl/RecordFixLengthFieldFormat" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <xsd:import namespace="http://www.ibm.com/dfdl/RecordFixLengthFieldFormat" schemaLocation="IBMdefined/RecordFixLengthFieldFormat.xsd"/>
 <xsd:annotation>
 <xsd:appinfo source="http://www.ogf.org/dfdl/">
 <dfdl:format byteOrder="{$dfdl:byteOrder}" encoding="UTF-8" escapeSchemeRef="recFixLengthFieldsFmt:RecordEscapeScheme" occursCountKind="fixed" ref="recFixLengthFieldsFmt:RecordFixLengthFieldsFormat" separatorPolicy="suppressed"/>
 </xsd:appinfo>
 </xsd:annotation>
 <xsd:element dfdl:lengthKind="delimited" ibmSchExtn:docRoot="true" name="Purchase">
 <xsd:complexType>
 <xsd:sequence dfdl:separator="%CR;%LF;" dfdl:terminator="">
 <xsd:element dfdl:initiator="10" dfdl:lengthKind="implicit" dfdl:terminator="" name="BatchHeader">
 <xsd:complexType>
 <xsd:sequence dfdl:separatorPolicy="suppressedAtEndLax">
 <xsd:element dfdl:length="3" dfdl:lengthUnits="characters"  name="Hdr_Count" type="xsd:string"/>
 <xsd:element dfdl:length="3" dfdl:lengthUnits="characters"  name="Det_Count" type="xsd:string"/>
 </xsd:sequence>
 </xsd:complexType>
 </xsd:element>
 <xsd:element dfdl:lengthKind="delimited" dfdl:occursCountKind="implicit" maxOccurs="unbounded" name="Orders" type="OrdersType"/>
 <xsd:element dfdl:initiator="50" dfdl:lengthKind="implicit" name="BatchTrailer">
 <xsd:complexType>
 <xsd:sequence dfdl:separatorPolicy="suppressedAtEndLax">
 <xsd:element dfdl:length="3" dfdl:lengthUnits="characters" name="Count" type="xsd:string"/>
 </xsd:sequence>
 </xsd:complexType>
 </xsd:element>
 </xsd:sequence>
 </xsd:complexType>
 </xsd:element>
 <xsd:complexType name="OrdersType">
 <xsd:group ref="OrdersGroup">
 <xsd:annotation>
 <xsd:appinfo source="http://www.ogf.org/dfdl/">
 <dfdl:group/>
 </xsd:appinfo>
 </xsd:annotation>
 </xsd:group>
 </xsd:complexType>
 <xsd:group name="OrdersGroup">
 <xsd:sequence>
 <xsd:element dfdl:initiator="20" dfdl:lengthKind="implicit" dfdl:occursCountKind="implicit" dfdl:terminator="" minOccurs="0" name="Header" type="Header"/>
 <xsd:element dfdl:initiator="30" dfdl:lengthKind="implicit" dfdl:occursCountKind="implicit" dfdl:terminator="" maxOccurs="unbounded" minOccurs="0" name="Detail" type="Detail"/>
 <xsd:element dfdl:initiator="40" dfdl:lengthKind="implicit" dfdl:occursCountKind="implicit" dfdl:terminator="" maxOccurs="unbounded" minOccurs="0" name="Address" type="Address"/>
 </xsd:sequence>
 </xsd:group>
 <xsd:complexType name="Header">
 <xsd:sequence>
 <xsd:element dfdl:length="10" dfdl:lengthUnits="characters"  name="No" type="xsd:string"/>
 <xsd:element dfdl:length="10" dfdl:lengthUnits="characters"  name="Id" type="xsd:string"/>
 </xsd:sequence>
 </xsd:complexType>
 <xsd:complexType name="Detail">
 <xsd:sequence>
 <xsd:element dfdl:length="10" dfdl:lengthUnits="characters" name="name" type="xsd:string"/>
 <xsd:element dfdl:length="10" dfdl:lengthUnits="characters" name="phone" type="xsd:string"/>
 </xsd:sequence>
 </xsd:complexType>
 <xsd:complexType name="Address">
 <xsd:sequence>
 <xsd:element dfdl:length="10" dfdl:lengthUnits="characters" name="street" type="xsd:string"/>
 <xsd:element dfdl:length="10" dfdl:lengthUnits="characters" minOccurs="1" name="city" type="xsd:string"/>
 </xsd:sequence>
 </xsd:complexType>
 </xsd:schema>
 |  ---------------------------------------------------------------------
 Instead getting below output in separate Orders:
 
 
 
   
	| Code: |  
	| <?xml version="1.0" encoding="UTF-8"?> <Purchase xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="mqseries.xsd">
 <BatchHeader>
 <Hdr_Count>001</Hdr_Count>
 <Det_Count>003</Det_Count>
 </BatchHeader>
 <Orders>
 <Detail>
 <name>aaaaaaaaaa</name>
 <phone>1111111111</phone>
 </Detail>
 </Orders>
 <Orders>
 <Address>
 <street>streettttt</street>
 <city>cityyyyyy</city>
 </Address>
 </Orders>
 <Orders>
 <Header>
 <No>22222222222</No>
 <Id>ididididid</Id>
 </Header>
 </Orders>
 <Orders>
 <Detail>
 <name>bbbbbbbbbb</name>
 <phone>2222222222</phone>
 </Detail>
 </Orders>
 <Orders>
 <Detail>
 <name>bbbbbbbbbb</name>
 <phone>3333333333</phone>
 </Detail>
 </Orders>
 <BatchTrailer>
 <Count>005</Count>
 </BatchTrailer>
 </Purchase>
 |  |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | fjb_saper | 
			  
				|  Posted: Sat Nov 15, 2014 3:26 pm    Post subject: |   |  | 
		
		  |  Grand High Poobah
 
 
 Joined: 18 Nov 2003Posts: 20767
 Location: LI,NY
 
 | 
			  
				| Looks like you may be missing a sequence in there somewhere.  _________________
 MQ & Broker admin
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | kimbert | 
			  
				|  Posted: Sun Nov 16, 2014 2:51 pm    Post subject: |   |  | 
		
		  |  Jedi Council
 
 
 Joined: 29 Jul 2003Posts: 5543
 Location: Southampton
 
 | 
			  
				| What does the DFDL Trace say? _________________
 Before you criticize someone, walk a mile in their shoes. That way you're a mile away, and you have their shoes too.
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | adars1 | 
			  
				|  Posted: Wed Nov 19, 2014 9:46 am    Post subject: |   |  | 
		
		  | Apprentice
 
 
 Joined: 13 Jun 2010Posts: 39
 
 
 | 
			  
				| added separator to group also, now i am getting group items within Orders, but trailer record is not processed and getting parse error after Orders group. Separator is missing for 'sequence' group contained within element 'Purchase', xpath: '/Purchase[1]' .  '' 
 updated dfdl schema:
 
 
   
	| Code: |  
	| <?xml version="1.0" encoding="UTF-8"?><xsd:schema xmlns:dfdl="http://www.ogf.org/dfdl/dfdl-1.0/" xmlns:ibmDfdlExtn="http://www.ibm.com/dfdl/extensions" xmlns:ibmSchExtn="http://www.ibm.com/schema/extensions" xmlns:recFixLengthFieldsFmt="http://www.ibm.com/dfdl/RecordFixLengthFieldFormat" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <xsd:import namespace="http://www.ibm.com/dfdl/RecordFixLengthFieldFormat" schemaLocation="IBMdefined/RecordFixLengthFieldFormat.xsd"/>
 <xsd:annotation>
 <xsd:appinfo source="http://www.ogf.org/dfdl/">
 <dfdl:format byteOrder="{$dfdl:byteOrder}" encoding="UTF-8" escapeSchemeRef="recFixLengthFieldsFmt:RecordEscapeScheme" occursCountKind="fixed" ref="recFixLengthFieldsFmt:RecordFixLengthFieldsFormat" separatorPolicy="suppressed"/>
 </xsd:appinfo>
 </xsd:annotation>
 <xsd:element dfdl:lengthKind="delimited" ibmSchExtn:docRoot="true" name="Purchase">
 <xsd:complexType>
 <xsd:sequence dfdl:separator="%CR;%LF;" dfdl:terminator="">
 <xsd:element dfdl:initiator="10" dfdl:lengthKind="implicit" dfdl:terminator="" name="BatchHeader">
 <xsd:complexType>
 <xsd:sequence dfdl:separatorPolicy="suppressedAtEndLax">
 <xsd:element dfdl:length="3" dfdl:lengthUnits="characters" ibmDfdlExtn:sampleValue="aaa" name="Hdr_Count" type="xsd:string"/>
 <xsd:element dfdl:length="3" dfdl:lengthUnits="characters" ibmDfdlExtn:sampleValue="aaa" name="Det_Count" type="xsd:string"/>
 </xsd:sequence>
 </xsd:complexType>
 </xsd:element>
 <xsd:element dfdl:lengthKind="delimited" dfdl:occursCountKind="implicit" maxOccurs="unbounded" name="Orders" type="OrdersType"/>
 <xsd:element dfdl:initiator="50" dfdl:lengthKind="implicit" dfdl:terminator="" name="BatchTrailer">
 <xsd:complexType>
 <xsd:sequence dfdl:separatorPolicy="suppressedAtEndLax">
 <xsd:element dfdl:length="3" dfdl:lengthUnits="characters" ibmDfdlExtn:sampleValue="aaa" name="Count" type="xsd:string"/>
 </xsd:sequence>
 </xsd:complexType>
 </xsd:element>
 </xsd:sequence>
 </xsd:complexType>
 </xsd:element>
 <xsd:complexType name="OrdersType">
 <xsd:group ref="OrdersGroup">
 <xsd:annotation>
 <xsd:appinfo source="http://www.ogf.org/dfdl/">
 <dfdl:group/>
 </xsd:appinfo>
 </xsd:annotation>
 </xsd:group>
 </xsd:complexType>
 <xsd:group name="OrdersGroup">
 <xsd:sequence dfdl:separator="%CR;%LF;">
 <xsd:element dfdl:initiator="20" dfdl:lengthKind="implicit" dfdl:occursCountKind="implicit" dfdl:terminator="" minOccurs="0" name="Header" type="Header"/>
 <xsd:element dfdl:initiator="30" dfdl:lengthKind="implicit" dfdl:occursCountKind="implicit" dfdl:terminator="" maxOccurs="unbounded" minOccurs="0" name="Detail" type="Detail"/>
 <xsd:element dfdl:initiator="40" dfdl:lengthKind="implicit" dfdl:occursCountKind="implicit" dfdl:terminator="" maxOccurs="unbounded" minOccurs="0" name="Address" type="Address"/>
 </xsd:sequence>
 </xsd:group>
 <xsd:complexType name="Header">
 <xsd:sequence>
 <xsd:element dfdl:length="10" dfdl:lengthUnits="characters" ibmDfdlExtn:sampleValue="aaaaaaaaaa" name="No" type="xsd:string"/>
 <xsd:element dfdl:length="10" dfdl:lengthUnits="characters" ibmDfdlExtn:sampleValue="aaaaaaaaaa" name="Id" type="xsd:string"/>
 </xsd:sequence>
 </xsd:complexType>
 <xsd:complexType name="Detail">
 <xsd:sequence>
 <xsd:element dfdl:length="10" dfdl:lengthUnits="characters" ibmDfdlExtn:sampleValue="aaaaaaaaaa" name="name" type="xsd:string"/>
 <xsd:element dfdl:length="10" dfdl:lengthUnits="characters" ibmDfdlExtn:sampleValue="aaaaaaaaaa" name="phone" type="xsd:string"/>
 </xsd:sequence>
 </xsd:complexType>
 <xsd:complexType name="Address">
 <xsd:sequence>
 <xsd:element dfdl:length="10" dfdl:lengthUnits="characters" ibmDfdlExtn:sampleValue="aaaaaaaaaa" name="street" type="xsd:string"/>
 <xsd:element dfdl:length="10" dfdl:lengthUnits="characters" ibmDfdlExtn:sampleValue="aaaaaaaaaa" minOccurs="1" name="city" type="xsd:string"/>
 </xsd:sequence>
 </xsd:complexType>
 
 </xsd:schema>
 |  
 
 ----------------------------------------------------------------------------------
 captured user trace:
 
 2014-11-19 09:17:52.707100     4440   UserTrace   BIP3352I: ''FileInput'' node ''order'' in message flow ''transform'' is propagating record ''1'' obtained from file ''C:\input_files\mqsitransitin\4793e9c8-4901-0000-0080-e56da3c3fcc2-mqseries_input.txt'' at offset ''0'' to terminal ''out''.
 The FileInput node read a record from the file, and will propagate it to the named terminal.
 No action is required.
 2014-11-19 09:17:52.707116     4440   UserTrace   BIP3907I: Message received and propagated to 'out' terminal of input node 'transform.order'.
 2014-11-19 09:17:52.707172     4440   UserTrace   BIP6063I: Node 'transform.order' used parser type ''Properties'' to process the input stream, beginning at offset '0'.
 2014-11-19 09:17:52.708968     4440   UserTrace   BIP6064I: Node 'transform.order' used parser type ''DFDL'' to process the input stream, beginning at offset '0'. The parser type was selected based on value ''DFDL'' from the previous parser.
 2014-11-19 09:17:52.709016     4440   UserTrace   BIP2539I: Node 'transform.Trace': Evaluating expression ''Root'' at ('', '1.3'). This resolved to ''Root''. The result was ''ROW... Root Element Type=16777216 NameSpace='' Name='Root' Value=NULL''.
 2014-11-19 09:17:52.717328     4440   UserTrace   BIP5841I: ''Offset: 0. Parsing will start from root element 'Purchase'.''
 2014-11-19 09:17:52.717672     4440   UserTrace   BIP5841I: ''Offset: 0. Starting to process element 'Purchase'.''
 2014-11-19 09:17:52.717696     4440   UserTrace   BIP5841I: ''Offset: 0. Starting to process element 'BatchHeader'.''
 2014-11-19 09:17:52.717740     4440   UserTrace   BIP5841I: ''Offset: 0. Found initiator '10' for element 'BatchHeader'''
 2014-11-19 09:17:52.717756     4440   UserTrace   BIP5841I: ''Offset: 2. Starting to process element 'Hdr_Count'.''
 2014-11-19 09:17:52.717788     4440   UserTrace   BIP5841I: ''Offset: 2. Found fixed length value: '001' for element 'Hdr_Count'.''
 2014-11-19 09:17:52.717804     4440   UserTrace   BIP5841I: ''Offset: 5. Finished processing element 'Hdr_Count'.''
 2014-11-19 09:17:52.717816     4440   UserTrace   BIP5841I: ''Offset: 5. Starting to process element 'Det_Count'.''
 2014-11-19 09:17:52.717832     4440   UserTrace   BIP5841I: ''Offset: 5. Found fixed length value: '003' for element 'Det_Count'.''
 2014-11-19 09:17:52.717840     4440   UserTrace   BIP5841I: ''Offset: 8. Finished processing element 'Det_Count'.''
 2014-11-19 09:17:52.717852     4440   UserTrace   BIP5841I: ''Offset: 8. Finished processing element 'BatchHeader'.''
 2014-11-19 09:17:52.718176     4440   UserTrace   BIP5841I: ''Offset: 8. Found separator '%CR;%LF;' owned by the 'sequence' group contained within element 'Purchase'.''
 2014-11-19 09:17:52.718484     4440   UserTrace   BIP5841I: ''Offset: 10. Element 'Orders' has occursCountKind='parsed'. The number of occurrences of element 'Orders' will be determined by reading the input data stream, and the maxOccurs property will not control the number of occurrences that are parsed.''
 2014-11-19 09:17:52.718496     4440   UserTrace   BIP5841I: ''Offset: 10. Starting to process element 'Orders'.''
 2014-11-19 09:17:52.718784     4440   UserTrace   BIP5841I: ''Offset: 10. Optional element 'Header' encountered. The DFDL parser will return to this position if the element is not present in the data stream.''
 2014-11-19 09:17:52.718800     4440   UserTrace   BIP5841I: ''Offset: 10. Starting to process element 'Header'.''
 2014-11-19 09:17:52.718820     4440   UserTrace   BIP5841I: ''Offset: 10. Did not find initiator for 'Header'''
 2014-11-19 09:17:52.718828     4440   UserTrace   BIP5841I: ''Offset: 10. Element 'Header' is missing because the initiator was not found in the data stream.''
 2014-11-19 09:17:52.718836     4440   UserTrace   BIP5841I: ''Offset: 10. Element 'Header' is missing because the initiator was not found in the data stream.''
 2014-11-19 09:17:52.718840     4440   UserTrace   BIP5843E: ''Initiator is missing for element '#xscd(/group::OrdersGroup/model::sequence/schemaElement::Header)'.''
 2014-11-19 09:17:52.718856     4440   UserTrace   BIP5841I: ''offset: 10. Parser was unable to resolve data on the current branch and will evaluate the next available branch beginning at offset '10' owned by the 'OrdersGroup' group contained within element 'Orders'.''
 2014-11-19 09:17:52.718868     4440   UserTrace   BIP5841I: ''Offset: 10. Occurrence '1' of element 'Header' was not found in the data. occursCountKind is 'parsed' so no more occurrences of this element will be expected. ''
 2014-11-19 09:17:52.718880     4440   UserTrace   BIP5841I: ''Offset: 10. Optional element 'Detail' encountered. The DFDL parser will return to this position if the element is not present in the data stream.''
 2014-11-19 09:17:52.718892     4440   UserTrace   BIP5841I: ''Offset: 10. Element 'Detail' has occursCountKind='parsed'. The number of occurrences of element 'Detail' will be determined by reading the input data stream, and the maxOccurs property will not control the number of occurrences that are parsed.''
 2014-11-19 09:17:52.718904     4440   UserTrace   BIP5841I: ''Offset: 10. Starting to process element 'Detail'.''
 2014-11-19 09:17:52.718920     4440   UserTrace   BIP5841I: ''Offset: 10. Found initiator '30' for element 'Detail'''
 2014-11-19 09:17:52.718932     4440   UserTrace   BIP5841I: ''Offset: 12. Starting to process element 'name'.''
 2014-11-19 09:17:52.718944     4440   UserTrace   BIP5841I: ''Offset: 12. Found fixed length value: 'aaaaaaaaaa' for element 'name'.''
 2014-11-19 09:17:52.718952     4440   UserTrace   BIP5841I: ''Offset: 22. Finished processing element 'name'.''
 2014-11-19 09:17:52.718964     4440   UserTrace   BIP5841I: ''Offset: 22. Starting to process element 'phone'.''
 2014-11-19 09:17:52.718976     4440   UserTrace   BIP5841I: ''Offset: 22. Found fixed length value: '1111111111' for element 'phone'.''
 2014-11-19 09:17:52.718988     4440   UserTrace   BIP5841I: ''Offset: 32. Finished processing element 'phone'.''
 2014-11-19 09:17:52.718996     4440   UserTrace   BIP5841I: ''Offset: 32. Finished processing element 'Detail'.''
 2014-11-19 09:17:52.719308     4440   UserTrace   BIP5841I: ''Offset: 32. Optional element 'Detail' encountered. The DFDL parser will return to this position if the element is not present in the data stream.''
 2014-11-19 09:17:52.719336     4440   UserTrace   BIP5841I: ''Offset: 32. Found separator '%CR;%LF;' owned by the 'OrdersGroup' group contained within element 'Orders'.''
 2014-11-19 09:17:52.719348     4440   UserTrace   BIP5841I: ''Offset: 34. Starting to process element 'Detail'.''
 2014-11-19 09:17:52.719360     4440   UserTrace   BIP5841I: ''Offset: 34. Did not find initiator for 'Detail'''
 2014-11-19 09:17:52.719368     4440   UserTrace   BIP5841I: ''Offset: 34. Element 'Detail' is missing because the initiator was not found in the data stream.''
 2014-11-19 09:17:52.719376     4440   UserTrace   BIP5841I: ''Offset: 34. Element 'Detail' is missing because the initiator was not found in the data stream.''
 2014-11-19 09:17:52.719448     4440   UserTrace   BIP5843E: ''Initiator is missing for element '#xscd(/group::OrdersGroup/model::sequence/schemaElement::Detail)'.''
 2014-11-19 09:17:52.719464     4440   UserTrace   BIP5841I: ''offset: 34. Parser was unable to resolve data on the current branch and will evaluate the next available branch beginning at offset '34' owned by the 'OrdersGroup' group contained within element 'Orders'.''
 2014-11-19 09:17:52.719476     4440   UserTrace   BIP5841I: ''Offset: 32. Occurrence '2' of element 'Detail' was not found in the data. occursCountKind is 'parsed' so no more occurrences of this element will be expected. ''
 2014-11-19 09:17:52.719488     4440   UserTrace   BIP5841I: ''Offset: 32. Optional element 'Address' encountered. The DFDL parser will return to this position if the element is not present in the data stream.''
 2014-11-19 09:17:52.719500     4440   UserTrace   BIP5841I: ''Offset: 32. Found separator '%CR;%LF;' owned by the 'OrdersGroup' group contained within element 'Orders'.''
 2014-11-19 09:17:52.719512     4440   UserTrace   BIP5841I: ''Offset: 34. Element 'Address' has occursCountKind='parsed'. The number of occurrences of element 'Address' will be determined by reading the input data stream, and the maxOccurs property will not control the number of occurrences that are parsed.''
 2014-11-19 09:17:52.719524     4440   UserTrace   BIP5841I: ''Offset: 34. Starting to process element 'Address'.''
 2014-11-19 09:17:52.719540     4440   UserTrace   BIP5841I: ''Offset: 34. Found initiator '40' for element 'Address'''
 2014-11-19 09:17:52.719556     4440   UserTrace   BIP5841I: ''Offset: 36. Starting to process element 'street'.''
 2014-11-19 09:17:52.719568     4440   UserTrace   BIP5841I: ''Offset: 36. Found fixed length value: 'streettttt' for element 'street'.''
 2014-11-19 09:17:52.719584     4440   UserTrace   BIP5841I: ''Offset: 46. Finished processing element 'street'.''
 2014-11-19 09:17:52.719596     4440   UserTrace   BIP5841I: ''Offset: 46. Starting to process element 'city'.''
 2014-11-19 09:17:52.719604     4440   UserTrace   BIP5841I: ''Offset: 46. Found fixed length value: 'cityyyyyyy' for element 'city'.''
 2014-11-19 09:17:52.719616     4440   UserTrace   BIP5841I: ''Offset: 56. Finished processing element 'city'.''
 2014-11-19 09:17:52.719624     4440   UserTrace   BIP5841I: ''Offset: 56. Finished processing element 'Address'.''
 2014-11-19 09:17:52.719640     4440   UserTrace   BIP5841I: ''Offset: 56. Optional element 'Address' encountered. The DFDL parser will return to this position if the element is not present in the data stream.''
 2014-11-19 09:17:52.719652     4440   UserTrace   BIP5841I: ''Offset: 56. Found separator '%CR;%LF;' owned by the 'OrdersGroup' group contained within element 'Orders'.''
 2014-11-19 09:17:52.719660     4440   UserTrace   BIP5841I: ''Offset: 58. Starting to process element 'Address'.''
 2014-11-19 09:17:52.719672     4440   UserTrace   BIP5841I: ''Offset: 58. Did not find initiator for 'Address'''
 2014-11-19 09:17:52.719680     4440   UserTrace   BIP5841I: ''Offset: 58. Element 'Address' is missing because the initiator was not found in the data stream.''
 2014-11-19 09:17:52.719688     4440   UserTrace   BIP5841I: ''Offset: 58. Element 'Address' is missing because the initiator was not found in the data stream.''
 2014-11-19 09:17:52.719696     4440   UserTrace   BIP5843E: ''Initiator is missing for element '#xscd(/group::OrdersGroup/model::sequence/schemaElement::Address)'.''
 2014-11-19 09:17:52.719704     4440   UserTrace   BIP5841I: ''offset: 58. Parser was unable to resolve data on the current branch and will evaluate the next available branch beginning at offset '58' owned by the 'OrdersGroup' group contained within element 'Orders'.''
 2014-11-19 09:17:52.719716     4440   UserTrace   BIP5841I: ''Offset: 56. Occurrence '2' of element 'Address' was not found in the data. occursCountKind is 'parsed' so no more occurrences of this element will be expected. ''
 2014-11-19 09:17:52.719728     4440   UserTrace   BIP5841I: ''Offset: 56. Finished processing element 'Orders'.''
 2014-11-19 09:17:52.719740     4440   UserTrace   BIP5841I: ''Offset: 56. Optional element 'Orders' encountered. The DFDL parser will return to this position if the element is not present in the data stream.''
 2014-11-19 09:17:52.719748     4440   UserTrace   BIP5841I: ''Offset: 56. Found separator '%CR;%LF;' owned by the 'sequence' group contained within element 'Purchase'.''
 2014-11-19 09:17:52.719760     4440   UserTrace   BIP5841I: ''Offset: 58. Starting to process element 'Orders'.''
 2014-11-19 09:17:52.719772     4440   UserTrace   BIP5841I: ''Offset: 58. Optional element 'Header' encountered. The DFDL parser will return to this position if the element is not present in the data stream.''
 2014-11-19 09:17:52.719780     4440   UserTrace   BIP5841I: ''Offset: 58. Starting to process element 'Header'.''
 2014-11-19 09:17:52.719792     4440   UserTrace   BIP5841I: ''Offset: 58. Found initiator '20' for element 'Header'''
 2014-11-19 09:17:52.719804     4440   UserTrace   BIP5841I: ''Offset: 60. Starting to process element 'No'.''
 2014-11-19 09:17:52.719812     4440   UserTrace   BIP5841I: ''Offset: 60. Found fixed length value: '2222222222' for element 'No'.''
 2014-11-19 09:17:52.719820     4440   UserTrace   BIP5841I: ''Offset: 70. Finished processing element 'No'.''
 2014-11-19 09:17:52.719828     4440   UserTrace   BIP5841I: ''Offset: 70. Starting to process element 'Id'.''
 2014-11-19 09:17:52.719840     4440   UserTrace   BIP5841I: ''Offset: 70. Found fixed length value: 'ididididid' for element 'Id'.''
 2014-11-19 09:17:52.719848     4440   UserTrace   BIP5841I: ''Offset: 80. Finished processing element 'Id'.''
 2014-11-19 09:17:52.719856     4440   UserTrace   BIP5841I: ''Offset: 80. Finished processing element 'Header'.''
 2014-11-19 09:17:52.719868     4440   UserTrace   BIP5841I: ''Offset: 80. Optional element 'Detail' encountered. The DFDL parser will return to this position if the element is not present in the data stream.''
 2014-11-19 09:17:52.719880     4440   UserTrace   BIP5841I: ''Offset: 80. Found separator '%CR;%LF;' owned by the 'OrdersGroup' group contained within element 'Orders'.''
 2014-11-19 09:17:52.719896     4440   UserTrace   BIP5841I: ''Offset: 82. Element 'Detail' has occursCountKind='parsed'. The number of occurrences of element 'Detail' will be determined by reading the input data stream, and the maxOccurs property will not control the number of occurrences that are parsed.''
 2014-11-19 09:17:52.719904     4440   UserTrace   BIP5841I: ''Offset: 82. Starting to process element 'Detail'.''
 2014-11-19 09:17:52.719908     4440   UserTrace   BIP5841I: ''Offset: 82. Found initiator '30' for element 'Detail'''
 2014-11-19 09:17:52.719920     4440   UserTrace   BIP5841I: ''Offset: 84. Starting to process element 'name'.''
 2014-11-19 09:17:52.719932     4440   UserTrace   BIP5841I: ''Offset: 84. Found fixed length value: 'bbbbbbbbbb' for element 'name'.''
 2014-11-19 09:17:52.719940     4440   UserTrace   BIP5841I: ''Offset: 94. Finished processing element 'name'.''
 2014-11-19 09:17:52.719952     4440   UserTrace   BIP5841I: ''Offset: 94. Starting to process element 'phone'.''
 2014-11-19 09:17:52.719960     4440   UserTrace   BIP5841I: ''Offset: 94. Found fixed length value: '2222222222' for element 'phone'.''
 2014-11-19 09:17:52.719972     4440   UserTrace   BIP5841I: ''Offset: 104. Finished processing element 'phone'.''
 2014-11-19 09:17:52.719980     4440   UserTrace   BIP5841I: ''Offset: 104. Finished processing element 'Detail'.''
 2014-11-19 09:17:52.719992     4440   UserTrace   BIP5841I: ''Offset: 104. Optional element 'Detail' encountered. The DFDL parser will return to this position if the element is not present in the data stream.''
 2014-11-19 09:17:52.720000     4440   UserTrace   BIP5841I: ''Offset: 104. Found separator '%CR;%LF;' owned by the 'OrdersGroup' group contained within element 'Orders'.''
 2014-11-19 09:17:52.720016     4440   UserTrace   BIP5841I: ''Offset: 106. Starting to process element 'Detail'.''
 2014-11-19 09:17:52.720024     4440   UserTrace   BIP5841I: ''Offset: 106. Found initiator '30' for element 'Detail'''
 2014-11-19 09:17:52.720036     4440   UserTrace   BIP5841I: ''Offset: 108. Starting to process element 'name'.''
 2014-11-19 09:17:52.720076     4440   UserTrace   BIP5841I: ''Offset: 108. Found fixed length value: 'bbbbbbbbbb' for element 'name'.''
 2014-11-19 09:17:52.720088     4440   UserTrace   BIP5841I: ''Offset: 118. Finished processing element 'name'.''
 2014-11-19 09:17:52.720100     4440   UserTrace   BIP5841I: ''Offset: 118. Starting to process element 'phone'.''
 2014-11-19 09:17:52.720108     4440   UserTrace   BIP5841I: ''Offset: 118. Found fixed length value: '3333333333' for element 'phone'.''
 2014-11-19 09:17:52.720120     4440   UserTrace   BIP5841I: ''Offset: 128. Finished processing element 'phone'.''
 2014-11-19 09:17:52.720128     4440   UserTrace   BIP5841I: ''Offset: 128. Finished processing element 'Detail'.''
 2014-11-19 09:17:52.720144     4440   UserTrace   BIP5841I: ''Offset: 128. Optional element 'Detail' encountered. The DFDL parser will return to this position if the element is not present in the data stream.''
 2014-11-19 09:17:52.720152     4440   UserTrace   BIP5841I: ''Offset: 128. Found separator '%CR;%LF;' owned by the 'OrdersGroup' group contained within element 'Orders'.''
 2014-11-19 09:17:52.720164     4440   UserTrace   BIP5841I: ''Offset: 130. Starting to process element 'Detail'.''
 2014-11-19 09:17:52.720172     4440   UserTrace   BIP5841I: ''Offset: 130. Did not find initiator for 'Detail'''
 2014-11-19 09:17:52.720180     4440   UserTrace   BIP5841I: ''Offset: 130. Element 'Detail' is missing because the initiator was not found in the data stream.''
 2014-11-19 09:17:52.720188     4440   UserTrace   BIP5841I: ''Offset: 130. Element 'Detail' is missing because the initiator was not found in the data stream.''
 2014-11-19 09:17:52.720196     4440   UserTrace   BIP5843E: ''Initiator is missing for element '#xscd(/group::OrdersGroup/model::sequence/schemaElement::Detail)'.''
 2014-11-19 09:17:52.720204     4440   UserTrace   BIP5841I: ''offset: 130. Parser was unable to resolve data on the current branch and will evaluate the next available branch beginning at offset '130' owned by the 'OrdersGroup' group contained within element 'Orders'.''
 2014-11-19 09:17:52.720220     4440   UserTrace   BIP5841I: ''Offset: 128. Occurrence '3' of element 'Detail' was not found in the data. occursCountKind is 'parsed' so no more occurrences of this element will be expected. ''
 2014-11-19 09:17:52.720228     4440   UserTrace   BIP5841I: ''Offset: 128. Optional element 'Address' encountered. The DFDL parser will return to this position if the element is not present in the data stream.''
 2014-11-19 09:17:52.720236     4440   UserTrace   BIP5841I: ''Offset: 128. Found separator '%CR;%LF;' owned by the 'OrdersGroup' group contained within element 'Orders'.''
 2014-11-19 09:17:52.720248     4440   UserTrace   BIP5841I: ''Offset: 130. Element 'Address' has occursCountKind='parsed'. The number of occurrences of element 'Address' will be determined by reading the input data stream, and the maxOccurs property will not control the number of occurrences that are parsed.''
 2014-11-19 09:17:52.720260     4440   UserTrace   BIP5841I: ''Offset: 130. Starting to process element 'Address'.''
 2014-11-19 09:17:52.720268     4440   UserTrace   BIP5841I: ''Offset: 130. Did not find initiator for 'Address'''
 2014-11-19 09:17:52.720276     4440   UserTrace   BIP5841I: ''Offset: 130. Element 'Address' is missing because the initiator was not found in the data stream.''
 2014-11-19 09:17:52.720284     4440   UserTrace   BIP5841I: ''Offset: 130. Element 'Address' is missing because the initiator was not found in the data stream.''
 2014-11-19 09:17:52.720292     4440   UserTrace   BIP5843E: ''Initiator is missing for element '#xscd(/group::OrdersGroup/model::sequence/schemaElement::Address)'.''
 2014-11-19 09:17:52.720320     4440   UserTrace   BIP5841I: ''offset: 130. Parser was unable to resolve data on the current branch and will evaluate the next available branch beginning at offset '130' owned by the 'OrdersGroup' group contained within element 'Orders'.''
 2014-11-19 09:17:52.720332     4440   UserTrace   BIP5841I: ''Offset: 128. Occurrence '1' of element 'Address' was not found in the data. occursCountKind is 'parsed' so no more occurrences of this element will be expected. ''
 2014-11-19 09:17:52.720344     4440   UserTrace   BIP5841I: ''Offset: 128. Finished processing element 'Orders'.''
 2014-11-19 09:17:52.720364     4440   UserTrace   BIP5841I: ''Offset: 128. Optional element 'Orders' encountered. The DFDL parser will return to this position if the element is not present in the data stream.''
 2014-11-19 09:17:52.720376     4440   UserTrace   BIP5841I: ''Offset: 128. Found separator '%CR;%LF;' owned by the 'sequence' group contained within element 'Purchase'.''
 2014-11-19 09:17:52.720388     4440   UserTrace   BIP5841I: ''Offset: 130. Starting to process element 'Orders'.''
 2014-11-19 09:17:52.720396     4440   UserTrace   BIP5841I: ''Offset: 130. Optional element 'Header' encountered. The DFDL parser will return to this position if the element is not present in the data stream.''
 2014-11-19 09:17:52.720404     4440   UserTrace   BIP5841I: ''Offset: 130. Starting to process element 'Header'.''
 2014-11-19 09:17:52.720416     4440   UserTrace   BIP5841I: ''Offset: 130. Did not find initiator for 'Header'''
 2014-11-19 09:17:52.720424     4440   UserTrace   BIP5841I: ''Offset: 130. Element 'Header' is missing because the initiator was not found in the data stream.''
 2014-11-19 09:17:52.720432     4440   UserTrace   BIP5841I: ''Offset: 130. Element 'Header' is missing because the initiator was not found in the data stream.''
 2014-11-19 09:17:52.720440     4440   UserTrace   BIP5843E: ''Initiator is missing for element '#xscd(/group::OrdersGroup/model::sequence/schemaElement::Header)'.''
 2014-11-19 09:17:52.720448     4440   UserTrace   BIP5841I: ''offset: 130. Parser was unable to resolve data on the current branch and will evaluate the next available branch beginning at offset '130' owned by the 'OrdersGroup' group contained within element 'Orders'.''
 2014-11-19 09:17:52.720460     4440   UserTrace   BIP5841I: ''Offset: 130. Occurrence '1' of element 'Header' was not found in the data. occursCountKind is 'parsed' so no more occurrences of this element will be expected. ''
 2014-11-19 09:17:52.720472     4440   UserTrace   BIP5841I: ''Offset: 130. Optional element 'Detail' encountered. The DFDL parser will return to this position if the element is not present in the data stream.''
 2014-11-19 09:17:52.720480     4440   UserTrace   BIP5841I: ''Offset: 130. Element 'Detail' has occursCountKind='parsed'. The number of occurrences of element 'Detail' will be determined by reading the input data stream, and the maxOccurs property will not control the number of occurrences that are parsed.''
 2014-11-19 09:17:52.720488     4440   UserTrace   BIP5841I: ''Offset: 130. Starting to process element 'Detail'.''
 2014-11-19 09:17:52.720500     4440   UserTrace   BIP5841I: ''Offset: 130. Did not find initiator for 'Detail'''
 2014-11-19 09:17:52.720508     4440   UserTrace   BIP5841I: ''Offset: 130. Element 'Detail' is missing because the initiator was not found in the data stream.''
 2014-11-19 09:17:52.720516     4440   UserTrace   BIP5841I: ''Offset: 130. Element 'Detail' is missing because the initiator was not found in the data stream.''
 2014-11-19 09:17:52.720520     4440   UserTrace   BIP5843E: ''Initiator is missing for element '#xscd(/group::OrdersGroup/model::sequence/schemaElement::Detail)'.''
 2014-11-19 09:17:52.720532     4440   UserTrace   BIP5841I: ''offset: 130. Parser was unable to resolve data on the current branch and will evaluate the next available branch beginning at offset '130' owned by the 'OrdersGroup' group contained within element 'Orders'.''
 2014-11-19 09:17:52.720540     4440   UserTrace   BIP5841I: ''Offset: 130. Occurrence '1' of element 'Detail' was not found in the data. occursCountKind is 'parsed' so no more occurrences of this element will be expected. ''
 2014-11-19 09:17:52.720552     4440   UserTrace   BIP5841I: ''Offset: 130. Optional element 'Address' encountered. The DFDL parser will return to this position if the element is not present in the data stream.''
 2014-11-19 09:17:52.720560     4440   UserTrace   BIP5841I: ''Offset: 130. Element 'Address' has occursCountKind='parsed'. The number of occurrences of element 'Address' will be determined by reading the input data stream, and the maxOccurs property will not control the number of occurrences that are parsed.''
 2014-11-19 09:17:52.720568     4440   UserTrace   BIP5841I: ''Offset: 130. Starting to process element 'Address'.''
 2014-11-19 09:17:52.720580     4440   UserTrace   BIP5841I: ''Offset: 130. Did not find initiator for 'Address'''
 2014-11-19 09:17:52.720588     4440   UserTrace   BIP5841I: ''Offset: 130. Element 'Address' is missing because the initiator was not found in the data stream.''
 2014-11-19 09:17:52.720596     4440   UserTrace   BIP5841I: ''Offset: 130. Element 'Address' is missing because the initiator was not found in the data stream.''
 2014-11-19 09:17:52.720600     4440   UserTrace   BIP5843E: ''Initiator is missing for element '#xscd(/group::OrdersGroup/model::sequence/schemaElement::Address)'.''
 2014-11-19 09:17:52.720612     4440   UserTrace   BIP5841I: ''offset: 130. Parser was unable to resolve data on the current branch and will evaluate the next available branch beginning at offset '130' owned by the 'OrdersGroup' group contained within element 'Orders'.''
 2014-11-19 09:17:52.720620     4440   UserTrace   BIP5841I: ''Offset: 130. Occurrence '1' of element 'Address' was not found in the data. occursCountKind is 'parsed' so no more occurrences of this element will be expected. ''
 2014-11-19 09:17:52.720632     4440   UserTrace   BIP5841I: ''Offset: 130. Finished processing element 'Orders'.''
 2014-11-19 09:17:52.720644     4440   UserTrace   BIP5841I: ''Offset: 130. Element 'Orders' is optional and missing. The element will not be included in the infoset.''
 2014-11-19 09:17:52.720652     4440   UserTrace   BIP5841I: ''Offset: 130. Optional element 'Orders' encountered. The DFDL parser will return to this position if the element is not present in the data stream.''
 2014-11-19 09:17:52.720940     4440   UserTrace   BIP5843E: ''Separator is missing for 'sequence' group contained within element 'Purchase', xpath: '/Purchase[1]' .  ''
 2014-11-19 09:17:52.720968     4440   UserTrace   BIP5841I: ''offset: 130. Parser was unable to resolve data on the current branch and will evaluate the next available branch beginning at offset '130' owned by the 'sequence' group contained within element 'Purchase'.''
 2014-11-19 09:17:52.720976     4440   UserTrace   BIP5841I: ''Offset: 130. Occurrence '4' of element 'Orders' was not found in the data. occursCountKind is 'parsed' so no more occurrences of this element will be expected. ''
 2014-11-19 09:17:52.720988     4440   UserTrace   BIP5843E: ''Separator is missing for 'sequence' group contained within element 'Purchase', xpath: '/Purchase[1]' .  ''
 2014-11-19 09:17:52.721004     4440   UserTrace   BIP5807E: The DFDL parser signalled that a processing error occurred.
 The message from the DFDL parser is:
 'CTDP3058E: Separator is missing for 'sequence' group contained within element 'Purchase', xpath: '/Purchase[1]' .  '
 Processing errors occurred during the parsing a DFDL message.
 Review and resolve the problems indicated in the message from the DFDL parser.
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | adars1 | 
			  
				|  Posted: Tue Jan 06, 2015 12:37 pm    Post subject: |   |  | 
		
		  | Apprentice
 
 
 Joined: 13 Jun 2010Posts: 39
 
 
 | 
			  
				| I checked dfdl schema but did not see any error in schema. not sure where is the issue in schema in which it is not grouping elements if optional element is not present. I appreciate anyone's help please.
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | kimbert | 
			  
				|  Posted: Tue Jan 06, 2015 1:26 pm    Post subject: |   |  | 
		
		  |  Jedi Council
 
 
 Joined: 29 Jul 2003Posts: 5543
 Location: Southampton
 
 | 
			  
				| Which version of WMB / IIB are you using? Please quote fix pack level as well as version. _________________
 Before you criticize someone, walk a mile in their shoes. That way you're a mile away, and you have their shoes too.
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | adars1 | 
			  
				|  Posted: Tue Jan 06, 2015 10:42 pm    Post subject: |   |  | 
		
		  | Apprentice
 
 
 Joined: 13 Jun 2010Posts: 39
 
 
 | 
			  
				| WMB Toolkit Version: 8.0.0.1 Build id: 8.0.0.1-20120808-1331
 
 WMB Broker 8.0.0.1
 
 No fix packs
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | kimbert | 
			  
				|  Posted: Wed Jan 07, 2015 1:17 am    Post subject: |   |  | 
		
		  |  Jedi Council
 
 
 Joined: 29 Jul 2003Posts: 5543
 Location: Southampton
 
 | 
			  
				| So you are on WMB v8, fix pack 1. You have no iFixes installed. 
 I strongly recommend that you install v8.0.0.5 and then re-test. There have been quite a few fixes for DFDL since 8.0.0.1.
 _________________
 Before you criticize someone, walk a mile in their shoes. That way you're a mile away, and you have their shoes too.
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | ruimadaleno | 
			  
				|  Posted: Wed Jan 07, 2015 1:44 am    Post subject: |   |  | 
		
		  | Master
 
 
 Joined: 08 May 2014Posts: 274
 
 
 | 
			  
				| Hi Kimbert, 
 is there v8.0.0.5 available ?  i've made a quick search in fix central and found only v8.0.0.4
    _________________
 Best regards
 
 Rui Madaleno
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | kimbert | 
			  
				|  Posted: Wed Jan 07, 2015 1:54 am    Post subject: |   |  | 
		
		  |  Jedi Council
 
 
 Joined: 29 Jul 2003Posts: 5543
 Location: Southampton
 
 | 
			  
				| Apologies - you are quite correct. I was referring to http://www-01.ibm.com/support/docview.wss?uid=swg27035709
 ...and I did not check the 'Status' field.
 _________________
 Before you criticize someone, walk a mile in their shoes. That way you're a mile away, and you have their shoes too.
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | adars1 | 
			  
				|  Posted: Wed Jan 07, 2015 10:38 am    Post subject: |   |  | 
		
		  | Apprentice
 
 
 Joined: 13 Jun 2010Posts: 39
 
 
 | 
			  
				| Hi Kimbert, 
 I have to tell the reason to my manager why we need fix pack. Can you please confirm the schema I am using correct and it will work in fix pack 8.0.0.4.
 
 Thanks
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | smdavies99 | 
			  
				|  Posted: Wed Jan 07, 2015 11:04 pm    Post subject: |   |  | 
		
		  |  Jedi Council
 
 
 Joined: 10 Feb 2003Posts: 6076
 Location: Somewhere over the Rainbow this side of Never-never land.
 
 | 
			  
				| If you had a POC environment you could apply the FixPAck and prove it works (or not) Then going to your manager is easy.
 _________________
 WMQ User since 1999
 MQSI/WBI/WMB/'Thingy' User since 2002
 Linux user since 1995
 
 Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | kimbert | 
			  
				|  Posted: Thu Jan 08, 2015 4:52 am    Post subject: |   |  | 
		
		  |  Jedi Council
 
 
 Joined: 29 Jul 2003Posts: 5543
 Location: Southampton
 
 | 
			  
				| I would have to actually try out your scenario before doing that. Unfortunately, I don't have time to do that. You could download the Developer Edition of Integration Bus. If your scenario parses correctly in the IIBv9 toolkit then it will probably be OK in WMB v8.0.0.4 too.
 _________________
 Before you criticize someone, walk a mile in their shoes. That way you're a mile away, and you have their shoes too.
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | adars1 | 
			  
				|  Posted: Thu Jan 08, 2015 6:59 am    Post subject: |   |  | 
		
		  | Apprentice
 
 
 Joined: 13 Jun 2010Posts: 39
 
 
 | 
			  
				| I did download IIB 9 and did POC using same schema and its working. Thanks Kimbert for your help and time.
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  |  |