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());