Unable to get report parameters

5 posts, 0 answers
  1. Andrew
    Andrew avatar
    6 posts
    Member since:
    Feb 2016

    Posted 08 May Link to this post

    Hi,

    I have a created a .NET Core application and I have added the Telerik reporting controller as detailed in: http://www.telerik.com/blogs/telerik-reporting-and-aspnet-core

    It runs fine when I am using external tdrp reports. 

    However I am keen to create a report library and use CLR type names.

    Unfortunately I am getting the follow error when trying to view the report:

    "Unable to get report parameters.
    undefinedReport 'Aliaxis.ReportLibrary.Report1%2C%20Aliaxis.ReportLibrary' cannot be resolved."

     

    My viewer report source is set as below :-

                        //ReportSource - report description
                        reportSource: { 
                            // The report can be set to a report file name
                            // or CLR type name (report class definition).
                            //report: "test.trdp",
                            report: "Aliaxis.ReportLibrary.Report1, Aliaxis.ReportLibrary",
     
                            // Parameters name value dictionary
                            parameters: {}
                        }

     

    Report 1 is a blank report with a textbox in the center. Its namespace/class name is :-

     

    namespace Aliaxis.ReportLibrary
    {
        partial class Report1

     

    Any advice on why I can't get the report to display and am getting this error?

    Kind Regards,

    Tom

     

  2. Andrew
    Andrew avatar
    6 posts
    Member since:
    Feb 2016

    Posted 08 May Link to this post

    I ran fiddler and this is the response I received if it helps:

     

    400
    {"Message":"","ExceptionMessage":"Report 'Aliaxis.ReportLibrary.Report1%2C%20Aliaxis.ReportLibrary' cannot be resolved.","ExceptionType":"Telerik.Reporting.Services.Engine.InvalidReportException","StackTrace":"   at Telerik.Reporting.Services.Engine.ReportEngine.ResolveReportSource(String report)\r\n   at Telerik.Reporting.Services.Engine.ReportEngine.GetParameters(String clientID, String report, Dictionary`2 parameterValues)\r\n   at Telerik.Reporting.Services.AspNetCore.ReportsControllerBase.GetParameters(String clientID, ClientReportSource reportSource)\r\n   at lambda_method(Closure , Object , Object[] )\r\n   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.<InvokeActionMethodAsync>d__27.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at Microsoft.AspNetCore.Mv
    208
    c.Internal.ControllerActionInvoker.<InvokeNextActionFilterAsync>d__25.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Rethrow(ActionExecutedContext context)\r\n   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)\r\n   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.<InvokeNextExceptionFilterAsync>d__24.MoveNext()"}
    0

  3. Andrew
    Andrew avatar
    6 posts
    Member since:
    Feb 2016

    Posted 08 May Link to this post

    Apologies, you can ignore this question. I've added .AddFallbackResolver(new ReportTypeResolver()) to my rest api  controller and all seems to be working.
  4. Ricardo
    Ricardo avatar
    1 posts
    Member since:
    Jul 2017

    Posted 29 Sep Link to this post

    Hi, I have te same problem, but i´m unable to get the report from the api
  5. Katia
    Admin
    Katia avatar
    566 posts

    Posted 04 Oct Link to this post

    Hi Ricardo,

    What is the error message you receive in the viewer? We would need to check the settings of the viewer and implementation of the REST service (ReportsController) in order to provide you further suggestions.

    Most common issues with HTML5 Viewer and the troubleshooting approaches are provided in HTML5 Viewer Troubleshooting help article.


    Regards,
    Katia
    Progress Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top