Forum Discussion
harry21
7 years agoOccasional Contributor
I edited the FilePath value in Properties by adding separator(\\ldvdevinvrt01\resources\Sharepipe\) . Still it is failing..
Executed this below groovy and got the correct FilePath value
def path = context.expand('${TC Properties#FilePath}${TC Properties#Transaction_ID}.txt') log.info path
Output Returned: \\ldvdevinvrt01\resources\Sharepipe\CC8F5797-8CB5-4175-A564-781A5DA76221.txt
While giving this output value in FileWait step, TC passes. Problem is with Property Expansion.
- nmrao7 years agoChampion Level 3Looks you are trying to access the files from network.
Can you map "\\ldvdevinvrt01" to a local drive say, Z and replace the FilePath with "Z:/resources/Sharepipe/"- harry217 years agoOccasional Contributor
Nope :smileysad: still failing.. TC Passes with the hardcoded value (Y:\Sharepipe\CC8F5797-8CB5-4175-A564-781A5DA76221.txt)
- nmrao7 years agoChampion Level 3Can you show some more lines of actual code of the script, please?
Use file path separator "/" even on windows.
Avoid spaces in file / directory names.
Have you checked if the file exists?
Related Content
- 5 years agoComputingFroggy
- 13 years agogordillo_ramon