Function SalesTable2LineField.lineUpdateDescription has been used incorrectly.

huangapple go评论68阅读模式
英文:

Function SalesTable2LineField.lineUpdateDescription has been used incorrectly

问题

Dynamics AX 2012中,当尝试更新字段DlvMode的值或在销售订单中添加新的交货地址(通过标题视图),我一直收到以下错误信息:

> 函数SalesTable2LineField.lineUpdateDescription已被错误使用

在这个方法或这个类中没有定制。

英文:

In Dynamics AX 2012, when trying to update the value of the field DlvMode or adding a new delivery address in the sales order (through the Header view), I keep getting this error:

> Function SalesTable2LineField.lineUpdateDescription has been used
> incorrectly

There's no customization in this method or this class.

答案1

得分: 5

这是可以在15分钟内通过拥有开发人员来调试的东西。我猜想你正在使用以下其中一个国家代码

  1. AT,BE,CZ,DK,EE,FI,FR,DE,HU,IE,IT,LV,LT,NL,PL,ES,SE,GB,RU,MYSalesTable_W
  2. BRSalesTable_BR
  3. INSalesTable_IN

\Classes\SalesTable2LineField\lineUpdateDescription的最末尾,在throw error...行之前立即添加以下内容:

info(strFmt("Offending table is %1 (%2)", tableId2name(tableId), tableId));

如果仅仅添加这个不起作用,你还应该添加一个断点来进一步解决问题。

然后重复操作,你将知道是哪个表格出了问题。这有可能只是微软的一个错误,或者如果\Forms\SalesTable已被修改,也可能是那个原因。你只需要进行调试。

Function SalesTable2LineField.lineUpdateDescription has been used incorrectly.

英文:

This is something that could be debugged in 15 minutes if you had a developer. My guess would be that you are using one of these country codes:

  1. AT,BE,CZ,DK,EE,FI,FR,DE,HU,IE,IT,LV,LT,NL,PL,ES,SE,GB,RU,MY (SalesTable_W)
  2. BR (SalesTable_BR)
  3. IN (SalesTable_IN)

In \Classes\SalesTable2LineField\lineUpdateDescription at the very end, immediately above the throw error... line add this:

> info(strFmt("Offending table is %1 (%2)", tableId2name(tableId), tableId));

You should also add a breakpoint if that alone doesn't help and figure it out.

Then repeat the operation, and you will know the table. It's possible it's just a Microsoft bug or if \Forms\SalesTable has been modified, it could be that. You just need to debug it.

Function SalesTable2LineField.lineUpdateDescription has been used incorrectly.

huangapple
  • 本文由 发表于 2020年1月6日 19:59:04
  • 转载请务必保留本文链接:https://go.coder-hub.com/59611725.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定