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 Index » WebSphere Message Broker (ACE) Support » DFDL Modeling

Post new topic  This topic is locked: you cannot edit posts or make replies.
 DFDL Modeling « View previous topic :: View next topic » 
Author Message
SphereOfLove
PostPosted: Fri Aug 22, 2014 7:31 am    Post subject: DFDL Modeling Reply with quote

Apprentice

Joined: 13 May 2014
Posts: 38

Hi all,
I hope this finds you well.
I have a question, i was creating a DFDL model for T24 Fixed length message.
I am getting the following Error at the end of the sample File i have given as the input file.

The total length of the Message is 926, and i am getting the following ERROR.


Aug 22, 2014, 7:53:05 AM error: CTDP3000E: Unexpected end of data at byte offset '927' while parsing element 'RESERVED5'. The parser encountered the end of the data stream or the end of a parent element.

Aug 22, 2014, 7:53:05 AM fatal: CTDP3000E: Unexpected end of data at byte offset '927' while parsing element 'RESERVED5'. The parser encountered the end of the data stream or the end of a parent element[/quote]


Code:
<?xml version="1.0" encoding="UTF-8"?><xsd:schema xmlns:csv="http://www.ibm.com/dfdl/CommaSeparatedFormat" 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:xsd="http://www.w3.org/2001/XMLSchema">


   <xsd:import namespace="http://www.ibm.com/dfdl/CommaSeparatedFormat" schemaLocation="IBMdefined/CommaSeparatedFormat.xsd"/>
   <xsd:annotation>
      <xsd:appinfo source="http://www.ogf.org/dfdl/">
         <dfdl:format documentFinalTerminatorCanBeMissing="yes" encoding="{$dfdl:encoding}" escapeSchemeRef="csv:CSVEscapeScheme" ref="csv:CommaSeparatedFormat"/>
      </xsd:appinfo>
   </xsd:annotation>


   <xsd:element ibmSchExtn:docRoot="true" name="RGFTReqMsg">
      <xsd:complexType>
         <xsd:sequence dfdl:separator="">
            <xsd:element dfdl:length="25" dfdl:lengthKind="explicit" ibmDfdlExtn:sampleValue="value1" name="PAN" type="xsd:string"/>
            <xsd:element dfdl:length="12" dfdl:lengthKind="explicit" ibmDfdlExtn:sampleValue="value2" name="TransmissionDateAndTime" type="xsd:string"/>
            <xsd:element dfdl:length="6" dfdl:lengthKind="explicit" ibmDfdlExtn:sampleValue="value3" name="STAN" type="xsd:string"/>
            <xsd:element dfdl:length="4" dfdl:lengthKind="explicit" ibmDfdlExtn:sampleValue="value4" name="OperationType" type="xsd:string"/>
            <xsd:element dfdl:length="2" dfdl:lengthKind="explicit" ibmDfdlExtn:sampleValue="value3" name="RoundTripCounter" type="xsd:string"/>
            <xsd:element dfdl:length="1" dfdl:lengthKind="explicit" ibmDfdlExtn:sampleValue="value3" name="Acknowledgement" type="xsd:string"/>
            <xsd:element dfdl:length="3" dfdl:lengthKind="explicit" ibmDfdlExtn:sampleValue="value3" name="ChannelCode" type="xsd:string"/>
            <xsd:element dfdl:length="20" dfdl:lengthKind="explicit" ibmDfdlExtn:sampleValue="value3" name="T24TransactionId" type="xsd:string"/>
            <xsd:element dfdl:length="5" dfdl:lengthKind="explicit" ibmDfdlExtn:sampleValue="value3" name="SourceBranchId" type="xsd:string"/>
            <xsd:element dfdl:length="5" dfdl:lengthKind="explicit" ibmDfdlExtn:sampleValue="value3" name="TargetBranchId" type="xsd:string"/>
            <xsd:element dfdl:length="20" dfdl:lengthKind="explicit" ibmDfdlExtn:sampleValue="value3" name="Checksum" type="xsd:string"/>
            <xsd:element dfdl:length="4" dfdl:lengthKind="explicit" ibmDfdlExtn:sampleValue="value3" name="OperationSubType" type="xsd:string"/>
            <xsd:element dfdl:length="5" dfdl:lengthKind="explicit" ibmDfdlExtn:sampleValue="value3" name="InitiatedForm" type="xsd:string"/>
            <xsd:element dfdl:length="5" dfdl:lengthKind="explicit" ibmDfdlExtn:sampleValue="value3" name="DrBrId" type="xsd:string"/>
            <xsd:element dfdl:length="24" dfdl:lengthKind="explicit" ibmDfdlExtn:sampleValue="value3" name="DrAcId" type="xsd:string"/>
            <xsd:element dfdl:length="5" dfdl:lengthKind="explicit" ibmDfdlExtn:sampleValue="value3" name="CrBrId" type="xsd:string"/>
            <xsd:element dfdl:length="24" dfdl:lengthKind="explicit" ibmDfdlExtn:sampleValue="value3" name="CrAcId" type="xsd:string"/>
            <xsd:element dfdl:length="5" dfdl:lengthKind="explicit" ibmDfdlExtn:sampleValue="value3" name="ChCrBrId" type="xsd:string"/>
            <xsd:element dfdl:length="24" dfdl:lengthKind="explicit" ibmDfdlExtn:sampleValue="value3" name="ChCrAcId" type="xsd:string"/>
            <xsd:element dfdl:length="3" dfdl:lengthKind="explicit" ibmDfdlExtn:sampleValue="value3" name="DrAcCCY" type="xsd:string"/>
            <xsd:element dfdl:length="3" dfdl:lengthKind="explicit" ibmDfdlExtn:sampleValue="value3" name="CrAcCCY" type="xsd:string"/>
            <xsd:element dfdl:length="19" dfdl:lengthKind="explicit" ibmDfdlExtn:sampleValue="value3" name="Amount" type="xsd:string"/>
            <xsd:element dfdl:length="19" dfdl:lengthKind="explicit" ibmDfdlExtn:sampleValue="value3" name="ChAmount" type="xsd:string"/>
            <xsd:element dfdl:length="19" dfdl:lengthKind="explicit" ibmDfdlExtn:sampleValue="value3" name="ForeignAmount" type="xsd:string"/>
            <xsd:element dfdl:length="19" dfdl:lengthKind="explicit" ibmDfdlExtn:sampleValue="value3" name="ExchangeRate" type="xsd:string"/>
            <xsd:element dfdl:length="5" dfdl:lengthKind="explicit" ibmDfdlExtn:sampleValue="value3" name="ForeignCCY" type="xsd:string"/>
            <xsd:element dfdl:length="20" dfdl:lengthKind="explicit" ibmDfdlExtn:sampleValue="value3" name="OperatorId" type="xsd:string"/>
            <xsd:element dfdl:length="20" dfdl:lengthKind="explicit" ibmDfdlExtn:sampleValue="value3" name="SupervisorId" type="xsd:string"/>
            <xsd:element dfdl:length="52" dfdl:lengthKind="explicit" ibmDfdlExtn:sampleValue="value3" name="TxnNarration" type="xsd:string"/>
            <xsd:element dfdl:length="52" dfdl:lengthKind="explicit" ibmDfdlExtn:sampleValue="value3" name="ChNarration" type="xsd:string"/>
            <xsd:element dfdl:length="3" dfdl:lengthKind="explicit" ibmDfdlExtn:sampleValue="value3" name="InstrType" type="xsd:string"/>
            <xsd:element dfdl:length="12" dfdl:lengthKind="explicit" ibmDfdlExtn:sampleValue="value3" name="InstrNo" type="xsd:string"/>
            <xsd:element dfdl:length="10" dfdl:lengthKind="explicit" ibmDfdlExtn:sampleValue="value3" name="InstrDate" type="xsd:string"/>
            <xsd:element dfdl:length="2" dfdl:lengthKind="explicit" ibmDfdlExtn:sampleValue="value3" name="Status" type="xsd:string"/>
            <xsd:element dfdl:length="50" dfdl:lengthKind="explicit" ibmDfdlExtn:sampleValue="value3" name="StatusDesc" type="xsd:string"/>
            <xsd:element dfdl:length="19" dfdl:lengthKind="explicit" ibmDfdlExtn:sampleValue="value3" name="Balance" type="xsd:string"/>
            <xsd:element dfdl:length="100" dfdl:lengthKind="explicit" ibmDfdlExtn:sampleValue="value3" name="Reserved4" type="xsd:string"/>
            <xsd:element dfdl:length="100" dfdl:lengthKind="explicit" ibmDfdlExtn:sampleValue="value3" name="Reserved3" type="xsd:string"/>
            <xsd:element dfdl:length="100" dfdl:lengthKind="explicit" ibmDfdlExtn:sampleValue="value3" name="Reserved2" type="xsd:string"/>
            <xsd:element dfdl:length="100" dfdl:lengthKind="explicit" ibmDfdlExtn:sampleValue="value3" name="Reserved1" type="xsd:string"/>
            <xsd:element dfdl:length="2" dfdl:lengthKind="explicit" ibmDfdlExtn:sampleValue="value3" dfdl:outputNewLine="%CR;" name="RESERVED5" type="xsd:string"/>
         </xsd:sequence>
      </xsd:complexType>
   </xsd:element>


