Error on batch z-score with one baseline, custom process

Hello Francois and Brainstorm experts.

In the past, I came up this this problem and you gave me a great solution:

I've been trying to reuse this again, but I face an error message when I do so.
Strangely enough, the script goes through the first 12 files without an issue and then I receive 20 errors for the 20 files remaining. The error goes like this:

error

2 files [...]
Line 1010: Output argument "matName" (and maybe others) not assigned during call to "in_bst". _______________________________________________ Call stack: >bst_process.m>ProcessFilter2 at 1010 >bst_process.m>Run at 153 >bst_process.m>CallProcess at 2186 >bst_process.m at 36 >baselineZscoreForwardAnalysis.m at 46 ______________________________________________

Any idea what causes this?
Thank you for your time

Classic mistake on my end.

The averaged files generated in the step prior to the z-score had an issue because of disk space: 20/32 are incomplete (1 mb instead of the expected 2.5 gb). This being said, the averaged files were generated without any error. Maybe this finding is of interest to you?