I have a variable’ABC’ in input and it’s type should be integer and this variable is mandatory. I have put the int constraint on this variable and checked the input validation check box in flow service. Now, if I pass blank value in input variable ‘ABC’, it is giving me input validation error.
I don’t want the input validation error for blank or empty value. Is there any way to make it possible. I don’t want to make the variable optional.
Variable abc is mandatory but this variable is inside of document which is optional. So when we pas empty tag for this variable (like ) it will not give any validation error, I will not use any content type.
But as per my requirement, If I use content type Integer( to allow integer value and empty tag) and will pass empty tag then it’s giving error "Value doesn’t support data type.
One solution which I found is use content type string and use regex which allows integer value and empty tag only.
Correct me if I am wrong, this is my understanding ------
create a doc (make it option by Required=false) underneath create a string variable “abc” with Content type=integer {http://www.w3.org/2001/XMLSchema}. Check “Validate input”
Run the service passing empty (no white spaces) it will not throw validation error. If you pass alphabets and numbers with decimal point it will throw “‘/doc/abc DT-001 [ISC.0082.9447] Value does not conform to datatype’”
If your solution is working as expected please go ahead with it. Can you please share the screen shots of your regex with the field names.
sounds like a severe misunderstanding about options “Required” and “Allow Null”.
If a document or a field in structure is required, it must exist at least one time (minOccurs=1, default).
If it is not required, it can exist or it can be missing (minOccurs=0).
If it exists, it must contain some data (Allow Null(nillable)=false).
If it is acceptable, that it exists but without data, it should be set to allow null (Allow Null(nillable)=true).
But a regular space character is not recognized as null as the field has length=1 (the space character).
Only fields with lenght=0 are recognized to be Null.
Validating a space character against an integer type will fail with datatype mismatch.
Null fields can have two representations in XML-format: