Axapta AX 2009:税务报告导致AOS崩溃

Axapta AX 2009:税务报告导致AOS崩溃,axapta,dynamics-ax-2009,x++,Axapta,Dynamics Ax 2009,X++,在税务报告报告中,有一种方法称为printUndeclaredTaxPeriods,代码如下: /// <summary> /// This method will retrieve if there are any transactions that happened outside /// the date range specified for the report. /// </summary> void printUndeclaredTaxPeriods() {

税务报告
报告中,有一种方法称为
printUndeclaredTaxPeriods
,代码如下:

/// <summary>
/// This method will retrieve if there are any transactions that happened outside
/// the date range specified for the report.
/// </summary>
void printUndeclaredTaxPeriods()
{

    TaxReportPeriod     taxReportPeriod;
    TaxTrans            taxTrans_local;
    ;

    while select taxReportPeriod
    where taxReportPeriod.FromDate < fromDate
    exists join taxTrans_local
        where taxTrans_local.TransDate      >= taxReportPeriod.FromDate
        &&    taxTrans_local.TransDate      <= taxReportPeriod.ToDate
        &&    taxTrans_local.TaxPeriod      == taxReportPeriod.TaxPeriod
        &&    taxTrans_local.TaxRepCounter  == taxReportPeriod.VersionNum
    {        
         //element.send(taxReportPeriod);          
    }
}
//
///如果在外部发生任何事务,则此方法将检索
///为报告指定的日期范围。
/// 
作废打印未声明的TaxPeriods()
{
纳税报告期纳税报告期;
TaxTrans TaxTrans_local;
;
同时选择taxReportPeriod
其中taxReportPeriod.FromDate=taxReportPeriod.FromDate

&&taxTrans_local.TransDate对报告有任何定制吗

然后从移除它开始

否则,将字段从
TaxReportPeriodTrans
正文移动到可编程部分。 每次向后移动一个,直到崩溃

这个问题在针对AX 2009的修补程序汇总2中或独立知识库文章中得到了解决。

将菜单项\菜单项\输出\ TaxReporting更改为在客户端而不是服务器上运行是一种解决方法


引用。

您使用的修补程序版本是什么?我没有这个问题,并且报表对象上有一个SYP层。我当前正在运行修补程序汇总7。我不确定,但我不是安装人。我可以在媒体安装中看到,有DynamicsAX2009-KB956568和SP 1 packageNope,根本没有自定义。我不会退出确定你的观点是什么,这意味着我必须在主体中找到该方法的对象并将其移动到prog.section?否。移动报表控件(报表字段)或删除它们。太好了!我删除了节taxReportPeriod及其所有子项,从一个方法到另一个对象,最后一步是在printUndeclaredTaxPeriods()处的未注释行。重新编译,重新运行报告及其工作。谢谢。这只是我在社区论坛上的懒惰检查。应该从第一次就知道这一点。