When saving a pdf xfa loses interactivity

I have a pdf xfa and when importing data from an xml and saving it loses interactivity. All buttons are disabled and fields cannot be filled. Is there a solution for this or is there something I am doing wrong?

My code:

Preformatted text Aspose.Pdf.Facades.Form form = new Aspose.Pdf.Facades.Form ();

         form.BindPdf ("test.pdf");
         // Open xml file.
         System.IO.FileStream xmlInputStream = new FileStream ("data2.xml", FileMode.Open);

         // Import data
         form.ImportXml (xmlInputStream);

// Close file stream
xmlInputStream.Close ();

         // Save updated document
         form.Save ("test_out.pdf");`Preformatted text`

@liblit

Would you please share your sample source PDF and XML files with us. We will test the scenario in our environment and address it accordingly.

test.pdf (453.2 KB)
datos4.xml.pdf (15.8 KB)
Change the datos4 extension to xml.
Thank you!

@liblit

We were able to reproduce the issue in our environment while using Aspose.PDF for .NET 20.10. Therefore, an issue as PDFNET-48920 has been logged in our issue tracking system. We will further look into its details and keep you posted with the status of its correction. Please be patient and spare us some time.

We are sorry for the inconvenience.