question

RohitGaikwad-1270 avatar image
0 Votes"
RohitGaikwad-1270 asked RohitGaikwad-1270 commented

BizTalk application migrated to BizTalk 2020 version is not running

Hello All,

I am working on BizTalk 2020 migration project. One of the BizTalk application migrated to BizTalk 2020 is not running and I am getting below error message in event viewer. Can someone please guide me about this error message. I have gone through lots of forums but didn't find much on this.

*xlang/s engine event log entry: Uncaught exception (see the 'inner exception' below) has suspended an instance of service 'MDR.PARS.MDMONODS.Orchestrations.ProcessStartMDM(bfdde059-36df-c705-b865-07f37913c17d)'.
The service instance will remain suspended until administratively resumed or terminated.
If resumed the instance will continue from its last persisted state and may re-throw the same unexpected exception.
InstanceId: 3fb8c0eb-5b27-4a81-9f4e-4078fe39d5b3
Shape name: Initialise Credentials
ShapeId: 9083ac1b-30f5-469a-9c13-6a2f8d92fbcf
Exception thrown from: segment 1, progress 33
Inner exception: Object reference not set to an instance of an object.

Exception type: NullReferenceException
Source: MDR.PARS.MDMONODS.Orchestrations
Target Site: Microsoft.XLANGs.Core.StopConditions segment1(Microsoft.XLANGs.Core.StopConditions)
The following is a stack trace that identifies the location where the exception occured
at MDR.PARS.MDMONODS.Orchestrations.ProcessStartMDM.segment1(StopConditions stopOn)
at Microsoft.XLANGs.Core.SegmentScheduler.RunASegment(Segment s, StopConditions stopCond, Exception& exp)*


Thanks,
Rohit Gaikwad
rohit.gaikwad21@hotmail.com

biztalk-server
· 4
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi Rohit,

Thank you for asking this question on the Microsoft Q&A Platform.

We would need more details about your issue, what steps did you try and what is not working, if you can provide more details to understand your issue and accordingly we'll help you to resolve it.

  • Is this your development environment?

  • Did you try to debug your Orch, because this exception is coming in Orch.

Regards,
Kamlesh Kumar

If this answer solved your problem, please click the Verify Answer button (found below the answer) to help other users who have the same question.

0 Votes 0 ·

HI Kamlesh,

Yes it is a DEV environment. I tried to debug the orchestration and yes for some of the variable it is coming NULL values. But I am not able to identify from where it is coming and for which variable. Can you pls guide on how to debug orchestration better. Or is there any link or videos.

0 Votes 0 ·

Hi Rohit,

For Orchestration debugging please refer to MS Doc link to get the full understanding.

https://docs.microsoft.com/en-us/biztalk/core/debugging-orchestrations

And as Leo pointed, you have a config missing issue, please copy your required details from the old server to the new server and test it.

Regards,
Kamlesh Kumar

If this answer solved your problem, please click the Verify Answer button (found below the answer) to help other users who have the same question.

1 Vote 1 ·
Show more comments
LeoErlandsson avatar image
0 Votes"
LeoErlandsson answered RohitGaikwad-1270 commented

Hi,

Aha. Then I think you're missing the "SecureAppSettings" in the BizTalk app config.
That's why you're getting the NullReferenceException:Object reference not set to an instance of an object..

I guess you had it on the old server.

Br,
Leo

· 7
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Yes I checked it is there is old app server. But I am not sure how can I get those "SecureAppSettings" in config file of new servers. Do I just need to copy paste from old config files or somewhere I need to configure those so that it will reflect there.

0 Votes 0 ·

Yes, copy paste.

0 Votes 0 ·

Can I copy other stuff also which I require.

0 Votes 0 ·
Show more comments

And also there is lots of other stuff in config file of old server. How can I get those all in new config file.

0 Votes 0 ·

HI Leo,

Thanks the issue got resolved. I moved little bit further. But now I am getting below error message in event viewer, What do I need to check??



Interface Code: BT_GP_MDM_TO_ODS
Exception Type:General Exception
Priority: 1
Event ID: 0
Message: There is no value associated with the property 'MDR.Common.ODS.Schemas.PropertySchema.ods_interface_run_id' in the message.



130207-image.png


0 Votes 0 ·
image.png (14.2 KiB)

HI Leo,

IThe issue got resolved now thanks. I was able to move little further. But I am getting below error message in event viewer.

Interface Code: BT_GP_MDM_TO_ODS
Exception Type:General Exception
Priority: 1
Event ID: 0
Message: There is no value associated with the property 'MDR.Common.ODS.Schemas.PropertySchema.ods_interface_run_id' in the message.

There is an expression shape and it is getting this ods_interface_run_id value from SQL server, but I guess it is not able to fetch that value.

130257-image.png


0 Votes 0 ·
image.png (17.9 KiB)
LeoErlandsson avatar image
0 Votes"
LeoErlandsson answered RohitGaikwad-1270 commented

Hi,

What kind of Shape is the "Initialise Credentials" shape?

Is it an Expression shape? What expression / code does it contain?

Br,
Leo

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

HI Leo,

IYes it is the expression shape and it contains following expression.


//initialise credentials
credentials=(System.Collections.Specialized.NameValueCollection)System.Configuration.ConfigurationManager.GetSection("SecureAppSettings");
username=credentials["username"];
password=credentials["password"];

0 Votes 0 ·