BizTalk Error: Unable to cast object of type ‘ArrayBasedXmlNodeList’ to type ‘System.IConvertible’.

(In order to Enlarge images Please Right Click and Open images in New Tab).

Let us see solution

2

In order to resolve above issue ,
Perform below steps=>
1)Create one variable of type String in Orchestration view .
2)Fetch value Through XPath and store in this variable.
3)Use code like mentioned below

temporaryString = xpath(myMsg,”/*[local-name()=’Dep’ and namespace-uri()=’http://App.BizTalk.AppPaymentSchema’%5D/*%5Blocal-name()=’Ps’ and namespace-uri()=’http://App.BizTalk.AppPaymentSchema’%5D/@*%5Blocal-name()=’Amount’ and namespace-uri()=”]”);

 

 

finalMsg.DecimalField = System.Convert.ToDecimal
(temporaryString );

 

 

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s