We have an application which runs normal in Biztalk 2010 but the same exported application when imported and run in Biztalk 2020 would produce exception.
The application has an orchestration which takes an incoming xml and transform it using a map. The code inside follows this Microsoft doc.
This code is working in Biztalk 2010 but in Biztalk 2020, we always have an exception when we call the transform shape.
Exception occurred: Object reference not set to an instance of an object.,
at Microsoft.XLANGs.Core.Service.ApplyTransform(Type mapRef, Object[] outParams, Object[] inParams)
at XXX.XXX.XXX.Core.Process.Billing.BillingServiceProcess.segment2(StopConditions stopOn)
at Microsoft.XLANGs.Core.SegmentScheduler.RunASegment(Segment s, StopConditions stopCond, Exception& exp)
I tested this manually in Visual Studio using the header map by passing in the input xml and confirmed I got the output xml without any issue. I verified the map exists in Biztalk. I've verified the incoming xml is valid.
One thing I can't seem to do is to put a debug point in the orchestration, that option is greyed out for me and I still do not know why.
Is there a known issue or a missing step as part of the Biztalk 2020 I need to know to get this working?