Error while using GPT: "The filename, directory name, or volume label syntax is incorrect"

Dear all,

I’m trying to get the GPT functionality to work. I have a XML graph with three parameters ( infiles 1 and 2, and outfile), but running the tool results in an error:

gpt graph.xml –Pinfile1=pathToInfile1 –Pinfile2=pathToInfile12 –Poutfile=pathToOutile

This results in an error: “The filename, directory name, or volume label syntax is incorrect”

Apparently this is a Windows error, in other software sometimes related to problems with filenames (such as spaces in the path). Could this be the case here as well? The filenames themselves are OK, so then it must have something to do with SNAP being installed in C:\Program Files, but not sure then where the error actually is, or how to solve it.


Does gpt -h give the help text? Do you have colons (":") in the names (oher than the second position)? Do you have characters outside the ASCII set in the names?

If you haven’t used gpt before on this installation you might consider starting with very simple test cases, say by using StatisticsOp to compute the global mean of variable from a given file. Check that this works with each of your files and variables that are used in your graph.

If gpt works for simple tests and you are still having problems, you should post your xml file and the complete command line.

1 Like