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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
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
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