A few days ago I was modifying the FreeTextInvoice report that we have customized.
Everything was working fine and suddenly from one day to the next it started giving the following error:
System.NullReferenceException: 'Object reference not set to an instance of an object.'
This exception was originally thrown at this call stack:
[External Code]
Dynamics.AX.Application.SrsReportProviderMetadata.`getReportSchema(Dynamics.AX.Application.SrsReportDataProvider) in AxClass_SrsReportProviderMetadata.xpp
Dynamics.AX.Application.SrsReportProviderQueryBuilder.`initialize() in AxClass_SrsReportProviderQueryBuilder.xpp
[External Code]
The error seems to come from the parmFreetextInvoiceHeaderFooterTmp_W method
I have restarted the reporting, the machine, cleaned caches, compiled all the models and nothing works.
I have removed the modifications and it doesn't work either, the error appears before reaching anything that is touched.
Any ideas what else I could try?