Re: BizTalk BAM issue

Home Page Forums BizTalk 2004 – BizTalk 2010 BizTalk BAM issue Re: BizTalk BAM issue

#20285

 Thank you Richard,

I followed that link, however I dont see any record under the “related activities” on BAM. I used the msgID as ActivityID for parent activiy and used that in AddRelatedActivity.

I have the following before loop start:

msgID = inputMsg(BTS.MessageID);

Microsoft.BizTalk.Bam.EventObservation.OrchestrationEventStream.BeginActivity(“Process Activity”,msgID);

In side  the loop, I have following coding

Microsoft.BizTalk.Bam.EventObservation.OrchestrationEventStream.BeginActivity(“ProcessLoopActivity”,singleInvoiceMsg.InvoiceNumber);

Microsoft.BizTalk.Bam.EventObservation.OrchestrationEventStream.UpdateActivity(“ProcessLoopActivity”,singleInvoiceMsg.InvoiceNumber,”Begin”,System.DateTime.Now,”DocID”,msgID);

After mapping donw I have following

Microsoft.BizTalk.Bam.EventObservation.OrchestrationEventStream.UpdateActivity(“ProcessLoopActivity”,singleInvoiceMsg.InvoiceNumber,”EndSuccess”,System.DateTime.Now);

Microsoft.BizTalk.Bam.EventObservation.OrchestrationEventStream.AddRelatedActivity(“ProcessLoopActivity”,singleInvoiceMsg.InvoiceNumber,”Process Activity”,msgID);

Microsoft.BizTalk.Bam.EventObservation.OrchestrationEventStream.EndActivity(“ProcessLoopActivity”,singleInvoiceMsg.InvoiceNumber);

 

I have map for both acivity as well. I deployed them too. I have seprate view for both just for testing purpose. I could see records under the ProcessActivityLoop view but not under the “Process Activity’s related actvity section.”

Am I doing anything wrong here?