Quick Book Error You and sam working on this at the same time

早过忘川 提交于 2019-12-11 05:59:11

问题


I am trying to update the data in quick book while updating i am getting exception as follows

"You and sam were working on this at the same time. sam finished before you did, so your work was not saved." I have attached the screenshot for your reference. Please let me know if you need any detailed explanation about this issue. Any help would be appreciated.

Code

  oBillHeader.VendorId = new IdType() { idDomain = idDomainEnum.QBO, Value = vendorID };
  oBillHeader.VendorName = vendorNameVal;
  oBill.Header = oBillHeader;
  oBill.Line = oBillLineList.ToArray();
  oBill.Id = new IdType { idDomain = idDomainEnum.QBO, Value = Convert.ToString(ViewState["ReponseBillId"]) };
  oBill.SyncToken = "2";
  var oNewBill = service.Update(oBill);

Image:


回答1:


Please read the latest sync token of the object and use the same in the update query.

Relevant docs on SyncToken values:

  • https://developer.intuit.com/docs/0025_quickbooksapi/0050_data_services/v2/0400_quickbooks_online/0200_key_concepts

Thanks



来源:https://stackoverflow.com/questions/19403963/quick-book-error-you-and-sam-working-on-this-at-the-same-time

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!