Menu

convertDate error 'Empty input date'

Luca
2007-10-31
2013-05-30
  • Luca

    Luca - 2007-10-31

    sx:convertDate generates a "Empty input date" error when the date value is null. Sometimes however this value is optional in the input data file and an empty value has to be considered a valid value.
    I suggest to add a "nullAllowed" (or whatever you like) attribute to the convertDate and convertDateTime elements to quietly ignore empty values.

    luca buraggi

     
    • Daniel Parker

      Daniel Parker - 2007-10-31

      I agree, I'll change the default to allow empty values.  It should be up to the schema or other validation to validate empty values.

      -- Daniel

       
    • Daniel Parker

      Daniel Parker - 2007-11-05

      I've made this change in 0.8.0.1.  We'll possibly add a null allowed flag to this (and other) elements in the future, but the default will generally be true.

      -- Daniel

       

Log in to post a comment.