New to Telerik Reporting? Start a free 30-day trial

Diagnosing InstanceReportSource Errors During Parameter Retrieval

Updated on Nov 6, 2026

Environment

VersionProductAuthor

| 20.2.26.1007 | Reporting REST Service |Desislava Yordanova|

Description

If a report works locally but fails on the server with a NullReferenceException in DocumentParametersManager during GetParameters, inspect the report source returned by the service's custom resolver. The stack trace identifies the failing stage, but it does not identify the exact null value or establish an environment-specific cause.

Solution

Returning an InstanceReportSource from a server-side resolver is a documented approach. See Using InstanceReportSource with the HTML5 Report Viewer for the setup and an example. To investigate a parameter-retrieval failure:

  1. Confirm where the report source is created. The web report viewers send a report identifier and parameter values. Create or load the report instance in the Reporting REST Service, and return it through the resolver rather than trying to send the report object from the viewer.
  2. Verify that the returned InstanceReportSource.ReportDocument contains an initialized report when the resolver is called with OperationOrigin.ResolveReportParameters.

Parameter retrieval occurs before document generation, so do not initialize the report only in the OperationOrigin.GenerateReportDocument branch.

If your class derives from InstanceReportSource, inspect its inherited ReportDocument property. Deriving from the class does not initialize a report instance. See ReportSource resolver operations for the purpose of each resolver call.

  1. Capture the resolver's input report identifier, operation origin, and whether the returned source or its ReportDocument is null during the failing request. Keep the full exception and any inner exceptions. Do not log credentials or sensitive parameter values. Use the custom resolver error-handling guidance to distinguish errors that occur before processing from errors raised while processing report items.
  2. For a server-only failure, compare the deployed Telerik Reporting and runtime versions, configuration, and custom resolver behavior with the development environment.

These checks do not establish that ReportDocument caused a particular exception. Do not infer that changing storage providers, deleting the service cache, or changing the server operating system will resolve the issue without evidence identifying the cause.

In this article
EnvironmentDescriptionSolution
Not finding the help you need?
Contact Support