Resolution: A failure occurred while evaluating the distinguished field storedProcedureName.Request

Hi,

Whenever you create an schema using "Add Generated Metadata" and then you use promotion for the required elements sometimes you may receive this error. Baiscally, it means that the XML in the message doesn't contain the entire path to the element that the distinguished field points to. Thus you need to clearly verify that when you initialize the multipart message, make sure that field names are same. Since they are case sensitive so you need to take care that case is same as you have in the generated schema.

I receive the same because of the case problem.

Incorrcet Expression: 

// Intialize the SQL Request message

sXMLDoc = "<ns0:SQLRequestRoot xmlns:ns0='http://AS.MS_BTS.EDI_X12.Process.Inbound.CarrierInvoice.SQLAdapter'>"

+ "<ns0:SPMS_BTS_EDI_CARRIERINVOICE_PROCESS InputXML='' TestOnly='0' />"

+ "</ns0:SQLRequestRoot>";

 

xmlTempDoc.LoadXml(sXMLDoc);

Msg_SQLRequest.parameters = xmlTempDoc;

// Set the InputXML param to the OuterXML of our ShipmentStatus message

xmlTempDoc = (System.Xml.XmlDocument) Msg_CarrierInvoice;

sXMLDoc = xmlTempDoc.OuterXml;

sXMLDoc = AS.MS_BTS.Common.Framework.XMLHelper.Utility.RemoveNamespace(sXMLDoc, "ns0", "http://AS.MS_BTS.EDI_X12.Schema.Inbound.CarrierInvoice.Schema.XML_Inbound_CarrierInvoice");

Msg_SQLRequest.parameters.SPMS_BTS_EDI_CARRIERINVOICE_PROCESS.inputXML = sXMLDoc;

 If you see the correct case is "inputXML" while at the time of message initialization I used "InputMessage"  and I started getting these messages.

So please do take care and always use the correct case.

Regards

Vishnu

 

 

 

Direct Binding and EDI : Multiple Partner Scenario

In multiple partner scenario who are sedning either similar or multiple EDI messages it is suggested to use Direct Binding.

Using Direct binding you can set the filter conditions at the Receive port. Thus as soon as the message is published to the Database depending on the filter condition the message will be picked up and processed.

For the party data validations you can extract ISA properties using BizTalk EDI context properties and compare them against the party configurations values stored in the EDI DBs.

Regards

Vishnu

 

Resolution for Error : 'System.Xml.XmlDocument' does not contain a definition for 'Source'

Hi,

You may receive this error in the scenario when you add a schema using the "Add Generated Metadata"  and you promote the attribute or elements either as distinguished or as property promoted. Now when you are assigning any value or doing any comparison where the type or the distinguished field is to be changed "YOU WILL RECEIVE THIS ERROR".

Resolution: You need to use this paramter as below : --

InCorrect:

sbExMessage.Append("\n\nError Code: " + Msg_SQLResponse.parameters.Response.ErrorCode);

Correct:

sErrorCode = Msg_SQLResponse.parameters.Response.ErrorCode;

sbExMessage.Append("\n\nError Code: " + sErrorCode);

Regards

Vishnu

«January»
SunMonTueWedThuFriSat
272829303112
3456789
10111213141516
17181920212223
24252627282930
31123456