</xsd:schema>
Back to top
View user's profile Send private message
Vitor
PostPosted: Fri Aug 22, 2014 7:36 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

See also here.

As the OP decided to open a new thread rather than just adding this to the existing one.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
Vitor
PostPosted: Fri Aug 22, 2014 7:37 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

What terminator is specified for the message / record?
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Fri Aug 22, 2014 7:39 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20696
Location: LI,NY

Have you thought to change the format of the document to last terminator may be missing in document to true?
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
SphereOfLove
PostPosted: Mon Aug 25, 2014 1:16 am    Post subject: Reply with quote

Apprentice

Joined: 13 May 2014
Posts: 38

fjb_saper wrote:
Have you thought to change the format of the document to last terminator may be missing in document to true?


Sorry Bro could not get what you want to say?

I am still getting Error.. the same Error
Back to top
View user's profile Send private message
SphereOfLove
PostPosted: Mon Aug 25, 2014 1:17 am    Post subject: Reply with quote

Apprentice

Joined: 13 May 2014
Posts: 38

What terminator should be defined for the end of the record?
Back to top
View user's profile Send private message
kimbert
PostPosted: Mon Aug 25, 2014 4:03 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Please test your input data and model in the toolkit using the 'Test Parse' facility in the DFDL editor. When you have reproduced the error, post ( some of ) the DFDL trace here.
_________________
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
View user's profile Send private message
SphereOfLove
PostPosted: Mon Aug 25, 2014 5:13 am    Post subject: Reply with quote

