AX 2012 R2 Sales Invoice Report Error

Hello,

i am facing a problem where i am receiving X++ code issue when I am trying to print a sales invoice.

the error is in the Classe “SalesInvoiceController” on line 19 which is:

reportName = ssrsReportStr(SalesInvoice, ReportTH);

the error is the following: on ReportTH… The operand of the method is not an element.

below is a print screen of the alert message:

3386.err.png

it is really weird because the reports were working just fine, everything happened after I compiled into .NET Framework CIL.

Any ideas?

Thank you.

If you open SalesInvoice report, does it have ReportTH design? Does the report build without any error?

Don’t bother running the controller until it compiles.

Hello Martin,

What do you mean by SalesInvoice Report… you mean in the AOT>>SSRS Reports?? SalesInvoice?

If yes, under the Designs i have the following >>Report >>Permissions: Tables/Server Methods/Associated Forms

Yes, the report. Open it in Visual Studio, review designs and rebuild the project.

If you want to explicitly specify that only this report design should be printed then you can use following code directly.

controller.parmReportName(ssrsReportStr(SalesInvoice,ReportTH));

Provided you must have that report design in your report.