Setiaji
Setiaji

Reputation: 106

AX 2009 : TaxReporting report make AOS crash

In the TaxReporting report, there is a method called printUndeclaredTaxPeriods, code below:

/// <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);          
    }
}

Everytime this report run, AOS crash.

When I debugged I found that line I commented causing crash.

How can I avoid this process or maybe any explanation for this case so I know what should I do for AOS crash?

Upvotes: 3

Views: 565

Answers (2)

ian_scho
ian_scho

Reputation: 6056

The issue is solved in hotfix rollup 2 for AX 2009, or in the independent knowledge base article KB 969478.  

Changing the menu item \Menu Items\Output\TaxReporting to run on client rather than server is a workaround.

Quotes from here.

Upvotes: 2

Jan B. Kjeldsen
Jan B. Kjeldsen

Reputation: 18051

Any customization to the report?

Then start by removing that.

Otherwise move the fields form the TaxReportPeriodTrans body to a programmable section. The move back one at a time until it crash.

Upvotes: 0

Related Questions