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 Fixed Length Parsing Error

Post new topic  Reply to topic
 DFDL Fixed Length Parsing Error « View previous topic :: View next topic » 
Author Message
Ravin
PostPosted: Tue Dec 09, 2014 2:13 pm    Post subject: DFDL Fixed Length Parsing Error Reply with quote

Novice

Joined: 18 Nov 2010
Posts: 11

Hello All,

I tried to create a simple DFDL message model with 3 fields as Fixed Length.
Below is the 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:recSepFieldsFmt="http://www.ibm.com/dfdl/RecordSeparatedFieldFormat" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <xsd:import namespace="http://www.ibm.com/dfdl/RecordSeparatedFieldFormat" schemaLocation="IBMdefined/RecordSeparatedFieldFormat.xsd"/>
    <xsd:annotation>
      <xsd:appinfo source="http://www.ogf.org/dfdl/">
         <dfdl:format byteOrder="{$dfdl:byteOrder}" encoding="{$dfdl:encoding}" escapeSchemeRef="recSepFieldsFmt:RecordEscapeScheme" occursCountKind="fixed" ref="recSepFieldsFmt:RecordSeparatedFieldsFormat"/>
      </xsd:appinfo>
   </xsd:annotation>

   <xsd:element ibmSchExtn:docRoot="true" name="myFxLn_msg">
      <xsd:complexType>
         <xsd:sequence dfdl:separator="%CR;%LF;%WSP*;">
            <xsd:element dfdl:initiator="" dfdl:occursCountKind="implicit" maxOccurs="unbounded" name="body">
               <xsd:complexType>
                  <xsd:sequence dfdl:separator="%#44;" dfdl:separatorPolicy="suppressedAtEndLax">
                     <xsd:element ibmDfdlExtn:sampleValue="body_value1" name="body_elem1" type="xsd:string"/>
                     <xsd:element ibmDfdlExtn:sampleValue="body_value2" name="body_elem2" type="xsd:string"/>
                     <xsd:element ibmDfdlExtn:sampleValue="body_value3" name="body_elem3" type="xsd:string"/>
                  </xsd:sequence>
               </xsd:complexType>
            </xsd:element>
         </xsd:sequence>
      </xsd:complexType>
   </xsd:element>

</xsd:schema>


When I select this schema-'myFxLn_msg' in the MQInputnode and provide an input like 'abcabcabc', I get an error - 'DFDL parsing errors have occurred.'
When I enable the mqsichangetrace I get the error description as - 'BIP5807E: The DFDL parser signalled that a processing error occurred. The message from the DFDL parser is: 'CTDP3001E: Root element 'myFxLn_msg' not found in schema.'

Can someone pls. help me with this error..? Thanks a lot.[/code]
Back to top
View user's profile Send private message Send e-mail
mqjeff
PostPosted: Tue Dec 09, 2014 2:17 pm    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

You should be using the DFDL Test Parser in the Toolkit to debug your DFDL models.

It's much easier to use than mqsichangetrace.
Back to top
View user's profile Send private message
Ravin
PostPosted: Tue Dec 09, 2014 2:33 pm    Post subject: Reply with quote

Novice

Joined: 18 Nov 2010
Posts: 11

I did use the dfdl test parser in the toolkit...and it got parsed successfully. But when I use the dfdl in the mqinput node, the message gets failed to parse... I used mqsichangetrace to get the detailed error message as I was not getting this error information in visual debug...
Back to top
View user's profile Send private message Send e-mail
kimbert
PostPosted: Wed Dec 10, 2014 1:51 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

The usual problems are:
- message name is incorrect
- message name is correct but namespace is not specified ( or incorrectly specified )
- schema was not deployed ( or an old version was deployed )
_________________
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
Ravin
PostPosted: Wed Dec 10, 2014 9:14 pm    Post subject: Reply with quote

Novice

Joined: 18 Nov 2010
Posts: 11

Thanks all for the responses...I figured out the issue. It was a deployment issue..missed to include the fixed length xsd. After including all the artifacts it was working fine. Thanks.
Back to top
View user's profile Send private message Send e-mail
Kjakh
PostPosted: Wed Apr 25, 2018 7:39 am    Post subject: Reply with quote

Newbie

Joined: 24 Apr 2018
Posts: 2

I am also facing the same issue in DFDL. My DFDL has one complex type which is having Min occurs as 0 and maxoccurs as 10. its getting parsed successfully in DFDL editor. but when I do the same in MQinput node it fails.

What is Fixed length XSD. please help
Back to top
View user's profile Send private message
timber
PostPosted: Wed Apr 25, 2018 8:09 am    Post subject: Reply with quote

Grand Master

Joined: 25 Aug 2015
Posts: 1280

I see nothing to suggest that this is the same issue. Please open a new thread and supply enough detail to allow us to diagnose the problem. So far, the only thing you have told us is 'it fails'. Which falls some way short of a full problem statement.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

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