Problem with Scripting Functoid short : Element: to Attribute
hallo all
i have crazy problem
i need map element via (scripting functoid) using if else statement.
the source element name stcode (data type short)
the destination sql destined attribute name ststatus (data type short)
enumeration of collections (302,300, 100)
below scripting functoid code.
now when tested using test map. . code works..
but when deploy dll run on biztalk server..
it returns error. ("function 'usercsharp: getrepandorderconver ()' has failed.")
can please point me in right direction?
thanks in advance
scripting functiod code
public int getrepandorderconver(int stcode)
{
if (stcode == 100) {
stcode = 9;
}
else if (stcode == 300) {
stcode = 15;
}
else if (stcode == 302) {
stcode = 20;
}
else {
stcode = 9;
}
return stcode;
}
ake
hi,
consider when dealing with script functoids or custom functoids matter, input parameters , output parameters strings. conversions must done inside functoid itself. in event viewer having conversion errors? see leonid post biztalk: mapping: script functoid: type of input , output parameters.
hth
regards,
steef-jan wiggers
mcts biztalk server
http://soa-thoughts.blogspot.com/
if answers question please mark accordingly
biztalk
BizTalk Server > BizTalk Server General
Comments
Post a Comment