cholliday

Has anyone had any success batching outbound EDI messages

There appears to be some hole in the documentation somewhere failing to describe the magic button that makes batching work. Basically, my messages are not batched even though I have configured the Party to batch.

Any success stories out there

Thanks,

Chris



Re: BizTalk EDI and AS2 Anyone successful with batching?

Arnab Ghosh - MSFT

Did you try the sending outbound batched Edi message walkthrough section under "Development -> Developing and Configuring BizTalk Server EDI Solutions -> Walkthrough: Sending Batched EDI Interchange" in the BTS 2006 R2 help docs

Thanks,

Arnab.





Re: BizTalk EDI and AS2 Anyone successful with batching?

cholliday

I have tried it. It does not work. There are several problems with the documentation including:

In the send port filters, they have the wrong schema name. In the Batching Filter (Batching Configuration for Party), the EDI.MessageType is called out. I have not been able to find this property anywhere.

Each of my varied attempts has failed with the batching orchs never being called.

Any other thoughts

Chris





Re: BizTalk EDI and AS2 Anyone successful with batching?

cholliday

Update...

I believe the walkthrough will work if you correct the schema names in the filters and use BTS.MessageType instead of EDI.MessageType (which does not exist). However, I have yet to find a way to go from orchestration to a batch without first dropping the translated EDI messages into a folder via a send port, then picking them up via a receive port an resending them as a batch. There are inherent problems with this process (reporting correct number of messages, more exposure for failure, etc).

The scenario I am trying to create is as follows:

Receive inbound XML

Run processing and workflow via orchestration

Send via batched EDI

The only way I have been able to do this so far is:

Receive inbound XML

Run orchestration

Send individual EDI to a folder

Receive edi from folder

Send via batched EDI





Re: BizTalk EDI and AS2 Anyone successful with batching?

Arnab Ghosh - MSFT

To batch the inbound Xml in 3 steps, as you desire, your workflow orchestration has to promote specific properties on the Xml message.

