Using data variables in URL path fails in Newman but works in Postman

Archived topic — this may be out of date.
Newman has been replaced by the Postman CLI, Postman’s official, signed command-line tool. It runs collections as Newman did, and also lints API specs, runs mocks and monitors, and syncs local files with Postman from your terminal, CI/CD pipeline or coding agent.
Working with an AI coding agent? The Postman plugin lets agents in Claude Code, Cursor, Codex and others design, mock, test and ship APIs with Postman.
For current help, see the Postman docs, try the free Postman tools (no account needed), or join us on Discord.

Your question may already have an answer on the community forum. Please search for related topics, and then read through the guidelines before creating a new topic.

Here’s an outline with best practices for making your inquiry.

My question: I have used the data variable in the URL path. It works in Postman but however it doesn’t work in Newman. It gives a Bad Request Error.

http://xxx.xxx.xxx.xxx:9999/transaction/{{Transaction_Id_Status_Finish_Ok}}?full=true&finishStatus=finishedError

It cannot replace the place holder with the value from test_data.csv {{Transaction_Id_Status_Finish_Ok}}

Please help step by step on how to use data variable in request path (not as a request param)

But in postman: It complains the same "Like variable cannot be resolved, but when I run it as a collection in postman, it all works fine

Command to run Newman:

docker run --volume ~:/etc/newman -t postman/newman_alpine33 run test_transaction.json -e transaction_environment.json -d test_data.csv

test_data.csv:

Transaction_Id,Transaction_Id_Status_Finish,Transaction_Id_Status_Finish_Ok,Transaction_Id_Status_Finish_Error,Transaction_Id_Parent,Transaction_Id_Children,Transaction_Id_history,Expected_User_Name
339306893,339306579,339306579,339306701,339306703,339306702,339306702,TEST-PERF

Details (like screenshots):

image

How I found the problem:

I’ve already tried: