locked
Cannot Submit Job with the standard input or output file path length more than 160 characters RRS feed

  • Question

  • I use the SubmitJob function to submit a job but it gives an error for my standard output file(StdOutFilePath) is too long. Is that a way to change the file path limit to 1000 characters?

    Error message from HPC: "The value for 'StdOutFilePath' is too long. The length should not exceed 160 characters."

    Wednesday, January 12, 2011 5:54 PM

All replies

  • Hi,

      Yes, current there is such limitation on the file path length for standout file. I've filed bug for this. And as a workaround, you can use job or task environment variables. For example, in a task:

    Set Environment variable:

    %std_path%=<longStr>

    %std_file%=<longName>

    And set the task's stdoutput=\\?\%std_path%%std_file%

     

    Please be noted that if you want to use more than 260 characters in the path, you need to specify "\\?\" before the file path. Details please see http://msdn.microsoft.com/en-us/library/aa365247(v=vs.85).aspx#maxpath


    Qiufang Shi
    Tuesday, January 25, 2011 7:57 AM