|
Home > Archive > BizTalk Server General > November 2004 > functoid scripting problem
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
functoid scripting problem
|
|
| Anders Engvall 2004-11-09, 7:46 am |
| We have a problem when we are trying to map optional fields (fields that
might not contains any data)
The incoming field is in the format string ("20041109") and the outgoing
field "enddate" need to be in the format date (2004-11-09).
Between theese we have a scripting functoid where we convert the string to
the correct format (2004-11-09) if it contains data, otherwise we just want to
do nothing.
It works fine when the incoming field contains data, but if it is empty we
got
the following error :
Output validation error: The 'enddate' element has an invalid value
according to its data type.
My question is how do I solve this problem?
| |
| Tan Bao Nguyen 2004-11-09, 5:49 pm |
| Link the output of the scripting functoid to a logical equal functoid and
then link the logical functoid (check if the field is empty) to value
mapping functoid; and finally, link the value mapping functoid to the
destination field. If the field is empty then the destination field will
not get created.
Regards,
Tan Nguyen
Microsoft BizTalk Server
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------[vbcol=seagreen]
Engvall@discussions.microsoft.com>[vbcol=seagreen]
want to[vbcol=seagreen]
we[vbcol=seagreen]
|
|
|
|
|