Welcome Dialog

Welcome to the Community!

We have a brand new look! Take a tour with us and explore the latest updates on Adobe Support Community.


Could not parse the file contents as a data set. The name 'background' is not a variable in the c...

New Here ,
Aug 25, 2021 Aug 25, 2021

Copy link to clipboard

Copied

"Could not parse the file contents as a data set. The name 'background' is not a variable in the current document." - when I tried to do variables

But it is there as you can see in the 4 pictures I attached. And yes, everything is spelled correctly everywhere.

 

I tried switching to UTF-16 but then it said it doesn't have enough data or something. I also tried every decoding to what but nothing worked...

 

So can somebody help please?

TOPICS
Windows

Views

65

Likes

Translate

Translate

Report

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

correct answers 1 Correct answer

Adobe Community Professional , Aug 28, 2021 Aug 28, 2021
To me it look like your CVS file is all wrong.  It has you template's layer names in the header columns  instead of  the variable names and the replacement rows  do not have three  file paths. Seem to be just file name file type no file path and drive. https://helpx.adobe.com/photoshop/using/creating-data-driven-graphics.html#define_variables 

Likes

Translate

Translate
Adobe Community Professional ,
Aug 25, 2021 Aug 25, 2021

Copy link to clipboard

Copied

It looks like you're trying to use your layer named "background" as a variable name. Give the pixel replacement data a different variable name and set up your spreadsheet with the variable names in the top row. Then put the corresponding values in the rows below the variable names. See the example in the Data-driven Graphics section of my article on CreativePro's site:

Photoshop Automation

 

Likes

Translate

Translate

Report

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 ,
Aug 27, 2021 Aug 27, 2021

Copy link to clipboard

Copied

Thank you but I did the exact same thing.

 

 Also, I tried to remove the first column and the layer belonging to it and I got the same message with the current first column's name.

Likes

Translate

Translate

Report

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 Employee ,
Aug 27, 2021 Aug 27, 2021

Copy link to clipboard

Copied

Can you post a PSD and the CSV to go with that exhibits this problem so we can better troubleshoot? (link to CC files or dropbox)

 

Senior Product Manager - Customer Advocacy - Digital Imaging

Likes

Translate

Translate

Report

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 ,
Aug 28, 2021 Aug 28, 2021

Copy link to clipboard

Copied

Yes. I made an example csv and ps file for that.

(tested, and got the same issue)

Likes

Translate

Translate

Report

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 Professional ,
Aug 28, 2021 Aug 28, 2021

Copy link to clipboard

Copied

To me it look like your CVS file is all wrong.  It has you template's layer names in the header columns  instead of  the variable names and the replacement rows  do not have three  file paths. Seem to be just file name file type no file path and drive.

https://helpx.adobe.com/photoshop/using/creating-data-driven-graphics.html#define_variables 

 

image.png

image.png

 

JJMack

Likes

Translate

Translate

Report

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 ,
Aug 28, 2021 Aug 28, 2021

Copy link to clipboard

Copied

LATEST

Oh my god...

Yes, you're right. The funny thing is that I used variables in a couple of times before 😄

 

Thanks :DD

Likes

Translate

Translate

Report

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