|  | 
 
  
    | RSS Feed - WebSphere MQ Support | RSS Feed - Message Broker Support |  
 
  
	|    |  |  
  
	| broker date parsing error | « View previous topic :: View next topic » |  
  	| 
		
		
		  | Author | Message |  
		  | jdevassy | 
			  
				|  Posted: Mon May 10, 2010 4:29 pm    Post subject: broker date parsing error |   |  |  
		  | Apprentice
 
 
 Joined: 16 Oct 2005Posts: 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 |  |  
		  |  |  
		  | mqjeff | 
			  
				|  Posted: Mon May 10, 2010 4:49 pm    Post subject: |   |  |  
		  | Grand Master
 
 
 Joined: 25 Jun 2008Posts: 17447
 
 
 |  |  
		  | Back to top |  |  
		  |  |  
		  | jdevassy | 
			  
				|  Posted: Mon May 10, 2010 5:03 pm    Post subject: |   |  |  
		  | Apprentice
 
 
 Joined: 16 Oct 2005Posts: 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 |  |  
		  |  |  
		  | jdevassy | 
			  
				|  Posted: Mon May 10, 2010 6:22 pm    Post subject: |   |  |  
		  | Apprentice
 
 
 Joined: 16 Oct 2005Posts: 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 |  |  
		  |  |  
		  | kimbert | 
			  
				|  Posted: Tue May 11, 2010 1:21 am    Post subject: |   |  |  
		  |  Jedi Council
 
 
 Joined: 29 Jul 2003Posts: 5543
 Location: Southampton
 
 | 
			  
				| 
  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. 
	| Quote: |  
	| ...it now works ok with Validation option 'Content', but fails for 'Content and Value' |  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 |  |  
		  |  |  
		  |  |  |  
  
	|    |  | Page 1 of 1 |  
 
 
  
  	| 
		
		  | 
 
 | 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
 
 |  |  |  |