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?
1 Correct answer
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
Explore related tutorials & articles
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:
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.
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)
Copy link to clipboard
Copied
Yes. I made an example csv and ps file for that.
(tested, and got the same issue)
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
Copy link to clipboard
Copied
Oh my god...
Yes, you're right. The funny thing is that I used variables in a couple of times before 😄
Thanks :DD

