ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum IndexWebSphere Message Broker SupportDFDL parse error for record oriented fixed lenghth

Post new topicReply to topic
DFDL parse error for record oriented fixed lenghth View previous topic :: View next topic
Author Message
anilmekala
PostPosted: Tue Jun 18, 2019 9:27 pm Post subject: DFDL parse error for record oriented fixed lenghth Reply with quote

Acolyte

Joined: 19 Oct 2012
Posts: 56

Hi Experts,

As part of my requirement i have created DFDL record oriented fixed length

START 20190614 0815
111 aaaaaaaaaaaaaaaaa ddddddddddttattttttt
1211111 abaaaaaaaaaaaaaaaaaaaaaaadddddd ttbttttttt
131 acaaaaaaaaaaaaaaaaaaaaaaaddddddddddttcttttttt
1411111111adaaaaaaaaaaaaaaaaaaaaaaaddddddddddttdttttttt
END 20190614 0815
[/img][<?xml version="1.0" encoding="UTF-8"?><xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:dfdl="http://www.ogf.org/dfdl/dfdl-1.0/" xmlns:fn="http://www.w3.org/2005/xpath-functions" xmlns:ibmDfdlExtn="http://www.ibm.com/dfdl/extensions" xmlns:ibmSchExtn="http://www.ibm.com/schema/extensions" xmlns:recFixLengthFieldsFmt="http://www.ibm.com/dfdl/RecordFixLengthFieldFormat">

<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 encoding="{$dfdl:encoding}" escapeSchemeRef="recFixLengthFieldsFmt:RecordEscapeScheme" occursCountKind="fixed" ref="recFixLengthFieldsFmt:RecordFixLengthFieldsFormat"/>
</xsd:appinfo>
</xsd:annotation>

<xsd:element dfdl:lengthKind="delimited" ibmSchExtn:docRoot="true" name="dfdltest">
<xsd:complexType>
<xsd:sequence dfdl:separator="%CR;%LF;%WSP;" dfdl:separatorSuppressionPolicy="anyEmpty">
<xsd:element dfdl:lengthKind="delimited" name="header">
<xsd:complexType>
<xsd:sequence>
<xsd:element dfdl:length="5" ibmDfdlExtn:sampleValue="head_valu1" name="head_elem1" type="xsd:string"/>
<xsd:element dfdl:length="1" ibmDfdlExtn:sampleValue="head_valu2" name="head_elem2" type="xsd:string"/>
<xsd:element dfdl:length="8" ibmDfdlExtn:sampleValue="head_valu3" name="head_elem3" type="xsd:string"/>
<xsd:element dfdl:length="1" ibmDfdlExtn:sampleValue="head_value4" name="head_elem4" type="xsd:string"/>
<xsd:element dfdl:length="4" ibmDfdlExtn:sampleValue="head_value5" name="head_elem5" type="xsd:string"/>
<xsd:element dfdl:length="36" dfdl:terminator="%CR;%LF;" ibmDfdlExtn:sampleValue="head_value6" name="head_elem6" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element dfdl:lengthKind="delimited" dfdl:occursCountKind="implicit" maxOccurs="unbounded" name="body">
<xsd:complexType>
<xsd:sequence >
<xsd:element dfdl:length="10" ibmDfdlExtn:sampleValue="body_valu1" name="body_elem1" type="xsd:string"/>
<xsd:element dfdl:length="25" ibmDfdlExtn:sampleValue="body_valu2" name="body_elem2" type="xsd:string"/>
<xsd:element dfdl:length="10" ibmDfdlExtn:sampleValue="body_valu3" name="body_elem3" type="xsd:string"/>
<xsd:element dfdl:length="10" ibmDfdlExtn:sampleValue="body_value4" name="body_elem4" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element dfdl:lengthKind="delimited" name="trailer">
<xsd:complexType>
<xsd:sequence>
<xsd:element dfdl:length="3" ibmDfdlExtn:sampleValue="trailer_valu1" name="trailer_elem1" type="xsd:string"/>
<xsd:element dfdl:length="1" ibmDfdlExtn:sampleValue="trailer_valu2" name="trailer_elem2" type="xsd:string"/>
<xsd:element dfdl:length="8" ibmDfdlExtn:sampleValue="trailer_valu3" name="trailer_elem3" type="xsd:string"/>
<xsd:element dfdl:length="1" ibmDfdlExtn:sampleValue="trailer_value4" name="trailer_elem4" type="xsd:string"/>
<xsd:element dfdl:length="4" ibmDfdlExtn:sampleValue="trailer_value5" name="trailer_elem5" type="xsd:string"/>
<xsd:element dfdl:length="38" ibmDfdlExtn:sampleValue="trailer_value6" name="trailer_elem6" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>


</xsd:schema>]



