英文:
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分钟内通过拥有开发人员来调试的东西。我猜想你正在使用以下其中一个国家代码:
AT,BE,CZ,DK,EE,FI,FR,DE,HU,IE,IT,LV,LT,NL,PL,ES,SE,GB,RU,MY
(SalesTable_W
)BR
(SalesTable_BR
)IN
(SalesTable_IN
)
在\Classes\SalesTable2LineField\lineUpdateDescription
的最末尾,在throw error...
行之前立即添加以下内容:
info(strFmt("Offending table is %1 (%2)", tableId2name(tableId), tableId));
如果仅仅添加这个不起作用,你还应该添加一个断点来进一步解决问题。
然后重复操作,你将知道是哪个表格出了问题。这有可能只是微软的一个错误,或者如果\Forms\SalesTable
已被修改,也可能是那个原因。你只需要进行调试。
英文:
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:
AT,BE,CZ,DK,EE,FI,FR,DE,HU,IE,IT,LV,LT,NL,PL,ES,SE,GB,RU,MY
(SalesTable_W
)BR
(SalesTable_BR
)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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论