Posted: Fri Oct 03, 2014 1:41 pm Post subject: DFDL MOdeling CalenderPattern
Apprentice
Joined: 13 May 2014 Posts: 38
Hi I am getting the following Exception when i changed the CalenderPattern Kind from explicit and CalenderPattern "MMddHHmmss" to explicit "yyyy-MM-dd hh:mm:ss";
"
Code:
Description Resource Path Location Type
CTDM2230E : DFDL property 'calendarPatternKind' appears more than once for an object when scoping rules applied. Object 'xs:element #MessageReceivingTime'. ISO8583_Unpacked.xsd /ISO8583_Library line 85 DFDL Validation Problem
"
I am trying to read a message from a file into ISO8583 Model, the field name is MessageReceivingTime declared as "Type_n_DateTime"
explicit length 14.
The datetime value that i am reading is "20140929155025"
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
Quote:
CalenderPattern "MMddHHmmss" to explicit "yyyy-MM-dd hh:mm:ss";
seems at odds with
Quote:
The datetime value that i am reading is "20140929155025"
Which (IMO) is more like a 'yyyyMMddHHmmss' kind of pattern.
Anyway be careful about the use of 'HH' and 'hh' That can cause you grief later on. _________________ 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.
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
The error is explained in the text. You have two items of the same name in scope. Fix that and you can move forward _________________ 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.
This is a schema definition error ( a compiler error in your DFDL xsd ).
The Calendar Pattern property is probably being set on the element and on its type. That's not allowed - the DFDL properties from the element and its type must not overlap. _________________ Before you criticize someone, walk a mile in their shoes. That way you're a mile away, and you have their shoes too.
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