AFNI pipeline fails on output file [SOLVED]

Hi everyone:
I’m running a simple script that grabs files (using infosource and selectfiles) and runs AFNI 3dTProject on it.
It fails at the end with the following error message:

traits.trait_errors.TraitError: The 'out_file' trait of an AFNICommandOutputSpec instance must be a pathlike object or string representing an existing file, but a value of '/gpfs/gibbs/pi/levy_ifat/Or/ZivResults/afni_cleaning/_subject_id_0216/cleanAfni/sub-0216_ses-1_task-rest_space-MNI152NLin2009cAsym_desc-smoothAROMAnonaggr_bold_tproject.nii.gz' <class 'str'> was specified.

I thought it was something to do with permission issues, but when changing that error persists.

Any idea?

Just to make sure this is closed correctly - it turned out to be an error in the AFNI command (the censor file was in .csv format and not .1D).