Sometimes, biztalk expression gives this message :
error X2003: #error: "The expression that you have entered is not valid."
At this time probably you have a helper class problem. If you could not properly "gac" your helper class you can't use your helper class in biztalk expressions.
Solution is simple:
- Ungac your helper class
- Remove your references(helper class) from biztalk project
- GAC your helper class
- Add your references(helper class) to biztalk project
- Restart your host instance from Biztalk Administration Console
- Rebuild your application.
If it still gives same error i can give a trick :
- change your variable type to boolean which is related your helper class
- rebuild your biztalk application. it gives a lot of error.
- change back your variable type to your helper class and rebuild. ta tam ! interestingly it works.