Wednesday, February 26, 2014

'IOError: File not found' Message When Specifying Filepaths With Jython Scripts Launched From ODI Jython Technology Specific Procedures

'IOError: File not found' Message When Specifying Filepaths
With Jython Scripts Launched From ODI Jython Technology Specific Procedures




When accessing a file with Jython in an ODI Specific Procedure, the following message is displayed in the execution tab of ODI Log :
IOError: File not found - <full file name>

However, the file does indeed exist and the filepath has been correctly hardcoded into the Jython script. What is the problem here ?

When specifying extended filepaths for files under Windows operating systems, the use of backslashes in the filepath may be problematical.

It is strongly recommended to use forward slashes ('/') in operating system filepath specifications in Jython scripts launched from ODI Specific Procedures on Jython Technology.

For example :
C:/tmp/myfile.txt
/home/myapplication/myfile.txt

No comments:

Post a Comment