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 » broker date parsing error

Post new topic  Reply to topic
 broker date parsing error « View previous topic :: View next topic » 
Author Message
jdevassy
PostPosted: Mon May 10, 2010 4:29 pm    Post subject: broker date parsing error Reply with quote

Apprentice

Joined: 16 Oct 2005
Posts: 37
Location: Melbourne, Australia

Hi,

I have an issue with broker date parsing. I have a field defined as xs:date and the message definition show the date format as 'yyyy-mm-dd'. But the external application sends the format yyyy-mm-ddZ (eg: 2010-10-10+11:00) to the flow and broker throws parser error. As per xsd standards, 2010-10-10+11:00 is a valid date.

Could any one tell me waht DateFormat to use to parse this value?

Thanks in advance

jd
Back to top
View user's profile Send private message Yahoo Messenger
mqjeff
PostPosted: Mon May 10, 2010 4:49 pm    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Z matches +11, not +11:00
ZZZ matches +11:00

http://publib.boulder.ibm.com/infocenter/wmbhelp/v6r1m0/topic/com.ibm.etools.mft.doc/ak05616_.htm
Back to top
View user's profile Send private message
jdevassy
PostPosted: Mon May 10, 2010 5:03 pm    Post subject: Reply with quote

Apprentice

Joined: 16 Oct 2005
Posts: 37
Location: Melbourne, Australia

Thanks mqjeff,

so should I give the DateTime format as yyyy-MM-ddZZZ ?

regards,
_________________
Thanks & Regards,

Joy Paliakkara Devassy
Back to top
View user's profile Send private message Yahoo Messenger
jdevassy
PostPosted: Mon May 10, 2010 6:22 pm    Post subject: Reply with quote

Apprentice

Joined: 16 Oct 2005
Posts: 37
Location: Melbourne, Australia

Hi,

I have changed the DateTime format to yyyy-mm-ddZZZ and it now works ok with Validation option 'Content', but fails for 'Content and Value'.

thanks
jd
Back to top
View user's profile Send private message Yahoo Messenger
kimbert
PostPosted: Tue May 11, 2010 1:21 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Quote:
...it now works ok with Validation option 'Content', but fails for 'Content and Value'
No surprise there. If you select 'Content' then the MRM parser will only check the content of groups and complex types. It will not validate values.
Presumably the incoming date is now successfully being converted to an ESQL DATE, but the resulting DATE does not match the facets in the xsd ( or in broker language, the Value Constraints on the simple type ).

If you need more help, I suggest that you take a user trace, extract the full text of the error message and post it here. Or get the full text from Windows Event Viewer. Please don't post the exception tree - it's very hard to read.
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 » broker date 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.