My Oracle Support Banner

"FileNotFoundException" Exception Using "LKM File to Oracle (SQLLDR)" in ODI 12c with Backslashes in the Path (Doc ID 2620387.1)

Last updated on AUGUST 21, 2023

Applies to:

Oracle Data Integrator - Version 12.2.1.3.190415 to 12.2.1.4.200413 [Release 12c]
Oracle Data Integrator on Marketplace - Version 1.0.2 to 12.2.1.4.200413
Information in this document applies to any platform.

Symptoms

NOTE: In the examples below, the names represent a fictitious sample for clarity. Any similarity to actual environments, past or present, is purely coincidental and not intended in any manner.

After upgrading from Oracle Data Integrator (ODI) 11g to ODI 12.2.1.3.190415, mappings using the "LKM File to Oracle (SQLLDR)" knowledge module that previously executed successfully are now failing. 

The mapping reads a simple file where the file name starts with a certain set of letters. For example, the letter 'r' as in 'read_this_file.csv'. 

Session <SESSION_NAME> (<SESSION_ID>) fails with return code ODI-1298.[[
ODI-1217: Session <SESSION_NAME> (<SESSION_ID>) fails with return code ODI-1298.
ODI-1226: Step <STEP_NAME> fails after 1 attempt(s).
ODI-1227: Task SERIAL-MAP_MAIN- fails on the source connection <CONNECTION_NAME>.
ODI-1298: Serial task "SERIAL-MAP_MAIN- (10)" failed because child task "SERIAL-EU-FILE_HR_QLIK_UNIT (20)" is in error.
ODI-1298: Serial task "SERIAL-EU-FILE_<TASK>_UNIT (20)" failed because child task "Generate CTL file-LKM File to Oracle (SQLLDR)- (70)" is in error.
Caused By: java.io.FileNotFoundException: C:/<FOLDER_PATH>/folder_one/folder_two ead_this_file.csv.ctl (Access is denied)
  at java.io.FileOutputStream.open0(Native Method)
  at java.io.FileOutputStream.open(FileOutputStream.java:270)
  at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
  at java.io.FileOutputStream.<init>(FileOutputStream.java:133)
  at com.sunopsis.dwg.tools.OutFile.getOutputStream(OutFile.java:145)
  at com.sunopsis.dwg.tools.OutFile.actionExecute(OutFile.java:122)
  at com.sunopsis.dwg.function.SnpsFunctionBaseRepositoryConnected.execute(SnpsFunctionBaseRepositoryConnected.java:235)
  at oracle.odi.runtime.agent.execution.SessionTask.execIntegratedFunction(SessionTask.java:950)
  at oracle.odi.runtime.agent.execution.SessionTask.executeOdiCommand(SessionTask.java:608)
  at oracle.odi.runtime.agent.execution.cmd.OdiCommandExecutor.execute(OdiCommandExecutor.java:32)
  ... 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.