【WEBAPI】供应商分配接口报错:正在中止线程

栏目:云星空知识作者:金蝶来源:金蝶云社区发布:2024-09-23浏览:1

【WEBAPI】供应商分配接口报错:正在中止线程

【案例分享】

    最近收到客户提单反馈,供应商集中分配时,分配接口调用报错:正在中止线程!


以下为当时的分配接口调用JSON:

{
  "PkIds": "174411836",
  "TOrgIds": "100006,100008,100016,100015,100012,100018,100010,100021,100009,100020,100019,7391445,100011,133524,100013,138489,190884,214571,394221,394222,469921,190883,469920,589276,813209,472319,472320,472321,472322,472323,797137,812482,812484,797146,1301092,1508913,3838119,1684715,895439,1833128,1834421,1833775,1834422,1833126,1833776,1833130,1833129,1833127,1164589,704460,1022131,4309317,2408243,4309323,4309324,4309325,4309322,4309318,4309319,4309320,4309333,4309332,4309334,4309330,4309327,4309326,4309331,4309328,4309329,5766585,5769718,5769719,5769720,5769721,5769723,5769724,5769722,6562612,6562613,6562614,7383075,7383068,7383069,7383070,7383067,7383073,7383074,7383071,7383072,6495038,7245119,7245120,7245124,7245126,7245122,7245127,7245131,7245123,7245128,7245129,7245125,7245130,7245121,7391428,7391432,7391429,7391436,7391438,7391441,7391437,7391430,7391434,7391444,7391435,7391439,7391431,7391440,7391442,7391433,7391443,6484387,8032337,8125437,8125432,8125434,8125438,8125871,8032338,8125436,8098420,8098421,8098423,8125433,8108795,8098419,8098422,8105338,8125435,8109874,8127888,8114341,8114340,8109440,10916911,10916912,10916915,10916918,10781208,10916916,10916922,10916913,10916923,10916921,10916917,10916920,10916924,10916919,10916914,11130505,11130507,11130506,13067928,13067927,13067926,13067925,12277308,13067923,13067924,12095980,13516194,13516195,15769462,25404024,25404025,25404026,40460321,40460322,60171389,10916925,71645113,71645122,71645121,71645120,71645119,71645118,71645117,71645116,71645115,71645114,72021327,47866648,79791330,79791326,79791325,79791324,79791329,79791328,79791327,79790571,79790556,80382196,83559830,83572149,83571848,83571931,83567085,83567084,87651234,87651561,87651560,87682634,87682818,87686666,103571923,103573290,103583227,103668766,103668858,103908112,60125919,111166112,117213298,111166114,111271861,123183052,123839806,123841098,123841101,123841097,128682744,131930123,131930122,134193929,139832603,139832706,139832708,139832707,139832715,139832718,139832720,139832719,139846843,98703294,146416772,146418256,146418697,146423234,146423233,146423232,146417756,146422647,146421791,146989619,146989621,147030454,147049660,147039451,147070077,147091139,147080286,146509871,151825357,152554245,152556497,152556496,152556495,152556494,152556493,152556492,152552718,152552719,154365680,154893517,154893518,154940409,155073952,155073953,155073950,157520453,158214555,158214556,158250581,159071809,159336080,159336015,160221518,160221520,161774920,161946849,161946851,163890205,161933358,164954744,165850437,165850435,165849549,165849548,165849543,165849547,165849545,165880499,165850438,165945596,166772394,166772408,166772413,166772414,166772409,166771972,166772346,166833119,117277930,169039092,169601985,169601986,169601987,169601988,169601993,169601994,169601996,169601989,169602000,169601998,169601999,169601982,169601995,169650051,169601983,169602001,170896062,170895048,170896061,172911850,173140491,174346981,174348076,174354356,174357178,174358207,174358209,174358217,174358218,174358219,174358212,174358215,174358216,174355993,174358208",
  "IsAutoSubmitAndAudit": "true"
}

【改进建议】

1、可以从JSON中看出,分配接口里集中分配了300多的组织,量太大了。可以考虑分批(30-50个组织)轮训处理,否则单次分配接口调用的处理量接口反应不过来,有失败的风险

2、JSON中还引用了

"IsAutoSubmitAndAudit": "true"

该参数实现的是分配后,分配组织的供应商自动提交审核,该参数联动操作非常多,容易出问题。

可以考虑停用该参数,分配后,拆分调用分配组织供应商的保存-提交-审核接口,三步走,接口调用更清晰!


【参考资料】

【WEBAPI】采购入库单、采购退料单的保存接口执行时,频繁死锁问题 (kingdee.com)

保存接口自动提交和审核 (kingdee.com)




【WEBAPI】供应商分配接口报错:正在中止线程

【案例分享】 最近收到客户提单反馈,供应商集中分配时,分配接口调用报错:正在中止线程!以下为当时的分配接口调用JSON:{ "PkIds": ...
点击下载文档
确认删除?
回到顶部
客服QQ
  • 客服QQ点击这里给我发消息