Error while exporting to PDF
Below error occurred while exporting to PDF. Using MVC Web API 2 backend and the function to export is copied verbatim from the documentation.
<Error>
<Message>An error has occurred.</Message>
<ExceptionMessage>Attempted to divide by zero.</ExceptionMessage>
<ExceptionType>System.DivideByZeroException</ExceptionType>
<StackTrace>
at Syncfusion.EJ.Export.GanttPdfExport.updateGanttData(IEnumerable dataSource, Int32 level, Int32 parentId, Boolean isChildRecord, String wbs) at Syncfusion.EJ.Export.GanttPdfExport.updateGanttData(IEnumerable dataSource, Int32 level, Int32 parentId, Boolean isChildRecord, String wbs) at Syncfusion.EJ.Export.GanttPdfExport.updateGanttData(IEnumerable dataSource, Int32 level, Int32 parentId, Boolean isChildRecord, String wbs) at Syncfusion.EJ.Export.GanttPdfExport.updateGanttData(IEnumerable dataSource, Int32 level, Int32 parentId, Boolean isChildRecord, String wbs) at Syncfusion.EJ.Export.GanttPdfExport.updateGanttData(IEnumerable dataSource, Int32 level, Int32 parentId, Boolean isChildRecord, String wbs) at Syncfusion.EJ.Export.GanttPdfExport.updateGanttData(IEnumerable dataSource, Int32 level, Int32 parentId, Boolean isChildRecord, String wbs) at Syncfusion.EJ.Export.GanttPdfExport.updateGanttData(IEnumerable dataSource, Int32 level, Int32 parentId, Boolean isChildRecord, String wbs) at Syncfusion.EJ.Export.GanttPdfExport.ProcessGanttContent(IEnumerable dataSource, Int32 level) at Syncfusion.EJ.Export.GanttPdfExport.ExecuteResult(GanttProperties ganttModel, IEnumerable dataSource) at Syncfusion.EJ.Export.GanttPdfExport.Export(GanttProperties treeGridProperties, IEnumerable dataSource, Boolean exportToFile) at Syncfusion.EJ.Export.PdfExport.Export(GanttProperties ganttModel, IEnumerable datasource, GanttPdfExportSettings settings, String fileName, Boolean exportToFile) at GanttController.cs:line 49 --- 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.Threading.Tasks.TaskHelpersExtensions.<CastToObject>d__0.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.ApiControllerActionInvoker.<InvokeActionAsyncCore>d__1.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.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__6.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__6.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.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__5.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__5.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.Dispatcher.HttpControllerDispatcher.<SendAsync>d__15.MoveNext()
</StackTrace>
</Error>
SIGN IN To post a reply.
1 Reply
JS
Jonesherine Stephen
Syncfusion Team
May 28, 2018 12:18 PM UTC
Hi Ruchik,
We can able to replicate the reported issue while exporting the parent task which has all child records as milestone. We have logged a report for this. This fix will be included in our upcoming Volume 2 Service pack 1, 2018 release. For more details, please refer to the incident which you have created under your Direct Trac account.
Please let us know if you require further assistance on this.
Regards,
Regards,
Jone sherine P S.
SIGN IN To post a reply.
- 1 Reply
- 2 Participants
-
RV Ruchik Vora
- May 25, 2018 07:17 AM UTC
- May 28, 2018 12:18 PM UTC