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

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());
 
Author: Sandro Pereira

Sandro Pereira lives in Portugal and works as a consultant at DevScope. In the past years, he has been working on implementing Integration scenarios both on-premises and cloud for various clients, each with different scenarios from a technical point of view, size, and criticality, using Microsoft Azure, Microsoft BizTalk Server and different technologies like AS2, EDI, RosettaNet, SAP, TIBCO etc. He is a regular blogger, international speaker, and technical reviewer of several BizTalk books all focused on Integration. He is also the author of the book “BizTalk Mapping Patterns & Best Practices”. He has been awarded MVP since 2011 for his contributions to the integration community.

Leave a Reply

Your email address will not be published. Required fields are marked *

BizTalk360
BizTalk Server

Over 500+ customers across
30+ countries depend on BizTalk360

Learn More
Serverless360
Azure

Manage and monitor serverless
components effortlessly

Learn More
Atomicscope
Business Users

Monitor your Business Activity in iPaaS
or Hybrid integration solutions

Learn More

Back to Top