Page tree
Skip to end of metadata
Go to start of metadata

Problems with date based types in my mappings

 


HINTS 

When making mappings based on type of xsd:date or xsd:datetime you might encounter the following problem at runtime:

Caused by: java.lang.IllegalArgumentException: Value '2008-10-27T22:35:47.937+05:30' of type http://sap.com/xi/APPL/SE/Global\#\#Date fails validation check: pattern=[[0-9]{4}-[0-9]{2}-[0-9]{2}]
  at com.sap.sdo.impl.types.builtin.TypeLogic$FacetCheck.check(TypeLogic.java:358)                                                               
  at com.sap.sdo.impl.types.builtin.TypeLogic.checkFacets(TypeLogic.java:528) 
  at com.sap.sdo.impl.types.builtin.TypeLogic.convertFromJavaClass(TypeLogic.java:296)                                                           
  at com.sap.sdo.impl.objects.strategy.AbstractDataStrategy.convert(AbstractDataStrategy.java:687)                                               
  at com.sap.sdo.impl.objects.strategy.PropertyChangeContext.convertObject(PropertyChangeContext.java:308)                                       

Reason and resolution:
http://service.sap.com/sap/support/notes/1345488

 

  • No labels