Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Data Merge Using Variables

New Here ,
May 02, 2019 May 02, 2019

Hi there,

I have been trying to solve this issue for days now, to no avail.

I'm trying to do a data merge using the variables functionality and it works up to a certain point. Here's exactly what I did and what happens:

  • I created the following spreadsheet, made sure all the column names/variables correspond to the object names in Illustrator.

Annotation 2019-05-02 210723.png

  • I used this spreadsheet to create an XML file that I can import into illustrator as a "variable library"
  • In the Variables window on Illustrator, I chose "Load Variable Library"
  • Now what happens is that I get an error message that says "the incoming variable library is invalid". But it's weird because it works perfectly well when I use all the data up until "Vehicle_Insurance_Spending_D". Meaning, when I take all the columns before that specific column, convert that data into XML, and import it in adobe, it works PERFECTLY well and I am able to change all the dynamic variables instantly using that data sets that are imported. As soon as I include that column or any other column of data, I get that error message.

I would really appreciate any help with this. I feel like I hit a dead-end.

Thanks in advance!

Marina

3.1K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
Community Expert ,
May 03, 2019 May 03, 2019

Which version of Illustrator is this?

Since CC 2018 you can import CSV files , don't need to create XML.

Or use the variable importer script by Vasily Hall.

http://hypertransitory.com/blog/2015/04/26/illustrator-variable-data/

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 06, 2019 May 06, 2019

Hi Monika,

Thanks for your response. I'm using CC 2017 so I can't import a CSV file. I also tried using the variable importer but I'm having issues with finding it in illustrator after I save the script in the correct folder.

Was hoping to figure out what the issue might be with my spreadsheet.

Thanks again though!

Marina

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 06, 2019 May 06, 2019

You can use scripts from any location on your harddisk by calling them via File > Scripts > Other script.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 09, 2019 May 09, 2019

Monika,

Thanks for your help thus far.

I finally managed to properly save the script and use it. Not I am running into 2 issues:

1- Variables are not automatically binding to objects (made sure that they have the exact same names). When I try to manually bind them, the option is grayed out.

2- The graphs are not working at all for me. I saved them all into a separate folder and when I try to import the variables, it tells me there are 20 graphs missing.

Any help would be greatly appreciated.

Thank you

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 09, 2019 May 09, 2019

Marinazmy  schrieb


1- Variables are not automatically binding to objects (made sure that they have the exact same names). When I try to manually bind them, the option is grayed out.

2- The graphs are not working at all for me. I saved them all into a separate folder and when I try to import the variables, it tells me there are 20 graphs missing.

So you are using the VariableImporter script now?

In order to bind automatically, name the objects on the artboard.

About the folder with your diagram data: have you read the script's documentation? You can select a folder via the script's options.

A lot of documentation can be found here: Vasily Hall | LinkedIn

Apart from that: in order to fix these issues you need to post what exactly you're doing and how exactly your data is set up.

Also: since the script is an external ressource, not everyone in this forum might be able to answer all the details and fix all possible issues.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 10, 2019 May 10, 2019

Also: since the script is an external ressource, not everyone in this forum might be able to answer all the details and fix all possible issues.

That's exactly why I don't like using scripts. I think it makes more sense to try to figure out what the problem is and fix it without having to use 3rd party scripts. Anyhow, I figured it out and I was able to fix it and upload my XML file, bind the variables to the objects, and have them change dynamically. I don't need to use the script anymore.

My only issue right now is still the graphs.

What I did is I saved the graph's data for every data set in a separate csv file, here's what the csv file for one of the graphs looks like:

Annotation 2019-05-10 094138.png

Then I linked all the csv files to the master spreadsheet, like so (highlighted):

Annotation 2019-05-10 094018.png

Here's the actual AI graph that I'm trying to update:

Annotation 2019-05-10 094215.png

Would you happen to know what the problem is? Every time I include the %Graphs column in my XML file I get the following error:

Annotation 2019-05-10 094432.png

Thanks in advance.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 10, 2019 May 10, 2019

What's important is how the CSV is formatted.

It needs to be comma separated. Not semicolon or anything else.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Valorous Hero ,
May 21, 2019 May 21, 2019

Well, the VI script does semi-colon data, so unfortunately 3rd party scripts are sometimes the superior option and the effort it takes to dig to get to their documentation can be worth-while - but you got to really get into it.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Valorous Hero ,
May 21, 2019 May 21, 2019
LATEST

Also here's another super-great cool idea, see the guy's email inside the script? Use the email and see if you get a response back. Some of these crazy people on here talk to their users even more than Adobe itself!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines