web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested answer

Report build error

(1) ShareShare
ReportReport
Posted on by 471

Hi everyone,

I am migrating a report from AX 2012 and D365 manually. So, after completing the design, I am facing an error below and it looks non-descriptive. Here it is,

Severity Code Description Project File Line Suppression State
Error Path: [AxReport/xxxFreeTextInvoice]:"An unhandled exception was thrown while validating xxxFreeTextInvoice with callstack System.InvalidOperationException: Sequence contains no matching element
at System.Linq.Enumerable.Single[TSource](IEnumerable`1 source, Func`2 predicate)
at Microsoft.Dynamics.AX.Metadata.Extensions.Reports.AxReportDataSetParameterExtensions.GetAssociatedReportParameter(AxReportDataSetParameter datasetParameter, AxReport report)
at Microsoft.Dynamics.AX.Metadata.Validation.DataSetParameterConstraint.Validate(ModelValidationContext context, AxReportDataSetParameter element)
at Microsoft.Dynamics.AX.Metadata.Validation.AxReportValidator.ValidateDataSets(AxReport report, ModelValidationContext validationContext)
at Microsoft.Dynamics.AX.Metadata.Validation.AxReportValidator.DoValidate(AxReport report, Uri uri, IMetadataProvider metadataProvider, IDiagnosticSink diagnostics)
at Microsoft.Dynamics.AX.Metadata.Validation.ValidatorBase`1.StartValidation(T objectToValidate, Uri uri, IMetadataProvider metadataProvider, IDiagnosticSink diagnostics)." AxReport_FreeTextInvoice (VAR) [xxxxSuite] K:\AosService\PackagesLocalDirectory\xxxSuite\xxxSuite\AxReport\xxxFreeTextInvoice.xml 0

Any direction would be greatly helpful.

Thanks,

I have the same question (0)
  • Sukrut Parab Profile Picture
    71,699 Moderator on at
    RE: Report build error

    Can you try full build of your model if you havn't tried yet?

  • Gunjan Bhattachayya Profile Picture
    35,423 on at
    RE: Report build error

    Hi,

    Have you removed a parameter from the report while migrating it from AX 2012? if so, could you try adding the parameter and check if that resolves the issue?

  • VermaMC Profile Picture
    471 on at
    RE: Report build error

    Thanks both of you.

    I have tried Full build. The parameters are matching with AX 2012 and D365. After doing some troubleshooting. I am getting below error now.

    The number of defined parameters is not equal to the number of cell definitions in the parameter panel.

      at Microsoft.ReportingServices.Library.ReportingService2005Impl.CreateReport(String Report, String Parent, Boolean Overwrite, Byte[] Definition, Property[] Properties, Guid batchId, Warning[]& Warnings)

      at Microsoft.ReportingServices.WebServer.ReportingService2005.CreateReport(String Report, String Parent, Boolean Overwrite, Byte[] Definition, Property[] Properties, Warning[]& Warnings)

  • Suggested answer
    Gunjan Bhattachayya Profile Picture
    35,423 on at
    RE: Report build error

    The RDL schema version looks wrong. This call - "Microsoft.ReportingServices.Library.ReportingService2005Impl.CreateReport()" points at a older namespace which could create issues with report parameters.

    Could you please navigate to the Reports folder under C:\AOSService\PackagesLocalDirectory\<Your model>\Reports and open the RDL in notepad?

    Please check if the second line matches this line below -

    If not, could you please close VS, replace the existing line with this one and try opening the report in VS again?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 756 Super User 2025 Season 2

#2
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 678

#3
Martin Dráb Profile Picture

Martin Dráb 526 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans