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

Runtime exception after adding a column to the report

2 Answers 140 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Beginner
Top achievements
Rank 1
Beginner asked on 28 Jun 2017, 02:05 AM

I just right click on the report table in visual studio report designer and choose insert column.
It's just a blank column, with no logic.
When i run the report, it throw the following exception:

"message":"","exceptionMessage":"Object reference not set to an instance of an object.",

"exceptionType":"Telerik.Reporting.Services.Engine.DocumentRenderException","stackTrace":"
at Telerik.Reporting.Services.Engine.Document.GetDocumentInfo()
at Telerik.Reporting.Services.WebApi.ReportsControllerBase.GetDocumentInfo(String clientID, String instanceID, String documentID) in c:\\temp\\reporting\\RBuild-28199\\Reporting_Build\\Source\\Code\\Telerik.Reporting.Services.WebApi\\ReportsControllerBase.cs:line 291
at lambda_method(Closure , Object , Object[] )
at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass10.<GetExecutor>b__9(Object instance, Object[] methodParameters)
at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken)

--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Controllers.ApiControllerActionInvoker.<InvokeUsingResultConverterAsync>d__8.MoveNext()
--- End of stack trace from previous location where exception was thrown --

at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.ApiController.<InvokeActionWithExceptionFilters>d__1.MoveNext()"}

This exception just throw to web client and visual studio debugger and intellitrace can't record it.
I can see that there are some files have written in the report folder on the hard disk drive.
After removing that column from my report, everything work fine.
Can anyone explain why this happen and how can i fix this?

2 Answers, 1 is accepted

Sort by
0
Beginner
Top achievements
Rank 1
answered on 28 Jun 2017, 02:07 AM
Note that my report version is 11.0.17.222
0
Katia
Telerik team
answered on 29 Jun 2017, 02:34 PM
Hello Beginner,

Check if the version of Telerik Reporting the report was created with is the same as the version referenced in the project that hosts Reporting REST service. You can use Upgrade Wizard to update both projects to the same version.

It might also be that the Table item became corrupted, however, we cannot reproduce this behavior on our side. You can test deleting the table and recreating it again or/and upgrading the product to a newer version. 
It is also not recommended to modify reports or add new report items with custom code.

I hope this information will help.


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
Tags
General Discussions
Asked by
Beginner
Top achievements
Rank 1
Answers by
Beginner
Top achievements
Rank 1
Katia
Telerik team
Share this question
or