I have a CSV file that I used to perform a CSV import - which works perfectly.
It just has 2 columns; Internal ID, and one custom field called “MRKT - Text Line”
I took that exact CSV and put it in my file cabinet.
I then used a scheduled script with task.create({taskType: task.TaskType.CSV_IMPORT})…. to run the same CSV import with that same file.
But the CSV import fails and the results.csv file shows an error (on every line) of “Could not find matching record. Primary name field was not mapped or is empty.”
The heading that is “Internal ID” on the original CSV, shows as “*?*Internal ID” on the results.csv file.
I opened the file directly from the file cabinet and it reads “Internal ID”, no where does that “?Internal ID” show except for in the results.csv file.
Has anyone seen/dealt with this before?