MoveFile on windows network drive
Originally posted by: ThomasT
Hi Guys.
I am having problems with the attached graph.
Everything works fine until I want to move and rename a file.
I have tried to several configurations for the filename, but I always I get the error that LAE cant find the file.
Any suggestions?
Templates.brg
WARN: error moving file \\naspri02tsivz2.tcad.telia.se\TS-Team201\MS_FI_Settlement_ALL\Brain\Data 4.6\Temp\Tempfile.xlsx: The system cannot find the path specified.
Line: 1; BrainScript: moveFile(B,NewFile)
Operator: 'move-file'
Error Code: brain.node.MoveFile_ExprOp.cpp.69
ERROR: Node execution terminated while processing data by error:
error moving file \\naspri02tsivz2.tcad.telia.se\TS-Team201\MS_FI_Settlement_ALL\Brain\Data 4.6\Temp\Tempfile.xlsx: The system cannot find the path specified.
Error Code: lae.node.executionTerminated
Hi Guys.
I am having problems with the attached graph.
Everything works fine until I want to move and rename a file.
I have tried to several configurations for the filename, but I always I get the error that LAE cant find the file.
Any suggestions?
Templates.brg
WARN: error moving file \\naspri02tsivz2.tcad.telia.se\TS-Team201\MS_FI_Settlement_ALL\Brain\Data 4.6\Temp\Tempfile.xlsx: The system cannot find the path specified.
Line: 1; BrainScript: moveFile(B,NewFile)
Operator: 'move-file'
Error Code: brain.node.MoveFile_ExprOp.cpp.69
ERROR: Node execution terminated while processing data by error:
error moving file \\naspri02tsivz2.tcad.telia.se\TS-Team201\MS_FI_Settlement_ALL\Brain\Data 4.6\Temp\Tempfile.xlsx: The system cannot find the path specified.
Error Code: lae.node.executionTerminated
-
Originally posted by: Tim Meagher
Hi,
I believe that the problem with moveFile is that when the LAE server is running on a non-windows platform it attempts to simply perform a rename operation instead of a move - which can run into issues on network drives.
If this is the problem you are running into, you should be able to use a script equivalent to the following to do what you want (replacing "<new>" with the fully qualified filename for the new file you want to create, and "<original>" with the fully qualified file name of the file you want to move)
touchFile("<new>") appendFile("<original>", "<new>") deleteFile("<original>")
Please sign in to leave a comment.
Comments
4 comments