Guys,
We have a situation that pops up periodically in our production area where the LaborDtl record is not updated when the folks process a unit. It happens maybe once every 10 days or so and we do nothing to fix it but the next day, or later the same day, it works again. I’m not sure if I have a hardware, software or maybe even a network issue. Just thought I would ask and see if any of you have had issues such as this. The following is a snippet of the code. Can any of you see anything wrong with it or know of any measures I can take to improve this?
var LaborHedSeq = Convert.ToInt32(laborList.Tables[0].Rows[0][“LaborHedSeq”]);
oTrans.PushStatusText(“Checking for Active Transaction.”, false);
var labor = WCFServiceSupport.CreateImpl((Session)oTrans.Session, ImplBase.UriPath);
var laborDS = labor.GetByID(LaborHedSeq);
labor.StartActivity(LaborHedSeq, “P”, laborDS);
labor.DefaultJobNum(laborDS, jobNum);
labor.DefaultOprSeq(laborDS, Convert.ToInt32(oprSeq), out msg);
labor.EndActivity(laborDS);
labor.DefaultLaborQty(laborDS, currentQty, out msg);
oTrans.PushStatusText(“Saving production activity.”, false);
labor.Update(laborDS);
The labor.Update(laborDS) is what is timing out.