Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Creating an XML data connection


Not applicable
I'm trying to create a data connection to a XML file, but the dialog box for "New Data Connection..." has the options for "XML Schema" and "XML Data File" grayed out so that I can only choose "OLEDB Database" or "WSDL File." Can anyone tell me why, or what I need to do to fix that?


I've created a form that needs to import a few data values when opened in Acrobat. Right now, I can get the values by using the "Import data.." command and browsing for the XML file, but I do not want the end user having to browse for the data. I would like the data to import either 1) When the PDF opens or 2) when the user pushes a "import data" button.

I would greatly appreciate any input or suggestions!
4 Replies


Level 10
typically they are greyed out if there is already a schema (XSD) connection or a sample data file in place. You cannot bind to more than one schema.

You will have to have th euser hit the import button to get it to import cannot do an unattended operation for this. You can use the command on th eclick event of the button.


Not applicable
I added a button and under the click event, I typed:"DataPoints.xml");

DataPoints.xml is the file with the data I need to import. When I open the form in Acrobat and push the button, the Javascript debugger comes up with the following:

NotAllowedError: Security settings prevent access to this property or method.


When I look at my security settings, the "Changing the Document" setting and "Document Assembly" setting are set to Not Allowed, but I can't seem to change them. I already set the preference to No Security. Any suggestions?


Level 10
You cannot automatically import the data unless you certify the form (security will not allow it), but if you leave the command as I had it, a dialog will come up and allow the user to choose the file they want to load.


Not applicable
Even if certification of trusted identity, file name can not be specified in importData operation. I have tested on certified document:"data.xml");


both of them opens the dialog box to select the data file.

Is there an another way?