I have tried to parse the schema am getting below parse error[

********************* DFDL Parser Setup Starting *********************
Schema = /sample_dfdl_test/dfdltest.xsd
**********************************************************************



********************* DFDL Parser Starting *********************
Data = C:\Users\Anil\Desktop\dfdltest.txt
Message = dfdltest (/sample_dfdl_test/dfdltest.xsd)
****************************************************************

Jun 19, 2019, 10:58:09 AM info: Offset: 0. Parsing will start from root element 'dfdltest'.
[dfdl = /sample_dfdl_test/dfdltest.xsd, scd = #xscd(/schemaElement::dfdltest), 67]

Jun 19, 2019, 10:58:09 AM info: The default value of '%LF;' was assigned to variable 'outputNewLine' in namespace 'http://www.ogf.org/dfdl/dfdl-1.0/'.
[dfdl = /sample_dfdl_test/dfdltest.xsd, scd = , 133]

Jun 19, 2019, 10:58:09 AM info: Offset: 0. Starting to process element 'dfdltest'.
[dfdl = /sample_dfdl_test/dfdltest.xsd, scd = #xscd(/schemaElement::dfdltest), 58]

Jun 19, 2019, 10:58:09 AM info: Offset: 0. Starting to process element 'header'.
[dfdl = /sample_dfdl_test/dfdltest.xsd, scd = #xscd(/schemaElement::dfdltest/type::0/model::sequence/schemaElement::header), 56]

Jun 19, 2019, 10:58:09 AM info: Offset: 0. Starting to process element 'head_elem1'.
[dfdl = /sample_dfdl_test/dfdltest.xsd, scd = #xscd(/schemaElement::dfdltest/type::0/model::sequence/schemaElement::header/type::0/model::sequence/schemaElement::head_elem1), 60]

Jun 19, 2019, 10:58:09 AM info: Offset: 0. Found specified length value 'START' for element 'head_elem1'. The length was 5 bytes.
[dfdl = /sample_dfdl_test/dfdltest.xsd, scd = #xscd(/schemaElement::dfdltest/type::0/model::sequence/schemaElement::header/type::0/model::sequence/schemaElement::head_elem1), 106]

Jun 19, 2019, 10:58:09 AM info: Offset: 5. Finished processing element 'head_elem1'.
[dfdl = /sample_dfdl_test/dfdltest.xsd, scd = #xscd(/schemaElement::dfdltest/type::0/model::sequence/schemaElement::header/type::0/model::sequence/schemaElement::head_elem1), 60]

Jun 19, 2019, 10:58:09 AM info: Offset: 5. Starting to process element 'head_elem2'.
[dfdl = /sample_dfdl_test/dfdltest.xsd, scd = #xscd(/schemaElement::dfdltest/type::0/model::sequence/schemaElement::header/type::0/model::sequence/schemaElement::head_elem2), 60]

Jun 19, 2019, 10:58:09 AM info: Offset: 5. Found specified length value '' for element 'head_elem2'. The length was 1 bytes.
[dfdl = /sample_dfdl_test/dfdltest.xsd, scd = #xscd(/schemaElement::dfdltest/type::0/model::sequence/schemaElement::header/type::0/model::sequence/schemaElement::head_elem2), 101]

Jun 19, 2019, 10:58:09 AM info: Offset: 6. Finished processing element 'head_elem2'.
[dfdl = /sample_dfdl_test/dfdltest.xsd, scd = #xscd(/schemaElement::dfdltest/type::0/model::sequence/schemaElement::header/type::0/model::sequence/schemaElement::head_elem2), 60]

Jun 19, 2019, 10:58:09 AM info: Offset: 6. Starting to process element 'head_elem3'.
[dfdl = /sample_dfdl_test/dfdltest.xsd, scd = #xscd(/schemaElement::dfdltest/type::0/model::sequence/schemaElement::header/type::0/model::sequence/schemaElement::head_elem3), 60]

Jun 19, 2019, 10:58:09 AM info: Offset: 6. Found specified length value '20190614' for element 'head_elem3'. The length was 8 bytes.
[dfdl = /sample_dfdl_test/dfdltest.xsd, scd = #xscd(/schemaElement::dfdltest/type::0/model::sequence/schemaElement::header/type::0/model::sequence/schemaElement::head_elem3), 109]

Jun 19, 2019, 10:58:09 AM info: Offset: 14. Finished processing element 'head_elem3'.
[dfdl = /sample_dfdl_test/dfdltest.xsd, scd = #xscd(/schemaElement::dfdltest/type::0/model::sequence/schemaElement::header/type::0/model::sequence/schemaElement::head_elem3), 61]

Jun 19, 2019, 10:58:09 AM info: Offset: 14. Starting to process element 'head_elem4'.
[dfdl = /sample_dfdl_test/dfdltest.xsd, scd = #xscd(/schemaElement::dfdltest/type::0/model::sequence/schemaElement::header/type::0/model::sequence/schemaElement::head_elem4), 61]

Jun 19, 2019, 10:58:09 AM info: Offset: 14. Found specified length value '' for element 'head_elem4'. The length was 1 bytes.
[dfdl = /sample_dfdl_test/dfdltest.xsd, scd = #xscd(/schemaElement::dfdltest/type::0/model::sequence/schemaElement::header/type::0/model::sequence/schemaElement::head_elem4), 102]

Jun 19, 2019, 10:58:09 AM info: Offset: 15. Finished processing element 'head_elem4'.
[dfdl = /sample_dfdl_test/dfdltest.xsd, scd = #xscd(/schemaElement::dfdltest/type::0/model::sequence/schemaElement::header/type::0/model::sequence/schemaElement::head_elem4), 61]

Jun 19, 2019, 10:58:09 AM info: Offset: 15. Starting to process element 'head_elem5'.
[dfdl = /sample_dfdl_test/dfdltest.xsd, scd = #xscd(/schemaElement::dfdltest/type::0/model::sequence/schemaElement::header/type::0/model::sequence/schemaElement::head_elem5), 61]

Jun 19, 2019, 10:58:09 AM info: Offset: 15. Found specified length value '0815' for element 'head_elem5'. The length was 4 bytes.
[dfdl = /sample_dfdl_test/dfdltest.xsd, scd = #xscd(/schemaElement::dfdltest/type::0/model::sequence/schemaElement::header/type::0/model::sequence/schemaElement::head_elem5), 106]

Jun 19, 2019, 10:58:09 AM info: Offset: 19. Finished processing element 'head_elem5'.
[dfdl = /sample_dfdl_test/dfdltest.xsd, scd = #xscd(/schemaElement::dfdltest/type::0/model::sequence/schemaElement::header/type::0/model::sequence/schemaElement::head_elem5), 61]

Jun 19, 2019, 10:58:09 AM info: Offset: 19. Starting to process element 'head_elem6'.
[dfdl = /sample_dfdl_test/dfdltest.xsd, scd = #xscd(/schemaElement::dfdltest/type::0/model::sequence/schemaElement::header/type::0/model::sequence/schemaElement::head_elem6), 61]

Jun 19, 2019, 10:58:09 AM info: Offset: 19. Found specified length value '' for element 'head_elem6'. The length was 36 bytes.
[dfdl = /sample_dfdl_test/dfdltest.xsd, scd = #xscd(/schemaElement::dfdltest/type::0/model::sequence/schemaElement::header/type::0/model::sequence/schemaElement::head_elem6), 103]

Jun 19, 2019, 10:58:09 AM info: Offset: 55. Found terminator '%CR;%LF;' for 'head_elem6'.
[dfdl = /sample_dfdl_test/dfdltest.xsd, scd = #xscd(/schemaElement::dfdltest/type::0/model::sequence/schemaElement::header/type::0/model::sequence/schemaElement::head_elem6), 65]

Jun 19, 2019, 10:58:09 AM info: Offset: 57. Finished processing element 'head_elem6'.
[dfdl = /sample_dfdl_test/dfdltest.xsd, scd = #xscd(/schemaElement::dfdltest/type::0/model::sequence/schemaElement::header/type::0/model::sequence/schemaElement::head_elem6), 61]

Jun 19, 2019, 10:58:09 AM info: Offset: 57. Finished processing element 'header'.
[dfdl = /sample_dfdl_test/dfdltest.xsd, scd = #xscd(/schemaElement::dfdltest/type::0/model::sequence/schemaElement::header), 57]

Jun 19, 2019, 10:58:09 AM info: Offset: 57. Up to 'unbounded' occurrences of element 'body' will be expected because occursCountKind='implicit' and maxOccurs='unbounded'.
[dfdl = /sample_dfdl_test/dfdltest.xsd, scd = #xscd(/schemaElement::dfdltest/type::0/model::sequence/schemaElement::body), 146]

Jun 19, 2019, 10:58:09 AM error: CTDP3058E: Separator '%CR;%LF;%WSP;' not found at offset '57' for sequence within element '/dfdltest[1]'.

Jun 19, 2019, 10:58:09 AM fatal: CTDP3058E: Separator '%CR;%LF;%WSP;' not found at offset '57' for sequence within element '/dfdltest[1]'.

]

Please help me to resolve the same.

Regards,
Anil
Back to top
View user's profile Send private message
timber
PostPosted: Wed Jun 19, 2019 12:06 am Post subject: Reply with quote

Grand Master

Joined: 25 Aug 2015
Posts: 1040

Polite request: please use [code] tags when posting schemas and example data. It makes them much easier to read.

Is the DFDL parser complaining about the final line terminator? If so, you should edit the format block for the DFDL schema and set the property 'finalTerminatorCanBeMissing' to 'yes'.
Back to top
View user's profile Send private message
timber
PostPosted: Wed Jun 19, 2019 12:09 am Post subject: Reply with quote

Grand Master

Joined: 25 Aug 2015
Posts: 1040

OK - that was probably a bad guess.

Maybe it's a problem with your definition for the terminator. Please post your input message (in [code] tags).
Back to top
View user's profile Send private message
anilmekala
PostPosted: Wed Jun 19, 2019 6:38 pm Post subject: Reply with quote

Acolyte

Joined: 19 Oct 2012
Posts: 56

Hi ,

Thanks for your reply.

Sample message :

[START 20190614 0815
111 aaaaaaaaaaaaaaaaa ddddddddddttattttttt
1211111 abaaaaaaaaaaaaaaaaaaaaaaadddddd ttbttttttt
131 acaaaaaaaaaaaaaaaaaaaaaaaddddddddddttcttttttt
1411111111adaaaaaaaaaaaaaaaaaaaaaaaddddddddddttdttttttt
END 20190614 0815
]
Header length 56 ,body each record 56 length trailer length also 56 . each record ending with CRLF.


SCHEMA
Code:
<?xml version="1.0" encoding="UTF-8"?><xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:dfdl="http://www.ogf.org/dfdl/dfdl-1.0/" xmlns:fn="http://www.w3.org/2005/xpath-functions" xmlns:ibmDfdlExtn="http://www.ibm.com/dfdl/extensions" xmlns:ibmSchExtn="http://www.ibm.com/schema/extensions" xmlns:recFixLengthFieldsFmt="http://www.ibm.com/dfdl/RecordFixLengthFieldFormat">

    <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 encoding="{$dfdl:encoding}" escapeSchemeRef="recFixLengthFieldsFmt:RecordEscapeScheme" occursCountKind="fixed" ref="recFixLengthFieldsFmt:RecordFixLengthFieldsFormat"/>
      </xsd:appinfo>
   </xsd:annotation>

   <xsd:element dfdl:lengthKind="delimited" ibmSchExtn:docRoot="true" name="dfdltest">
      <xsd:complexType>
         <xsd:sequence dfdl:separator="%CR;%LF;%WSP;" dfdl:separatorSuppressionPolicy="anyEmpty">
            <xsd:element dfdl:lengthKind="delimited" name="header">
               <xsd:complexType>
                  <xsd:sequence>
                     <xsd:element dfdl:length="5" ibmDfdlExtn:sampleValue="head_valu1" name="head_elem1" type="xsd:string"/>
                     <xsd:element dfdl:length="1" ibmDfdlExtn:sampleValue="head_valu2" name="head_elem2" type="xsd:string"/>
                     <xsd:element dfdl:length="8" ibmDfdlExtn:sampleValue="head_valu3" name="head_elem3" type="xsd:string"/>
                            <xsd:element dfdl:length="1" ibmDfdlExtn:sampleValue="head_value4" name="head_elem4" type="xsd:string"/>
                            <xsd:element dfdl:length="4" ibmDfdlExtn:sampleValue="head_value5" name="head_elem5" type="xsd:string"/>
                            <xsd:element dfdl:length="36" dfdl:terminator="%CR;%LF;" ibmDfdlExtn:sampleValue="head_value6" name="head_elem6" type="xsd:string"/>
                        </xsd:sequence>
               </xsd:complexType>
            </xsd:element>
            <xsd:element dfdl:lengthKind="delimited" dfdl:occursCountKind="implicit" maxOccurs="unbounded" name="body">
               <xsd:complexType>
                  <xsd:sequence >
                     <xsd:element dfdl:length="10" ibmDfdlExtn:sampleValue="body_valu1" name="body_elem1" type="xsd:string"/>
                     <xsd:element dfdl:length="25" ibmDfdlExtn:sampleValue="body_valu2" name="body_elem2" type="xsd:string"/>
                     <xsd:element dfdl:length="10" ibmDfdlExtn:sampleValue="body_valu3" name="body_elem3" type="xsd:string"/>
                            <xsd:element dfdl:length="10" ibmDfdlExtn:sampleValue="body_value4" name="body_elem4" type="xsd:string"/>
                        </xsd:sequence>
               </xsd:complexType>
            </xsd:element>
            <xsd:element dfdl:lengthKind="delimited" name="trailer">
               <xsd:complexType>
                  <xsd:sequence>
                     <xsd:element dfdl:length="3" ibmDfdlExtn:sampleValue="trailer_valu1" name="trailer_elem1" type="xsd:string"/>
                     <xsd:element dfdl:length="1" ibmDfdlExtn:sampleValue="trailer_valu2" name="trailer_elem2" type="xsd:string"/>
                     <xsd:element dfdl:length="8" ibmDfdlExtn:sampleValue="trailer_valu3" name="trailer_elem3" type="xsd:string"/>
                            <xsd:element dfdl:length="1" ibmDfdlExtn:sampleValue="trailer_value4" name="trailer_elem4" type="xsd:string"/>
                            <xsd:element dfdl:length="4" ibmDfdlExtn:sampleValue="trailer_value5" name="trailer_elem5" type="xsd:string"/>
                            <xsd:element dfdl:length="38" ibmDfdlExtn:sampleValue="trailer_value6" name="trailer_elem6" type="xsd:string"/>
                        </xsd:sequence>
               </xsd:complexType>
            </xsd:element>
         </xsd:sequence>
      </xsd:complexType>
   </xsd:element>


</xsd:schema>

Code:

Parse exception details :[

********************* DFDL Parser Setup Starting *********************
Schema = /sample_dfdl_test/dfdltest.xsd
**********************************************************************



********************* DFDL Parser Starting *********************
Data = C:\Users\Anil\Desktop\dfdltest.txt
Message = dfdltest (/sample_dfdl_test/dfdltest.xsd)
****************************************************************

Jun 20, 2019, 8:00:40 AM   info: Offset: 0. Parsing will start from root element 'dfdltest'.
                           [dfdl = /sample_dfdl_test/dfdltest.xsd, scd = #xscd(/schemaElement::dfdltest), 67]

Jun 20, 2019, 8:00:40 AM   info: The default value of '%LF;' was assigned to variable 'outputNewLine' in namespace 'http://www.ogf.org/dfdl/dfdl-1.0/'.       
                           [dfdl = /sample_dfdl_test/dfdltest.xsd, scd = , 133]

Jun 20, 2019, 8:00:40 AM   info: Offset: 0. Starting to process element 'dfdltest'.
                           [dfdl = /sample_dfdl_test/dfdltest.xsd, scd = #xscd(/schemaElement::dfdltest), 58]

Jun 20, 2019, 8:00:40 AM   info: Offset: 0. Starting to process element 'header'.
                           [dfdl = /sample_dfdl_test/dfdltest.xsd, scd = #xscd(/schemaElement::dfdltest/type::0/model::sequence/schemaElement::header), 56]

Jun 20, 2019, 8:00:40 AM   info: Offset: 0. Starting to process element 'head_elem1'.
                           [dfdl = /sample_dfdl_test/dfdltest.xsd, scd = #xscd(/schemaElement::dfdltest/type::0/model::sequence/schemaElement::header/type::0/model::sequence/schemaElement::head_elem1), 60]

Jun 20, 2019, 8:00:40 AM   info: Offset: 0. Found specified length value 'START' for element 'head_elem1'. The length was 5 bytes.
                           [dfdl = /sample_dfdl_test/dfdltest.xsd, scd = #xscd(/schemaElement::dfdltest/type::0/model::sequence/schemaElement::header/type::0/model::sequence/schemaElement::head_elem1), 106]

Jun 20, 2019, 8:00:40 AM   info: Offset: 5. Finished processing element 'head_elem1'.
                           [dfdl = /sample_dfdl_test/dfdltest.xsd, scd = #xscd(/schemaElement::dfdltest/type::0/model::sequence/schemaElement::header/type::0/model::sequence/schemaElement::head_elem1), 60]

Jun 20, 2019, 8:00:40 AM   info: Offset: 5. Starting to process element 'head_elem2'.
                           [dfdl = /sample_dfdl_test/dfdltest.xsd, scd = #xscd(/schemaElement::dfdltest/type::0/model::sequence/schemaElement::header/type::0/model::sequence/schemaElement::head_elem2), 60]

Jun 20, 2019, 8:00:40 AM   info: Offset: 5. Found specified length value '' for element 'head_elem2'. The length was 1 bytes.
                           [dfdl = /sample_dfdl_test/dfdltest.xsd, scd = #xscd(/schemaElement::dfdltest/type::0/model::sequence/schemaElement::header/type::0/model::sequence/schemaElement::head_elem2), 101]

Jun 20, 2019, 8:00:40 AM   info: Offset: 6. Finished processing element 'head_elem2'.
                           [dfdl = /sample_dfdl_test/dfdltest.xsd, scd = #xscd(/schemaElement::dfdltest/type::0/model::sequence/schemaElement::header/type::0/model::sequence/schemaElement::head_elem2), 60]

Jun 20, 2019, 8:00:40 AM   info: Offset: 6. Starting to process element 'head_elem3'.
                           [dfdl = /sample_dfdl_test/dfdltest.xsd, scd = #xscd(/schemaElement::dfdltest/type::0/model::sequence/schemaElement::header/type::0/model::sequence/schemaElement::head_elem3), 60]

Jun 20, 2019, 8:00:40 AM   info: Offset: 6. Found specified length value '20190614' for element 'head_elem3'. The length was 8 bytes.
                           [dfdl = /sample_dfdl_test/dfdltest.xsd, scd = #xscd(/schemaElement::dfdltest/type::0/model::sequence/schemaElement::header/type::0/model::sequence/schemaElement::head_elem3), 109]

Jun 20, 2019, 8:00:40 AM   info: Offset: 14. Finished processing element 'head_elem3'.
                           [dfdl = /sample_dfdl_test/dfdltest.xsd, scd = #xscd(/schemaElement::dfdltest/type::0/model::sequence/schemaElement::header/type::0/model::sequence/schemaElement::head_elem3), 61]

Jun 20, 2019, 8:00:40 AM   info: Offset: 14. Starting to process element 'head_elem4'.
                           [dfdl = /sample_dfdl_test/dfdltest.xsd, scd = #xscd(/schemaElement::dfdltest/type::0/model::sequence/schemaElement::header/type::0/model::sequence/schemaElement::head_elem4), 61]

Jun 20, 2019, 8:00:40 AM   info: Offset: 14. Found specified length value '' for element 'head_elem4'. The length was 1 bytes.
                           [dfdl = /sample_dfdl_test/dfdltest.xsd, scd = #xscd(/schemaElement::dfdltest/type::0/model::sequence/schemaElement::header/type::0/model::sequence/schemaElement::head_elem4), 102]

Jun 20, 2019, 8:00:40 AM   info: Offset: 15. Finished processing element 'head_elem4'.
                           [dfdl = /sample_dfdl_test/dfdltest.xsd, scd = #xscd(/schemaElement::dfdltest/type::0/model::sequence/schemaElement::header/type::0/model::sequence/schemaElement::head_elem4), 61]

Jun 20, 2019, 8:00:40 AM   info: Offset: 15. Starting to process element 'head_elem5'.
                           [dfdl = /sample_dfdl_test/dfdltest.xsd, scd = #xscd(/schemaElement::dfdltest/type::0/model::sequence/schemaElement::header/type::0/model::sequence/schemaElement::head_elem5), 61]

Jun 20, 2019, 8:00:40 AM   info: Offset: 15. Found specified length value '0815' for element 'head_elem5'. The length was 4 bytes.
                           [dfdl = /sample_dfdl_test/dfdltest.xsd, scd = #xscd(/schemaElement::dfdltest/type::0/model::sequence/schemaElement::header/type::0/model::sequence/schemaElement::head_elem5), 106]

Jun 20, 2019, 8:00:40 AM   info: Offset: 19. Finished processing element 'head_elem5'.
                           [dfdl = /sample_dfdl_test/dfdltest.xsd, scd = #xscd(/schemaElement::dfdltest/type::0/model::sequence/schemaElement::header/type::0/model::sequence/schemaElement::head_elem5), 61]

Jun 20, 2019, 8:00:40 AM   info: Offset: 19. Starting to process element 'head_elem6'.
                           [dfdl = /sample_dfdl_test/dfdltest.xsd, scd = #xscd(/schemaElement::dfdltest/type::0/model::sequence/schemaElement::header/type::0/model::sequence/schemaElement::head_elem6), 61]

Jun 20, 2019, 8:00:40 AM   info: Offset: 19. Found specified length value '' for element 'head_elem6'. The length was 36 bytes.
                           [dfdl = /sample_dfdl_test/dfdltest.xsd, scd = #xscd(/schemaElement::dfdltest/type::0/model::sequence/schemaElement::header/type::0/model::sequence/schemaElement::head_elem6), 103]

Jun 20, 2019, 8:00:40 AM   info: Offset: 55. Found terminator '%CR;%LF;' for 'head_elem6'.
                           [dfdl = /sample_dfdl_test/dfdltest.xsd, scd = #xscd(/schemaElement::dfdltest/type::0/model::sequence/schemaElement::header/type::0/model::sequence/schemaElement::head_elem6), 65]

Jun 20, 2019, 8:00:40 AM   info: Offset: 57. Finished processing element 'head_elem6'.
                           [dfdl = /sample_dfdl_test/dfdltest.xsd, scd = #xscd(/schemaElement::dfdltest/type::0/model::sequence/schemaElement::header/type::0/model::sequence/schemaElement::head_elem6), 61]

Jun 20, 2019, 8:00:40 AM   info: Offset: 57. Finished processing element 'header'.
                           [dfdl = /sample_dfdl_test/dfdltest.xsd, scd = #xscd(/schemaElement::dfdltest/type::0/model::sequence/schemaElement::header), 57]

Jun 20, 2019, 8:00:40 AM   info: Offset: 57. Up to 'unbounded' occurrences of element 'body' will be expected because occursCountKind='implicit' and maxOccurs='unbounded'.
                           [dfdl = /sample_dfdl_test/dfdltest.xsd, scd = #xscd(/schemaElement::dfdltest/type::0/model::sequence/schemaElement::body), 146]

Jun 20, 2019, 8:00:40 AM   error: CTDP3058E: Separator '%CR;%LF;%WSP;' not found at offset '57'  for sequence within element  '/dfdltest[1]'.

Jun 20, 2019, 8:00:40 AM   fatal: CTDP3058E: Separator '%CR;%LF;%WSP;' not found at offset '57'  for sequence within element  '/dfdltest[1]'.

]


Please help me to resolve the same.

Thanks,

Anil.
Back to top
View user's profile Send private message
timber
PostPosted: Thu Jun 20, 2019 12:17 am Post subject: Reply with quote

Grand Master

Joined: 25 Aug 2015
Posts: 1040

The error says:
Quote:
:00:40 AM fatal: CTDP3058E: Separator '%CR;%LF;%WSP;' not found at offset '57' for sequence within element '/dfdltest[1]'
Do you line endings match that pattern?
Back to top
View user's profile Send private message
abhi_thri
PostPosted: Thu Jun 20, 2019 12:27 am Post subject: Reply with quote

Partisan

Joined: 17 Jul 2017
Posts: 325
Location: UK

hi...it looks like %CR;%LF; is defined twice in the DFDL schema as a separator and as a terminator


Terminator:
Quote:
<xsd:element dfdl:length="36" dfdl:terminator="%CR;%LF;" ibmDfdlExtn:sampleValue="head_value6" name="head_elem6" type="xsd:string"/>


Separator:
Quote:
<xsd:sequence dfdl:separator="%CR;%LF;%WSP;" dfdl:separatorSuppressionPolicy="anyEmpty">


Don't think the terminator one is required as the upper level separator is enough to distinguish the different records, so remove the terminator and hopefully the parser should move along
Back to top
View user's profile Send private message
Display posts from previous:
Post new topicReply to topic Page 1 of 1

MQSeries.net Forum IndexWebSphere Message Broker SupportDFDL parse error for record oriented fixed lenghth
Jump to:



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP


Theme by Dustin Baccetti
Powered by phpBB 2001, 2002 phpBB Group

Copyright MQSeries.net. All rights reserved.