Unable to import JSON into PDF

Hi,

I have attached a sample solution where I'm trying to import into a PDF form via a JSON file. This is similar to the examples I received from you on some of my earlier forum threads. However, for some reason, the data is not importing into the PDF and the document stays blank.

I have two questions here:
a. Can you tell me why this data is failing to import?
b. Is there a way to know when an import fails, and why it failed? Currently, the failure is a very silent failure, where it does not throw any errors etc. So it is very difficult to detect when a failure to import form fields has happened, and consequently, it is very confusing for a user to look at a blank form.

Thank you.

Attachment: EJ2PdfViewer_ef9edb43.zip

9 Replies

AA Akshaya Arivoli Syncfusion Team May 25, 2020 10:47 AM UTC

Hi Saurabh, 

We can reproduce the reported issue with the provided sample. We will analyze further on it and update you with more details on May 27th, 2020 

Regards, 
Akshaya 



AA Akshaya Arivoli Syncfusion Team May 28, 2020 02:50 PM UTC

Hi Saurabh , 
 
We have reproduced the reported issues in the given sample with 17.4.0.44 but mentioned issues not reproduced in our latest packages (18.1.0.54), So we suggest you to upgrade the packages to latest version (18.1.0.54) to resolve the mentioned  issue. We have modified the given sample with latest version, you can download the sample  from the below link. 
 

Please try it and revert us if you need further assistance. 

Regards, 
Akshaya 



SD Saurabh D June 3, 2020 03:52 AM UTC

Thanks Akshaya. However, I wanted to follow up about my second question - is there any way to handle the event when the import failed? I see in the documentation that there are export/import success or failed events, but I can't seem to get them to work.


AA Akshaya Arivoli Syncfusion Team June 4, 2020 01:08 PM UTC


Hi Saurabh, 

Thank you for your update. 


Currently the ‘ImportFailed’ event will be triggered only for the Annotations and it will not be triggered for the FormFields. However we will analyze further on it and update you with more details on June 8,2020. 


Regards, 
Akshaya 



SD Saurabh D June 4, 2020 03:09 PM UTC

Thank you, that is what I was suspecting as well. It would be ideal if both ExportFormFields & ImportFormFields can have success/failed events linked to them. This is especially important if we're using the ExportFormFields method from Javascript to export the form data to a file or database.


AA Akshaya Arivoli Syncfusion Team June 5, 2020 11:44 AM UTC

Hi Saurabh , 

Thank you for your update. 

We will analyze further on your requirement “Trigger Events on both ExportFormFields & ImportFormFields success/failed” and update you with more details on June 8, 2020. 

Regards, 
Akshaya 



AA Akshaya Arivoli Syncfusion Team June 11, 2020 12:41 PM UTC

Hi Saurabh, 

Thank you for your patience. 

We have analyzed your requirement and we will “Expose Events on both ExportFormFields & ImportFormFields success/failed” and the implementation will be included in our upcoming weekly NuGet release on June 24, 2020.  


Regards, 
Akshaya 



AA Akshaya Arivoli Syncfusion Team June 25, 2020 02:23 PM UTC

Hi Saurabh, 

Sorry for the inconvenience caused. 

The implementation to expose the events was not included in our latest weekly release. However the fix will be included in our 2020 Volume 2 release which is expected to rolled out in the end of June , 2020 

Regards, 
Akshaya  



AA Akshaya Arivoli Syncfusion Team July 8, 2020 04:06 AM UTC

Hi Saurabh,  
 
We have exposed the events and it was included in our Essential Studio Volume 2, 2020 release (v18.2.0.44). So kindly upgrade the package and Scripts to the latest version for resolving the issue in your end.   
  
  
We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you would require any further assistance.  
 
 
Please find the API details for import and export form fields 
 
 
 
And also the importfailure, exportfailure, importsucess, exportstart events can be used. Please find the above API documentation links, 
 
 
 
Regards, 
Akshaya

Loader.
Up arrow icon