Variable Datasets shows Error: Not enough Names in first line
Copy link to clipboard
Copied
Hello there,
i'm new to Photoshop automation and wanted to try using DataSets to create a Test with a few hundered test images.
However when I get to the point where I want to import the CSV file I get the error:"Could not parse the file contents as a data set. There were not enough variable names in the first line of the text file." But when I look at different Videos on YouTube they all have their Data arranged the exact same as me, which is quite confusing.
I've attached my CSV for reference.
Explore related tutorials & articles
Copy link to clipboard
Copied
It isn't the arrangement of the content in your CSV file that's the issue. You need to have the same number of variables defined in your Photoshop document as you have in your CSV file. Based on the error message, it sounds like you need to add the missing variable name(s) and corresponding data to your CSV file.
Also, if you want to use images as the data, make sure to set the variable type as Pixel Replacement, and in the CSV file, use the filename. Here's more info:
Copy link to clipboard
Copied
I'm trying to mass-produce invites so there is no need for image replacement. However I need to replace the last name, address and the seating number with the ones given in the CSV File. So I should only need three variables in the CSV file, correct? (name, address, seatnumber) but for some reason I keep getting this error.
I've attached a file of my layers in PS2022 to visualize this.
Copy link to clipboard
Copied
The errors/warnings generated by Photoshop for variables are not always helpful.
Your text file is semi-colon ; separated – not comma , separated.
Resave as comma separated and it should work as the attached did for me (or as a tab delimited file with a .txt extension).
P.S. The double quotes in my example are there because I always use the "quote strings" feature by habit (your example didin't use word spaces so there was no explicit need to quote strings).
Copy link to clipboard
Copied
Wondering what you found out here. I am getting the same thing but I have carefully checked and I have 16 variables in the PSD and 16 listed in the CSV. It's not an issue of semicolon vs. comma either. I checked that as well.
I'm stumped.
Copy link to clipboard
Copied

