Not really sure what’s happening without more details but iterations should be iterationCount. As you’re using a data file, that’s not really needed as that should control that value.
Are you able to share the full error message you see? What is variable and is that contained in your collection somewhere?
The variable is the last part of the URL in the curly braces above. It’s not a key value pair. As far as the full error:
/Users/pr85/Downloads/my.csv:1
variable
^
ReferenceError: variable is not defined
at Object. (/Users/pr85/Downloads/my.csv:1:2)
at Module._compile (node:internal/modules/cjs/loader:1102:14)
at Object.Module._extensions…js (node:internal/modules/cjs/loader:1131:10)
at Module.load (node:internal/modules/cjs/loader:967:32)
at Function.Module._load (node:internal/modules/cjs/loader:807:14)
at Module.require (node:internal/modules/cjs/loader:991:19)
at require (node:internal/modules/cjs/helpers:92:18)
at Object. (/Users/pr85/Downloads/test.js:5:20)
at Module._compile (node:internal/modules/cjs/loader:1102:14)
at Object.Module._extensions…js (node:internal/modules/cjs/loader:1131:10)
at Module.load (node:internal/modules/cjs/loader:967:32)
at Function.Module._load (node:internal/modules/cjs/loader:807:14)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:76:12)
at node:internal/main/run_main_module:17:47
When I run newman with -d option, same file, it works as expected and substitutes the variable correctly.