shr同步cloud,岗位、部门、人员新增后同步报错
金蝶云社区-光着屁股上街
光着屁股上街
0人赞赏了该文章 751次浏览 未经作者许可,禁止转载编辑于2016年10月13日 16:08:42

shr同步cloud,之前的基础数据都已经同步成功到cloud,后面HR部门更新了数据,岗位、部门、人员新增后同步报错。
(根组织节点 100这个就开始报错,其他的资料都是依赖这个上级组织来设置的,所以肯定错误)

正确的逻辑应该是根据编码作为唯一识别识别码,用新数据覆盖旧数据才对吧?
请问是不是哪里没设置对呢?

报错日志如下:

2016-10-13 15:47:20,507 [11] INFO - AbstractAccepter的线程准备SI_07
2016-10-13 15:47:20,570 [11] INFO - AbstractAccepter的线程准备SI_07
2016-10-13 15:47:20,726 [11] INFO - AbstractAccepter的线程准备SI_07
2016-10-13 15:47:21,085 [11] INFO - AbstractAccepter的线程准备SI_07
2016-10-13 15:47:21,116 [11] INFO - AbstractAccepter的线程准备SI_07
2016-10-13 15:47:21,672 [11] INFO - AbstractAccepter的线程准备SI_07
2016-10-13 15:47:22,214 [11] INFO - AbstractAccepter的线程准备SI_07
2016-10-13 15:47:22,214 [11] INFO - AbstractAccepter的线程准备SI_07
2016-10-13 15:47:23,228 [12] INFO - AbstractAccepter的线程开始SI_07
2016-10-13 15:47:23,290 [28] DEBUG - SI_07http://localhost/K3CloudServiceInterface_07/json/syncreply/
2016-10-13 15:47:23,290 [28] DEBUG - http://localhost/K3CloudServiceInterface_07/json/syncreply/BD_Department_Save
2016-10-13 15:47:23,337 [28] DEBUG - {
"ErrorCode": "500",
"IsSuccess": false,
"Errors": [
{
"Message": "编码为“100”的部门,组织内编码唯一"
},
{
"Message": "已存在'喜多多集团有限公司'部门!"
}
]
}
2016-10-13 15:47:23,337 [28] INFO - SI_07DealWithError:@Keys:BD_Department||100||Save;depondents:ORG_Organizations||100||View;
2016-10-13 15:47:23,337 [28] DEBUG - NotExistKey:BD_Department||100||Save
2016-10-13 15:47:23,337 [28] DEBUG - NotExistKey:BD_Department||100||SubmitAndAudit
2016-10-13 15:47:23,337 [28] INFO - SI_07Fail@Keys:BD_Department||1001||Save;depondents:ORG_Organizations||100||View,BD_Department||100||Save,BD_Department||100||SubmitAndAudit;
2016-10-13 15:47:23,353 [28] DEBUG - NotExistKey:BD_Department||1001||Save
2016-10-13 15:47:23,353 [28] DEBUG - NotExistKey:BD_Department||1001||SubmitAndAudit
2016-10-13 15:47:23,353 [28] INFO - SI_07Fail@Keys:BD_Department||100101||Save;depondents:ORG_Organizations||100||View,BD_Department||1001||Save,BD_Department||1001||SubmitAndAudit;
2016-10-13 15:47:23,353 [28] DEBUG - NotExistKey:BD_Department||1001||Save
2016-10-13 15:47:23,353 [28] DEBUG - NotExistKey:BD_Department||1001||SubmitAndAudit
2016-10-13 15:47:23,353 [28] INFO - SI_07Fail@Keys:BD_Department||100102||Save;depondents:ORG_Organizations||100||View,BD_Department||1001||Save,BD_Department||1001||SubmitAndAudit;
2016-10-13 15:47:23,368 [28] DEBUG - NotExistKey:BD_Department||100102||Save
2016-10-13 15:47:23,368 [28] DEBUG - NotExistKey:BD_Department||100102||SubmitAndAudit
2016-10-13 15:47:23,368 [28] INFO - SI_07Fail@Keys:BD_Department||10010201||Save;depondents:ORG_Organizations||100||View,BD_Department||100102||Save,BD_Department||100102||SubmitAndAudit;
2016-10-13 15:47:23,384 [28] DEBUG - NotExistKey:BD_Department||100102||Save
2016-10-13 15:47:23,384 [28] DEBUG - NotExistKey:BD_Department||100102||SubmitAndAudit
2016-10-13 15:47:23,384 [28] INFO - SI_07Fail@Keys:BD_Department||10010202||Save;depondents:ORG_Organizations||100||View,BD_Department||100102||Save,BD_Department||100102||SubmitAndAudit;
2016-10-13 15:47:23,384 [28] DEBUG - NotExistKey:BD_Department||1001||Save
2016-10-13 15:47:23,384 [28] DEBUG - NotExistKey:BD_Department||1001||SubmitAndAudit
2016-10-13 15:47:23,384 [28] INFO - SI_07Fail@Keys:BD_Department||100103||Save;depondents:ORG_Organizations||100||View,BD_Department||1001||Save,BD_Department||1001||SubmitAndAudit;
2016-10-13 15:47:23,399 [28] DEBUG - NotExistKey:BD_Department||100103||Save
2016-10-13 15:47:23,399 [28] DEBUG - NotExistKey:BD_Department||100103||SubmitAndAudit
2016-10-13 15:47:23,399 [28] INFO - SI_07Fail@Keys:BD_Department||10010301||Save;depondents:ORG_Organizations||200||View,BD_Department||100103||Save,BD_Department||100103||SubmitAndAudit;
2016-10-13 15:47:23,415 [28] DEBUG - NotExistKey:BD_Department||100103||Save
2016-10-13 15:47:23,415 [28] DEBUG - NotExistKey:BD_Department||100103||SubmitAndAudit
2016-10-13 15:47:23,415 [28] INFO - SI_07Fail@Keys:BD_Department||10010302||Save;depondents:ORG_Organizations||300||View,BD_Department||100103||Save,BD_Department||100103||SubmitAndAudit;
2016-10-13 15:47:23,415 [28] DEBUG - NotExistKey:BD_Department||100103||Save
2016-10-13 15:47:23,415 [28] DEBUG - NotExistKey:BD_Department||100103||SubmitAndAudit
2016-10-13 15:47:23,415 [28] INFO - SI_07Fail@Keys:BD_Department||10010303||Save;depondents:ORG_Organizations||400||View,BD_Department||100103||Save,BD_Department||100103||SubmitAndAudit;
2016-10-13 15:47:23,431 [28] DEBUG - NotExistKey:BD_Department||1001||Save
2016-10-13 15:47:23,431 [28] DEBUG - NotExistKey:BD_Department||1001||SubmitAndAudit
2016-10-13 15:47:23,431 [28] INFO - SI_07Fail@Keys:BD_Department||100104||Save;depondents:ORG_Organizations||200||View,BD_Department||1001||Save,BD_Department||1001||SubmitAndAudit;
2016-10-13 15:47:23,446 [28] DEBUG - NotExistKey:BD_Department||100||Save
2016-10-13 15:47:23,446 [28] DEBUG - NotExistKey:BD_Department||100||SubmitAndAudit
2016-10-13 15:47:23,446 [28] INFO - SI_07Fail@Keys:BD_Department||1002||Save;depondents:ORG_Organizations||100||View,BD_Department||100||Save,BD_Department||100||SubmitAndAudit;