Wondering if anyone can see why i am getting the error "Row not found or changed." when i perform this LINQ query.
The row is there and the data is being picked up ok, but when it comes to update i am getting the error mentioned above.
aboDataDataContext dc = new aboDataDataContext();
var orders = dc.GetOrderToAcknowledges;
//Get the TWE Order ID and Store in DB.
foreach (var order in orders)
{
int orderId = dc.amzOrders.Single(o => o.amzOrderId == order.amzOrderId).id;
DateTime now = DateTime.Now;
GetTWEOrderID(orderId, now.ToString());
amzOrder orderUpdate = dc.amzOrders.Single(o => o.id == orderId);
orderUpdate.acknowledged = true;
orderUpdate.lastUpdate = Convert.ToDateTime(now);
dc.SubmitChanges();
}