This is a migrated thread and some comments may be shown as answers.

Can't Export Excel

1 Answer 26 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Builk
Top achievements
Rank 2
Builk asked on 21 Jan 2021, 09:37 AM

report can't export excel Error Internal Server Error Parameter is not valid.

 

{"message":"","exceptionMessage":"Parameter is not valid.","exceptionType":"Telerik.Reporting.Services.Engine.DocumentRenderException","stackTrace":"   at Telerik.Reporting.Services.Engine.Document.GetDocumentInfo()\r\n   at Telerik.Reporting.Services.Engine.ReportEngine.GetDocumentInfo(String clientID, String instanceID, String documentID)\r\n   at Telerik.Reporting.Services.AspNetCore.ReportsControllerBase.GetDocumentInfo(String clientID, String instanceID, String documentID)\r\n   at lambda_method(Closure , Object , Object[] )\r\n   at Microsoft.Extensions.Internal.ObjectMethodExecutor.Execute(Object target, Object[] parameters)\r\n   at Microsoft.AspNetCore.Mvc.Internal.ActionMethodExecutor.SyncActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)\r\n   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.<InvokeActionMethodAsync>d__12.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.Mvc.Internal.ControllerActionInvoker.<InvokeNextActionFilterAsync>d__10.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.<InvokeInnerFilterAsync>d__13.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.Mvc.Internal.ResourceInvoker.<InvokeNextExceptionFilterAsync>d__24.MoveNext()"}

1 Answer, 1 is accepted

Sort by
0
Eric R | Senior Technical Support Engineer
Telerik team
answered on 25 Jan 2021, 06:40 PM

HI Builk ,

Thank you for providing the screenshot. From what I understand, the report viewer is throwing the error Internal Error - Parameter Not Valid. However, from the provided information it is not enough to understand the issue completely. Let me go over what is the most common cause of the error below. 

Common Cause of Internal Error

The most common cause of the internal error is when using Telerik Reporting in Azure App Service plan that doesn't include GDI+. If the application is hosted in an Azure App Service, I recommend upgrading the plan to a Basic or higher plan as described in the Internal Server Error Reporting forum thread.

Wrapping Up

If the application isn't hosted on an Azure App Service plan, then I will need more information about the scenario. In this case, I ask that you provide the following information.

  • Description of where the ASP.NET Core Report Viewer is hosted.
  • Description of how the error is thrown. For example, is it on first load or only when exporting Excel?
  • Provide a screenshot of the output of /api/reports/formats. This should be a JSON of the available report formats. See the Get Available Document Formats article for reference.
  • Fiddler Session Archive of the reporting requests that are throwing the error. This can be achieved by selecting the specific sessions, right-click, then selecting and save sessions.
  • Any screenshots that you feel may help identify the issue.

In the meantime, please let me know if you need any additional information. Thank you for using the Telerik Reporting forums.

Regards,


Eric R | Senior Technical Support Engineer
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
General Discussions
Asked by
Builk
Top achievements
Rank 2
Answers by
Eric R | Senior Technical Support Engineer
Telerik team
Share this question
or