My Oracle Support Banner

Unable to Assign a Variable Value in ODI when its Value Contains Double-Quotes (Doc ID 1189085.1)

Last updated on NOVEMBER 15, 2019

Applies to:

Oracle Data Integrator - Version and later
Information in this document applies to any platform.


Trying to capture the Session error message into an Oracle Data Integrator (ODI) Variable of "Text" type, using, for example, the following statement in the "Refreshing" tab:

select '<%=odiRef.getPrevStepLog("MESSAGE")%>'
from dual

In a Package, we first refresh the Variable, then call a child Scenario, with OdiStartScen command, where the above Variable is passed to the Scenario as follows:



OdiStartScen ... "<PROJECT>.<VARIABLE>='#<PROJECT>.<VARIABLE>'" << notice the usage of single quotes (') around the Variable value

The Package execution fails, and following message is signaled when calling the OdiStartScen tool: Invalid parameter
at com.sunopsis.dwg.function.SnpsFunctionBase.getSunopsisApi(
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execIntegratedFunction(
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(
at com.sunopsis.dwg.dbobj.SnpSessTaskSqlS.treatTaskTrt(
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(
at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(
at com.sunopsis.dwg.dbobj.SnpSession.treatSession(
at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand(
at com.sunopsis.dwg.cmd.DwgCommandBase.execute(
at com.sunopsis.dwg.cmd.e.i(
at com.sunopsis.dwg.cmd.g.y(
at Source)


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

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

In this Document

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