Apprentice

Joined: 13 May 2014
Posts: 38

kimbert wrote:
Please test your input data and model in the toolkit using the 'Test Parse' facility in the DFDL editor. When you have reproduced the error, post ( some of ) the DFDL trace here.


Thank you Kimbert.

I could be able to parse the Sample Data file.
but when i use TCPIP node in IIB, i route the message towards Catch terminal of the TCPIP node the following Error Message .


( ['MQROOT' : 0x1c7d620]
(0x01000000:Name):RecoverableException = (
(0x03000000:NameValue):File = 'F:\build\slot1\S900_P\src\DataFlowEngine\TemplateNodes\ImbOutputTemplateNode.cpp' (CHARACTER)
(0x03000000:NameValue):Line = 326 (INTEGER)
(0x03000000:NameValue):Function = 'ImbOutputTemplateNode::processMessageAssemblyToFailure' (CHARACTER)
(0x03000000:NameValue):Type = 'ComIbmTCPIPClientOutputNode' (CHARACTER)
(0x03000000:NameValue):Name = 'balanceEnquiryMsgFl#FCMComposite_1_5' (CHARACTER)
(0x03000000:NameValue):Label = 'balanceEnquiryMsgFl.TCPIP Client Output' (CHARACTER)
(0x03000000:NameValue):Catalog = 'BIPmsgs' (CHARACTER)
(0x03000000:NameValue):Severity = 3 (INTEGER)
(0x03000000:NameValue):Number = 2230 (INTEGER)
(0x03000000:NameValue):Text = 'Caught exception and rethrowing' (CHARACTER)
(0x01000000:Name ):Insert = (
(0x03000000:NameValue):Type = 14 (INTEGER)
(0x03000000:NameValue):Text = 'balanceEnquiryMsgFl.TCPIP Client Output' (CHARACTER)
)
(0x01000000:Name ):ParserException = (
(0x03000000:NameValue):File = 'F:\build\slot1\S900_P\src\MTI\MTIforBroker\DfdlParser\ImbDFDLErrorHandler.cpp' (CHARACTER)
(0x03000000:NameValue):Line = 314 (INTEGER)
(0x03000000:NameValue):Function = 'ImbDFDLErrorHandler::handleSerializerErrors' (CHARACTER)
(0x03000000:NameValue):Type = 'ComIbmTCPIPClientInputNode' (CHARACTER)
(0x03000000:NameValue):Name = 'balanceEnquiryMsgFl#FCMComposite_1_1' (CHARACTER)
(0x03000000:NameValue):Label = 'balanceEnquiryMsgFl.TCPIP Client Input' (CHARACTER)
(0x03000000:NameValue):Catalog = 'BIPmsgs' (CHARACTER)
(0x03000000:NameValue):Severity = 3 (INTEGER)
(0x03000000:NameValue):Number = 5831 (INTEGER)
(0x03000000:NameValue):Text = 'An error occurred whilst serializing with DFDL' (CHARACTER)
(0x01000000:Name ):Insert = (
(0x03000000:NameValue):Type = 5 (INTEGER)
(0x03000000:NameValue):Text = 'CTDU4076E: The DFDL serializer cannot output the text representation of element '#xscd(/schemaElement::testModel/type::0/model::sequence/schemaElement::PAN)'. The serialized string value '' with length '0' is less than the declared length '25'' (CHARACTER)
)
(0x01000000:Name ):Insert = (
(0x03000000:NameValue):Type = 5 (INTEGER)
(0x03000000:NameValue):Text = '/DFDL/testModel/PAN' (CHARACTER)
)
)
)
)

does somebody have any idea?
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Mon Aug 25, 2014 7:12 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20696
Location: LI,NY

What is the padding information in the schema on element PAN.
See pad-kind etc...
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  This topic is locked: you cannot edit posts or make replies. Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » DFDL Modeling
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.