My decide shape is not working correctly
hi,
i have created simple orchestration should split files 3 different folders. splitting done looking in .xml specific number.
so created variabele in orchestration , created expression shape , under 3 rule branch decide shape.
in expression shape created next expression: variabelestring = msgncts.declaration.reference. variabelestring variabele , msgncts.declaration.reference message.
so in decide shape have 3 branches split files folder 1, folder 2 or format isnt recognized folder 3 (else).
in first branch created expression: variabelestring.substring(0,1) == "1" checks first number of distinguished property.
in second branch expression is: variabelestring.substring(0,1) == "2"
when test application first branch works perfectly, files have numbers like: "1 096608/40/bn000418" , "1 01113/10/bn000765".
else branch working correct, other files redirected correct folder.
problem second branch, should redirect files second folder if files contain number like: "2 096608/40/bn000418" , "2 016408/60/bn000875". aint working, files started 2 ends in folder 3, else folder.
when manually adjust reference number in file "2 096608/40/bn000418" "2" , test application file goes folder 2 should be. know goes wrong in application?
hi
i have worked allot decide shape never observed problem this. think cause of might value being parsed different. may can debug writing event log in expression shape. , should able debug out using event viewer.
system.diagnostics.eventlog.writeentry(variabelestring.substring(0, 1));
BizTalk Server > BizTalk Server General
Comments
Post a Comment