BAM – Why are the times for my tracking data in the BAM portal incorrect?

Posted: August 18, 2010 in BizTalk
Tags: , ,

BAM captures milestones for objects derived from Microsoft.BizTalk.Bam.EventObservation.EventStream in Coordinated Universal Time (UTC) format. When you send date/times to BAM using the APIs, they are received in the format sent with no conversion to UTC format.

If you use local time, the times will not be converted to UTC format and will be out of sequence relative to UTC times that are recorded.

To solve this problem, modify your data to make it conform to UTC format.

BAM API Sample:

Global.es.BeginActivity("BAMApiPo",poid.ToString());

Global.es.UpdateActivity("BAMApiPo",poid.ToString(),
   "Received",DateTime.UtcNow,
   "Product",xePO.SelectSingleNode("Product").InnerText,
   "Amount",xePO.SelectSingleNode("Price").InnerText);

Global.es.UpdateActivity("BAMApiPo",poid.ToString(),
   "Packaged",DateTime.UtcNow);

Global.es.EndActivity("BAMApiPo",poid.ToString());

Tags: BizTalk | BAM | Errors and Warnings, Causes and Solutions

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