Friday, November 8, 2013

Parameter _reportName cannot be null or empty.

Recently came over a problem with running SSRS reports from AX 2012 (R2). This infolog error message was presented immediately when trying to run a report:

Parameter _reportName cannot be null or empty.
The [CLASSNAME].[METHODNAME]() reflection API could not create and return the SrsReportNameAttribute object.

In this specific case it looks like an earlier full compile did not finish.

If you encounter this problem I would suggest that you first compile the class mentioned in the error message and see if this solves the problem. Then you should schedule for a new full compile of the application.

4 comments:

  1. Thank you! Was an interrupted compile for me as well.

    ReplyDelete
  2. It really worked for me....Thanks for mentioning that in error log anyone can find which class we need to compile. But we need to use compile forward option for that class.

    ReplyDelete