[英]Dynamics 365 Online - Error updating opportunity from external batch after v9 update
Few days ago we had to update our Dynamics online environment from v8.2 to v9. 几天前,我们不得不将Dynamics在线环境从v8.2更新到v9。
We have a batch that's running everyday that imports ~100 records (of 4 different entities). 我们有每天运行的一批,可导入约100条记录(来自4个不同实体)。 In those records some are imported as new ones, the others are imported as updates.
在那些记录中,有些作为新记录导入,其他作为更新导入。
Everything was working fine until the update to v9 version, now the update of opportunities fail on save with this error 一切正常,直到更新到v9版本,现在机会更新在保存时失败,并出现此错误
ErrorCode: 0x80048218
Message: You must provide a name or select a role for both sides of this connection.; [Microsoft.Dynamics.Sales.Plugins: Microsoft.Dynamics.Sales.Plugins.PreOpportunityUpdate]
[a13c2831-776b-e611-80ec-00155dc14c00: Update of opportunity]
Strangest part is that the error happens only updating opportunities (creating new ones or doing any other operations doesn't seems to be affected) and just from code, if i try to update those record directly from CRM, using the same user, I don't have any problem. 最奇怪的是,该错误仅发生在更新机会(创建新机会或执行任何其他操作似乎没有受到影响)并且仅从代码发生的情况下,如果我尝试使用同一用户直接从CRM更新这些记录,我不会没问题。
UPDATE 1 更新1
I found out that the problem comes out just when i edit parentcontactid
with both null
value, again from UI I can create/edit an opportunity leaving that field blank. 我发现问题出在我同时使用两个
null
值编辑parentcontactid
时,再次从UI中,我可以创建/编辑机会,将该字段留空。
Based on error description you provided - this Microsoft's bug. 根据您提供的错误描述-此Microsoft的错误。 Here is what I recommend to do: 1. Disable (or change step to Async execution) following standard plugin - Microsoft.Dynamics.Sales.Plugins.PreOpportunityUpdate 2. Open a ticket with Microsoft because this is their OOB plugin so they will have to fix the code.
我建议这样做:1.在标准插件Microsoft.Dynamics.Sales.Plugins.PreOpportunityUpdate之后禁用(或将步骤更改为“异步执行”)2.与Microsoft打开票证,因为这是他们的OOB插件,因此他们必须修复代码。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.