简体   繁体   English

使用InventOhHandService更新[ax2012]

[英]Update using InventOhHandService [ax2012]

I am trying to integrate Dynamics ax 2012 to a third party application using AIF services. 我正在尝试使用AIF服务将Dynamics ax 2012集成到第三方应用程序。 The service in question is the out of the box InventOnHandService to which I have added the update method. 有问题的服务是开箱即用的InventOnHandService,我已向其中添加了update方法。

更新文件服务

InventoryOnHandService

However then when I try to set up the service on the inbound port as such: 但是,当我尝试在入站端口上像这样设置服务时:

在此处输入图片说明

I get the following error. 我收到以下错误。

错误记录

I followed this tutorial as a guideline. 我按照教程作为指导。 I have also tried creating a new entry point on a InventInventoryOnHandServiceUpdate Permission I created which did not yield to a better outcome. 我还尝试过在我创建的InventInventoryOnHandServiceUpdate权限上创建一个新的入口点,但该入口点没有得到更好的结果。 I have also try recompling the entire project and re-generating the full CIL. 我还尝试重新编译整个项目并重新生成完整的CIL。

Any help would be greatly appreciated as I am still relatively new with Dynamics and it's limited documentation is not doing the trick for my current issue. 任何帮助将不胜感激,因为我还是Dynamics的新手,而且文档有限,因此无法解决当前问题。

Thanks 谢谢

AIF Document service are used to do CRUD operation on Ax tables. AIF文档服务用于对Ax表执行CRUD操作。 InventSum table is summary table storing Inventory onhand for all inventory transactions happened in Ax system and that used to get updated when ever CUD operations happens on Inventory Transactions table. InventSum表是汇总表,用于存储Ax系统中发生的所有库存事务的现有库存,并用于在库存事务表上发生任何CUD操作时进行更新。 It is not advised to update both InventSum and InventTrans directly. 不建议直接更新InventSum和InventTrans。 Those tables get updated through other source documents like sales line, purch line etc. So InventoryOnHand service should only be used for reading the available onhand information. 这些表通过其他源文档(例如销售线,采购线等)进行更新。因此InventoryOnHand服务仅应用于读取可用的现有信息。 Please find similar question in dynamics community too. 请在动力学社区中也找到类似的问题。 http://community.dynamics.com/ax/f/33/t/101203 http://community.dynamics.com/ax/f/33/t/101203

Your question is regarding the error on enabling update operation on inventory onhand service and my advise is not to add CUD operation to onhand service. 您的问题是关于在库存库存服务上启用更新操作的错误,我的建议是不要在库存服务上添加CUD操作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM