Job output mask metadata field reference invalid

I’m trying to set up a job to split at document level and name the output files as per the metadata. I’ve done this successfully before, and as far as I can see I have followed all the same steps, but when it comes to creating the job output mask it won’t let me use the document tags set up in the job preset, and says “Invalid metadata field name reference”. Job%20output%20mask%20error

I can’t see any reason why these pieces of data would not work in the job output mask, and the error is frustratingly vague. Does anyone have any suggestions as to why this might not work?

I see there are spaces in the tagnames (Cohort en semester). Rename this field for example to cohort_and_semester and try again.

Thank you that has solved it, I knew it would be something obvious!