Converting sfdt into docx causes "'The given key 'numberFormat' was not present in the dictionary.'" exception

Hey, I am currently trying to process the attached document.

Here are the steps taken: 

  1. "Open" document in DocumentEditor Component (Angular).
  2. Save document as SFDT JSON string.
  3. Attempt to process the document by doing:  var saveAsWord = WordDocument.Save(asString, FormatType.Docx)
  4. Observe error: System.Collections.Generic.KeyNotFoundException: 'The given key 'numberFormat' was not present in the dictionary.'

I also included the JSON that is generated by using the Open button. but I feel like it is imperative the docx should be looked at as well, as it seems to be the source of the error.

For all intents and purposes, this is a normal word document, so failure to properly process the document on import is a bug.


Attachment: asJson_e11ad179.zip

1 Reply

KB Kurthis Banu Abdul Majeeth Syncfusion Team August 30, 2021 11:59 AM UTC

Hi Brandon, 

We are tried to reproduce the reported issue with your shared document. We couldn’t reproduce the reported issue.  

For your reference, we have attached the Sample which we used to reproduce the reported issue and it can be downloaded from the below link.   

Client-side angular sample: 

Server side ASP.Net core sample:  

Please let us know if you have any questions.  

Regards,  
Kurthis Banu A.  


Loader.
Up arrow icon