Forum Discussion
harry21
9 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 pathOutput 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.
- nmrao9 years agoCommunity HeroLooks 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/"- harry219 years agoOccasional Contributor
Nope :smileysad: still failing.. TC Passes with the hardcoded value (Y:\Sharepipe\CC8F5797-8CB5-4175-A564-781A5DA76221.txt)
- nmrao9 years agoCommunity HeroCan 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?