SFTD Json Conversion to DocIO Error in C#

Hello Team,


We are using Angular DocumentEditor and Converting it to Pdf Using C# Code. But there is an error in DocIO Save function. Code Snippet Attached.

Error:"An Item with the Same Key Has Already Been Added"

Document Json Attach




Attachment: DOCUMENT_TEMPLATE_JSON_ccca6ea9.rar

5 Replies 1 reply marked as answer

HC Harini Chellappa Syncfusion Team September 10, 2020 11:28 AM UTC

Hi Deepak, 
 
We have checked the provided SFDT with latest version 18.2.0.57 word editor package. We are facing the below exception, not the reported one. Currently we are checking on this. Will update further details by Sep 14th, 2020. 

The given key was not present in the dictionary. 
at System.Collections.Generic.Dictionary`2.get_Item(TKey key) at Syncfusion.EJ2.DocumentEditor.DocxExporting.SerializeTapStop(Dictionary`2 dict, WParagraphFormat paragraphformat) at Syncfusion.EJ2.DocumentEditor.DocxExporting.SerializeParagraphFormat(Dictionary`2 dict, WParagraphFormat paragraphformat) at Syncfusion.EJ2.DocumentEditor.DocxExporting.SerializeParagraph(Dictionary`2 dict, WTextBody textBody) at Syncfusion.EJ2.DocumentEditor.DocxExporting.SerializeBlocks(Object data, WTextBody textBody) at Syncfusion.EJ2.DocumentEditor.DocxExporting.SerializeSection(Object data, WordDocument document) at Syncfusion.EJ2.DocumentEditor.DocxExporting.ConvertSfdtToDocx(String sfdt, FormatType type) at Syncfusion.EJ2.DocumentEditor.WordDocument.Save(String sfdtText, FormatType formatType) at EJ2DocumentEditorAPIServices.Controllers.DocumentEditorController.ExportSFDT(CustomParameter data) in D:\WebServices\EJ2-DocumentEditor-WebServices-master\EJ2-DocumentEditor-WebServices-master\ASP.NET MVC\Controllers\DocumentEditorController.cs:line 28 at lambda_method(Closure , Object , Object[] ) at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass6_2.b__2(Object instance, Object[] methodParameters) at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.Execute(Object instance, Object[] arguments) at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken) 

Regards, 

Harini C 



DJ Deepak Jain September 15, 2020 11:14 AM UTC

Hi Harini,'

Waiting for positive response


HC Harini Chellappa Syncfusion Team September 16, 2020 05:15 PM UTC

Hi Deepak, 

Apologies for the delay. 

We have considered the reported scenario as bug and logged defect report. Fix will be included in our upcoming EJ2 patch release which is tentatively scheduled on Oct 7th, 2020. Once included will update you. You can track the status from below link. 


Regards, 

Harini C 



HC Harini Chellappa Syncfusion Team October 8, 2020 05:25 AM UTC

Hi Deepak, 

Due to some technical issues, Oct 7th patch release is postponed and rescheduled on Oct 14th, 2020. Will update, once included. you can track the status from below feedback link 


Regards, 

Harini C  



HC Harini Chellappa Syncfusion Team October 15, 2020 02:35 PM UTC

Hi Deepak, 

We are glad to announce that our NuGet release v18.3.0.40 has been rolled out successfully and included the fix for the reported issue in this release.   

Kindly upgrade your NuGet packages to latest version to resolve the reported issue.   



Regards, 

Harini C 


Marked as answer
Loader.
Up arrow icon