These properties are listed in the following section of BizTalk Server 2006 R2 help: Planning and Architecture -> EDI Solution Architecture -> How BizTalk Server Sends EDI Messages -> Batching Outgoing EDI Messages -> Assembling a Batched EDI Interchange -> Message Flow for Outgoing Batched Messages - Item 2 (could you pls. ensure you have the latest help docs - I couldn't locate some of the issues you have mentioned when you tried to follow the Batching Walkthrough documentation). I have pasted the relevant section from the help doc below for your reference:

"If the filter settings of only one party subscribes to a message, the BatchMarker component will promote the properties EDI.ToBeBatched = True, EDI.DestinationPartyID = %PartyID%, and EDI.EncodingType = 0 or 1 (0 for X12 or 1 for EDIFACT). This ensures that the batching orchestration will pick up the message."

Here %PartyID% should be the numeric BizTalk Party ID (visible on the "General" property page of EDI Properties of a party).

Your workflow orchestration would need to promote the above 3 properties. The filter values set on the batch property page and used for subscribing to messages by the BatchMarker component wouldn't be required (note: you would need to enter dummy values on the batch filter property page to get around validation). The batch would then be released based on the batch release criterion you have specified on the appropriate parties batch property page.

Hope this would help.

Thanks,

Arnab.






Re: BizTalk EDI and AS2 Anyone successful with batching?

Genuine Basil

I am receiving below XLANG error inside batching orchestration for EDIFACT transaction

Uncaught exception (see the 'inner exception' below) has suspended an instance of service 'Microsoft.BizTalk.Edi.BatchingOrchestration.BatchingService(2a16c595-614b-9563-c13f-ebd20e4a6154)'.

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: 4a87b23a-421f-4f7c-b2a4-bcf8f867e378

Shape name: DecideIfValidInstance

ShapeId: 41404d24-4eb2-4653-9350-c2c2828c235c

Exception thrown from: segment 26, progress 25

Inner exception: Could not find a matching schema deployed for doctype name:http://schemas.microsoft.com/BizTalk/EDI/EDIFACT/2006#EFACT_D96A_ORDERS

Exception type: ArgumentException

Source: Microsoft.BizTalk.Edi.MessageCore

Target Site: Microsoft.BizTalk.Component.Interop.DocumentSpec GetDocumentSpec(System.String)

The following is a stack trace that identifies the location where the exception occured

at Microsoft.BizTalk.Edi.MessageCore.BtsSchema.GetDocumentSpec(String docType)

at Microsoft.BizTalk.Edi.MessageCore.BtsSchema.get_SchemaCollection()

at Microsoft.BizTalk.Edi.MessageCore.EdiSchemaToolSet.ValidateInstance(SchemaInstanceInfo vInstanceInfo, Boolean isRuntime, Boolean bIsCharCountBased)

at Microsoft.BizTalk.Edi.BatchHelper.BatchValidator.ValidateBatch(XLANGMessage xMsg, BatchConfiguration bc, BatchElementSorter sorter)

at Microsoft.BizTalk.Edi.BatchingOrchestration.BatchingService.segment26(StopConditions stopOn)

at Microsoft.XLANGs.Core.SegmentScheduler.RunASegment(Segment s, StopConditions stopCond, Exception& exp)

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

But EFACT_D96A_ORDERS schema is already deployed in my application and its working fine with the EDI receive pipeline. Also i tried deploying schema to EDI Application.. but no luck.. Any inputs




Re: BizTalk EDI and AS2 Anyone successful with batching?

cholliday

Thanks for these instructions!

Can you provide a URL to the new documentation The section you are describing above does not exist in my documents.

Thanks,

Chris





Re: BizTalk EDI and AS2 Anyone successful with batching?

cholliday

When you say "promote properties on the Xml message" are you saying I simply need to add a reference to the EDI.BaseArtifacts assembly and then assign values to the named properties above

Or are you saying I need to add the properties from the EDI.Properties schema to one of my existing schemas.

Could you possibly elaborate a bit more on this idea

Thanks,

Chris





Re: BizTalk EDI and AS2 Anyone successful with batching?

Arnab Ghosh - MSFT

Did you start getting this error after you deployed the schema in the EDI Application

This error is thrown when either a schema cannot be located or multiple instances of the same schema has been deployed - pls. ensure that you have the pertinent schema deployed only once and try restartin the suspended batching orchestration.

If the orchestration again gets suspended - try to see if you can successfuly serialize a EDI msg using the same party you are using for batching.

I'd have a clearer idea on what might be missing from your configuration based on your findings.

Thanks,

Arnab.

I am receiving below XLANG error inside batching orchestration for EDIFACT transaction

Uncaught exception (see the 'inner exception' below) has suspended an instance of service 'Microsoft.BizTalk.Edi.BatchingOrchestration.BatchingService(2a16c595-614b-9563-c13f-ebd20e4a6154)'.

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: 4a87b23a-421f-4f7c-b2a4-bcf8f867e378

Shape name: DecideIfValidInstance

ShapeId: 41404d24-4eb2-4653-9350-c2c2828c235c

Exception thrown from: segment 26, progress 25

Inner exception: Could not find a matching schema deployed for doctype name:http://schemas.microsoft.com/BizTalk/EDI/EDIFACT/2006#EFACT_D96A_ORDERS

Exception type: ArgumentException

Source: Microsoft.BizTalk.Edi.MessageCore

Target Site: Microsoft.BizTalk.Component.Interop.DocumentSpec GetDocumentSpec(System.String)

The following is a stack trace that identifies the location where the exception occured

at Microsoft.BizTalk.Edi.MessageCore.BtsSchema.GetDocumentSpec(String docType)

at Microsoft.BizTalk.Edi.MessageCore.BtsSchema.get_SchemaCollection()

at Microsoft.BizTalk.Edi.MessageCore.EdiSchemaToolSet.ValidateInstance(SchemaInstanceInfo vInstanceInfo, Boolean isRuntime, Boolean bIsCharCountBased)

at Microsoft.BizTalk.Edi.BatchHelper.BatchValidator.ValidateBatch(XLANGMessage xMsg, BatchConfiguration bc, BatchElementSorter sorter)

at Microsoft.BizTalk.Edi.BatchingOrchestration.BatchingService.segment26(StopConditions stopOn)

at Microsoft.XLANGs.Core.SegmentScheduler.RunASegment(Segment s, StopConditions stopCond, Exception& exp)

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

But EFACT_D96A_ORDERS schema is already deployed in my application and its working fine with the EDI receive pipeline. Also i tried deploying schema to EDI Application.. but no luck.. Any inputs





Re: BizTalk EDI and AS2 Anyone successful with batching?

Arnab Ghosh - MSFT

They should be available from the connect site from where you would have downloaded the BizTalk 2006 R2 bits - I have pasted the url for your ref:

https://connect.microsoft.com/programdetails.aspx ProgramDetailsID=1320

Thanks,

Arnab.

Thanks for these instructions!

Can you provide a URL to the new documentation The section you are describing above does not exist in my documents.

Thanks,

Chris





Re: BizTalk EDI and AS2 Anyone successful with batching?

Arnab Ghosh - MSFT

I referred to assigning values to those named EDI properties in your workflow orchestration.

Thanks,

Arnab.

cholliday wrote:

When you say "promote properties on the Xml message" are you saying I simply need to add a reference to the EDI.BaseArtifacts assembly and then assign values to the named properties above

Or are you saying I need to add the properties from the EDI.Properties schema to one of my existing schemas.

Could you possibly elaborate a bit more on this idea

Thanks,

Chris





Re: BizTalk EDI and AS2 Anyone successful with batching?

cholliday

Arnab, I can't see any documentation (or downloadable artifacts) at the link you posted. Perhaps I dont have the correct access roles or something.

I persist in this pursuit because the instructions you provided dont seem to work. I get the common error that no subscribers were found for the message when I assign the values against the messages in orchestration. Is there any additional info you can provide on this

Thanks,


Chris





Re: BizTalk EDI and AS2 Anyone successful with batching?

Arnab Ghosh - MSFT

Chris, are you using the RC bits and associated documentation of BizTalk Server 2006 R2 from the connect site (the url i had referenced in my earlier mail) I was told the connect site would have the appropriate drop of the documentation - let me verify that.

On your "no subscriptions error" - did you start batching (through the receiver batch property page) for the appropriate encoding (EDIFACT or X12) for the pertinent party (the partyID you are promoting in your workflow orchestration)

To verify that you are promoting the appropriate property, you can create a send port and subcribe to a msg with the EDI.ToBeBatched = true and EDI.DestinationPartyID = <PartyId (an integer)> and EDI.EncodingType = 0 or 1 (depending on X12 or EDIFACT respectively). If the send port can pick up the msg created by your workflow orchestration I would check if the appropriate batching orchestration instance is active through the presence of the GUID on the pertinent receiver batch property page.

Your response would help me narrow this down.

Thanks,

Arnab.

cholliday wrote:

Arnab, I can't see any documentation (or downloadable artifacts) at the link you posted. Perhaps I dont have the correct access roles or something.

I persist in this pursuit because the instructions you provided dont seem to work. I get the common error that no subscribers were found for the message when I assign the values against the messages in orchestration. Is there any additional info you can provide on this

Thanks,


Chris





Re: BizTalk EDI and AS2 Anyone successful with batching?

cholliday

I am using 3.6.1230. The only download I can see is the Biztalk 2006 R2 Beta 2. Is this correct





Re: BizTalk EDI and AS2 Anyone successful with batching?

Arnab Ghosh - MSFT

Yep, I have confirmed Beta 2 is the latest build available through the connect site.

cholliday wrote:
I am using 3.6.1230. The only download I can see is the Biztalk 2006 R2 Beta 2. Is this correct