문제

How can you specify a namespace in a BizTalk expression shape?

We want to check if the message has the EDI.ErrorDescription context property, so using code in an expression shape like ...

EDI.ErrorDescription exists msgTest

which doesn't show any errors, but then on building the solution, the file0.cs throws an error because we a conflicting Company.Project.EDI namespace.

But I can't find anyway to disambiguate the statement in the expression shape?

도움이 되었습니까?

해결책

It seems like your Company.Project.EDI namespace is colliding with the EDI namespace that BizTalk uses.

For testing purposes I would try to rename your Company.Project.EDI namespace to something like Company.Project.SomethingOtherThanEdi. This will make the two namespaces different and will most likely work for you.

Hope this helps!

다른 팁

Unfortunately, the Orchestration Designer is very sensitive to namespace collisions. So, yes, the two EDI namespace parts are colliding.

There is no way to specify a using or using alias either.

You have two options:

  1. Change Company.Project.EDI (as noted)
  2. Add a level of redirection through a helper class with a non-conflicting namespace.
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top