Variable has no value when executing a scenario
Hi,
I have a simple package consists of two steps:
1. Refresh a variable "V_FILENAME_D501" to get the value inputted from user. The refreshing statement is "select '#V_FILENAME_D501' and it is running in a SQLServer environment.
2. Execute an interface which loading data from a file (filename from step 1) into an essbase database.
The execution failed at step 1 with the following error message:
java.lang.Exception: Variable has no value: CBS_PRD_PROJECT.V_FILENAME_D501
at com.sunopsis.dwg.dbobj.SnpVarSess.getValue(SnpVarSess.java)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.bindSessVar(SnpSessTaskSql.java)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.bindSessVar(SnpSessTaskSql.java)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskPreTrt(SnpSessTaskSql.java)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
at com.sunopsis.dwg.dbobj.SnpSessTaskSqlV.treatTask(SnpSessTaskSqlV.java)
at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand(DwgCommandSession.java)
at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
at com.sunopsis.dwg.cmd.e.i(e.java)
at com.sunopsis.dwg.cmd.h.y(h.java)
at com.sunopsis.dwg.cmd.e.run(e.java)
at java.lang.Thread.run(Unknown Source)
Any Idea what happens?
regards,
James.
Hi James,
How are you?
You can't query a file data store so it will error out. You need to build a small logic for that. Please follow the below steps to implement that.
1. In your source data store just give the resource name as #CBS_PRD_PROJECT.V_FILENAME_D501
2. Drag and drop that data store as your source in the interface.
3. Make your variable V_FILENAME_D501 data type as Alphanumeric, Action as Not Persistent.
4. Drag and drop the twice variable in your package make that as a Declare variable and in the second step make that as Refresh Variable then in the third step your interface.
5. Generate a scenario out of that and while executing that scenario give the Value as your desired file name, hit enter once you gave, otherwise it wont take the input and make sure that LAST VALUE is UNCHECKED.
PS: You can still do it without Default Value as *<%=odiRef.getSrcTablesList("", "[SCHEMA]/[RES_NAME]", "", "")%>* :)
Thanks,
G
Edited by: Gurusank on Mar 16, 2009 2:58 PM
Similar Messages
-
FSV showing different values when executed by different users
Hi Experts,
While executing FSV throug RFBILA00 we are getting different values when executed by differet users. Variant selection is same except the user (which is different). For one user report is perfect for another user some GL accounts were not displayed and some accounts shows different values.
Anybody could help on this. Is there any userwise settings are there.
Thanks in advance.
Regards,
NarayananHi,
check user authorization, maybe one user has limited display authorization for some values (as they are linked to specific profit center,...)
BR Christian -
The MRP_ATP_PUB.Call_ATP api not retrieving requested_date_quantity value when executed in custom schema but when executed in apps its working fine, can anyone help on this..
We are passing the required values to the ATP API.
1) The x_return_status is showing as 'S' i.e. success but x_atp_rec.Requested_Date_Quantity is not returning any value.
2) If there is a grant issue how to identify it.
Regards,
Vinod AnnukaranPl do not post duplicates -0 MRP_ATP_PUB.Call_ATP api not retrieving requested_date_quantity value when executed in custom schema but when executed in apps its working fine, can anyone help on this..
-
Error when executing a scenario based on Variable type Latest Value
Hi,
I have created two ODI varaible -
1) filename of type as "Historize"
2) id of type as "Historize"
I have 2 Models -
1) One is based on FIle Technology with resource name as #CUSTOMER.filename (dynamic filename) (TARGET)
2) second is based on Oracle technology which contains two relational tables (SOURCE)
I have an interface in which one-to-one mapping is done from source to target.
At the junction of two source tables..i have put a query as "CUSTOMER_PAYMENT.CUSTID=CUSTOMER_DETAILS.CUSTID and CUSTOMER_DETAILS.CUSTID !=(#id)"
Package:
drag and drop two ODI variables , interface
Connect two ODI variable to interface and define the variable type as "Declare Variable" in the package.
Define filename as the firststep.
filename(firststep)-----------------------------
INTERFACE
id---------------------------------------------------
It is working fine with java callout and command prompt. It is not working when i invoke it on desginer.
It gives me error:
java.sql.SQLException: ORA-00936: missing expression
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:316)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:282)
at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:639)
at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:185)
at oracle.jdbc.driver.T4CPreparedStatement.execute_for_describe(T4CPreparedStatement.java:503)
at oracle.jdbc.driver.OracleStatement.execute_maybe_describe(OracleStatement.java:965)
at oracle.jdbc.driver.T4CPreparedStatement.execute_maybe_describe(T4CPreparedStatement.java:535)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1051)
at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:2984)
at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3026)
at com.sunopsis.sql.SnpsQuery.executeQuery(SnpsQuery.java)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execCollOrders(SnpSessTaskSql.java)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java)
at com.sunopsis.dwg.dbobj.SnpSessTaskSqlI.treatTaskTrt(SnpSessTaskSqlI.java)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
at com.sunopsis.dwg.cmd.DwgCommandScenario.treatCommand(DwgCommandScenario.java)
at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
at com.sunopsis.dwg.cmd.e.i(e.java)
at com.sunopsis.dwg.cmd.g.y(g.java)
at com.sunopsis.dwg.cmd.e.run(e.java)
at java.lang.Thread.run(Unknown Source)
Similary when i define the variable type as "Latest Value/Niot Persistent"...giving me same error as above...but working finw with java and command prompt.
Thanks
Edited by: user12420305 on Aug 31, 2010 10:42 PMHi,
My Package contains:
First step : customerid and custFileName
Second step : interface
Type of both the variables in package is "Declare"
customerid : type Alphanumeric - Historize
custFileName : type Alphanumeric - Historize
generate a scenario of the package and execute it.
custFileName : abc.txt customerid : 2
The file is created but it is giving me error for customer id.
Operator Description:
select
CUSTOMER_DETAILS.CUSTID CUSTOMER_ID,
CUSTOMER_DETAILS.LAST_NAME || CUSTOMER_DETAILS.FIRST_NAME CUSTOMERNAME,
CUSTOMER_DETAILS.ADDRESS ADDRESS,
CUSTOMER_PAYMENT.PAYMENTID PAYMENT_ID,
CUSTOMER_PAYMENT.AMOUNT AMOUNT
from ODITEST1.CUSTOMER_DETAILS CUSTOMER_DETAILS, ODITEST1.CUSTOMER_PAYMENT CUSTOMER_PAYMENT
where (1=1)
And (CUSTOMER_PAYMENT.CUSTID=CUSTOMER_DETAILS.CUSTID and CUSTOMER_DETAILS.CUSTID !=(#CUSTOMER.customerid))
Operator Execution:
936 : 42000 : java.sql.SQLException: ORA-00936: missing expression
java.sql.SQLException: ORA-00936: missing expression
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:316)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:282)
at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:639)
at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:185)
at oracle.jdbc.driver.T4CPreparedStatement.execute_for_describe(T4CPreparedStatement.java:503)
at oracle.jdbc.driver.OracleStatement.execute_maybe_describe(OracleStatement.java:965)
at oracle.jdbc.driver.T4CPreparedStatement.execute_maybe_describe(T4CPreparedStatement.java:535)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1051)
at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:2984)
at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3026)
at com.sunopsis.sql.SnpsQuery.executeQuery(SnpsQuery.java)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execCollOrders(SnpSessTaskSql.java)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java)
at com.sunopsis.dwg.dbobj.SnpSessTaskSqlI.treatTaskTrt(SnpSessTaskSqlI.java)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
at com.sunopsis.dwg.cmd.DwgCommandScenario.treatCommand(DwgCommandScenario.java)
at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
at com.sunopsis.dwg.cmd.e.i(e.java)
at com.sunopsis.dwg.cmd.g.y(g.java)
at com.sunopsis.dwg.cmd.e.run(e.java)
at java.lang.Thread.run(Unknown Source)
When i try to execute the scenario from command promt/java callout ..it is working fine.
Thanks. -
The session variable has no value definition
Hi Gurus,
For all Dashboard reports and Adhoc reports suddenly we are facing the below error for some users
A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 23006] The session variable, NQ_SESSION.AREA, has no value definition.Please have your System Administrator look at the log for more details on this error. (HY000)
In those dashboard reports we are not using any Area prompts even if we take only area column in analysis also it is showing the same error. But for admin the reports are coming fine only for some users it is showing like that but previously it was fine.
Regards,Hi,
this means your init block is not working. Check the init block why its not resulting in any data.
only when init block doesn't not result in data , server checks for default value for the variable.
Since there is no default value, you get this error.
Init blocks can fail because
1. connection pool is not working.
2. The table or view does not exist
3. no data in the table
4. filter in the sql in init block is not initialized if its coming from another session variable.
typically no data should bring no results in a report.
Since you have a session variable being part of the report, and that variable failed to initialize you get this error.
Thanks,
Satya Ranki Reddy -
Row wise Initialization - "Session Variable has no value Definition"
Hi,
I have gone through other posts relating to this error, but could not find a solution.
I have defined an initialization block with 'Data Source' as SELECT 'TEST_VARIABLE', cost_center from XX_COST_CENTER.
In the 'Edit Data Target', i have selected the 'Row Wise Initialization' option.
When i 'Test' this initialization block, using the 'Test' button, i get the exected output, with all the different Cost Centers being defined.
However, in the Presentation Services when i add a column and change its formula to VALUEOF(NQ_SESSION.TEST_VARIABLE), i get an error
+[nQSError: 23006] The session variable, NQ_SESSION.TEST_VARIABLE, has no value definition.+
Would appreciate some input, to check if i have missed any steps, or am doing something wrong
Thanks & Regards,
Ab
Edited by: obiee_user_ab on Jan 16, 2012 6:25 AMHi,
Error is caused because no value is returned from the sesision variable for the logged in user, you may check the NQquery.log file to see if the initblock was successfull and if that returned any rows, try setting default value in the session variable
It might also happen when
1. You created the variable as Repository variable in RPD and referring as session variable in Answers
2. It may also happen when you are referring the Session variable Name wrongly in Answers. E.g "Current Week" in RPD (2 Words) and CurrentWeek in Answers (Single word).
Try to use the same letter case for the name of the variable (upper and lower).
Hope this helps.
Regards
MuRam -
Error when executing multiple scenarios with same ProgramID for RFC-JDBC
Hi,
I am working on the RFC-JDBC scenario.
I see the following error in the dev_jrfc.trc file when I try to execute multiple scenarios which are using same program id (different communication channels).
RfcException:
message: Commit fault: com.sap.aii.af.rfc.afcommunication.RfcChannelMismatchException: Wrong Sender Agreement:The Sender agreement does not have channel CC_SAP_XXXXX configured for the functionmodule Z_XXXXX_SO_CREATE_CHANGE
Return code: RFC_CLOSED(6)
error group: 108
key: RFC_ERROR_INTERNAL
Can one program id be used for multiple scenarios? Or do we need to create a new ProgramId for each scenario.
Any response will be highly appreciated.
Thanks
ShyamHello Shyam,
>>>>>>>>Do you think that I still need to create a new Program Id for each of these processes.
You should not use same program ID for different RFC adapters. It is recommended by SAP (check FAQ's on RFC).
Although technically you can use but it gives you unpredictable behaviour based on connection pool. -
Urgent! I get value when executing query of VO in page, but null in plsql.
Hi, gentlemen,
Please help me with this issue.
1,My VO query sql is like this:
SELECT acra.receipt_number as receipt_number,
al_a.meaning as receipt_type, acra.currency_code as currency_code,
acrha_a.amount as receipt_amount,
acra.receipt_date as receipt_date,
acrha_b.gl_date as gl_date,
arm.NAME as payment_method,
acra.doc_sequence_value as doc_sequence_value,
al_b.meaning as status,
acrha_a.acctd_amount as acctd_amount,
rcta.trx_number as trx_number,
rc.customer_name as customer_name,
rc.customer_number as customer_number,
rc.jgzz_fiscal_code as taxpayer_id,
rsu.location as customer_site,
acra.customer_receipt_reference as customer_ref,
acra.comments as comments,
acra.cash_receipt_id as cash_receipt_id
FROM ar_receivable_applications_all araa,
ar_cash_receipts_all acra,
ar_lookups al_a,
ar_cash_receipt_history_all acrha_a,
ar_cash_receipt_history_all acrha_b,
ar_receipt_methods arm,
ar_lookups al_b,
ra_customer_trx_all rcta,
(SELECT hca.cust_account_id customer_id,
hca.org_id org_id,
hp.party_name customer_name,
hca.account_number customer_number,
hp.jgzz_fiscal_code
FROM hz_cust_accounts_all hca, hz_parties hp
WHERE hp.party_id = hca.party_id) rc,
(SELECT site_use_id site_use_id,
org_id org_id,
cust_acct_site_id address_id,
location location
FROM hz_cust_site_uses_all) rsu
WHERE araa.receivable_application_id = :1
and acra.cash_receipt_id = araa.cash_receipt_id
and al_a.lookup_type(+) = 'PAYMENT_CATEGORY_TYPE'
AND al_a.lookup_code(+) = acra.TYPE
AND acrha_a.cash_receipt_id = acra.cash_receipt_id
AND acrha_a.current_record_flag = nvl('Y', acra.receipt_number)
AND acrha_a.org_id = acra.org_id
AND acrha_b.cash_receipt_id = acra.cash_receipt_id
AND acrha_b.first_posted_record_flag(+) = 'Y'
AND arm.receipt_method_id = acra.receipt_method_id
AND al_b.lookup_type(+) = 'RECEIPT_CREATION_STATUS'
AND al_b.lookup_code(+) = acra.status
AND rcta.customer_trx_id(+) = acra.receivables_trx_id
AND rcta.org_id(+) = acra.org_id
AND rc.customer_id(+) = acra.pay_from_customer
AND rc.org_id(+) = acra.org_id
AND rsu.site_use_id(+) = acra.customer_site_use_id
AND rsu.org_id(+) = acra.org_id
2, I add the init func in VOImpl which is like this:
the receiptApplicationId is 136877.
public void initQuery(Number receiptApplicationId)
setWhereClauseParams(null); // always reset
setWhereClauseParam(0, receiptApplicationId);
executeQuery();
When executing the page, its value shows to be "現預金".
And I used String receipt_type = (String)oaRow.getAttribute("ReceiptType"); in AMImpl, its value is "現預金".
But when I execute above sql in pl/sql developer, its value is null.
I am really confused with this.
How could I get the whole running sql statement, and know why my issue is like this? It's very urgent, Thanks!This Query is Org Specific.(As this query using Ord_id attribute to fetch out row.)
you need to set org_id at PLSQL Developer or Toad Level.
Thanks, Avaneesh -
Cookie has a value when it should not
I've been working on a bit of bot mitigation and began using checks against Cookie.CFID to verify the client has a value in reply.
I'm using CF 9,0,1,274733
application.cfm includes the following:
<cfapplication sessionManagement="True" clientManagement ="False" setClientCookies="True" sessionTimeout="#CreateTimeSpan(0, 0, 2, 0)#">
I disable cookies in FF 23 browser to simulate a bot and conduct the test.
In my test the check for Cookie.CFID is as expected, empty. Here is a snippet of code used to test this.
<cftry>
<cfif REFind("YourIPAddress",CGI.REMOTE_ADDR)>
<cfif ! IsDefined("Cookie.cfid")>
<cfoutput>
No Cookies as expected!
</cfoutput>
</cfif>
<cfdump var="#Cookie#">
</cfif>
<cfcatch type="Any">
<cfdump var="#cfcatch#">
</cfcatch>
</cftry>
And the result expected from that test:
No Cookies as expected!
struct [empty]
However, with the same test environment configuration as above in another page I'm getting a non empty struct when dumping cookies like this:
<cfdump var="#Cookie#">
produces:
struct
CFID
SomeId
CFTOKEN
SomeToken
Is there some function or feature in ColdFusion known to cause this behavior or is this a bug?Kaja,
You found another bug. Thank you for the superbly detailed description. As a workaround, for your process's exception block, use this instead: exception when others then
htmldb_application.update_cache_with_write('P51_OBJ_ADDRESS',null);
return null;
end;You will encounter this bug rarely -- only when referencing the current value of an item whose source/default/post-computation results derived earlier on the page result in a null value and for which item a non-null value currently exists in the session state table.
Scott -
Selection screen value not assigning to the value when executed for the first time
Hi ,
Im My program at selection screen there are company code, vendor account and open items at key date(takes system date as default value).
Facing problem at open items at key date - Open key date parameter is taken from LDB - KDF.
First time when I am executing the program it is taking system date value in the selection screen variable even though I have given the different date.
This problem is only when I execute for first time or press enter without giving company code.
Can any one please help us to come out of this problem.
Regards
Sri BhargaviHI,
you can use the Event as AT SELECTION-SCREEN -
Call Tcode S_alr_87013560 with input values when execute the workitem
hi all
My requirment is to call report S_alr_87013560 with value in input fields ,when user execute the work item .
this report needs input 1 - controlling area
on next screen--- 2- Database profile .
then project ID and cost...
and this is the first activity of workflow definition.
Please advice me on the same.
Thanks in advance.
Deepanker DwivediHello,
Put whatever you need to do in a method of the BO associated with the workflow,
and then create a task (TS....) that calls that method. Then the step in the
workflow calls that task.
To call a report as you describe I'd guess you'd need to do a SUBMIT with BDC data.
regards
Rick Bakker
Hanabi Technology -
Undefined variable or classname snpRef (when executing Java within a KM)
Hi there,
I'm looking into ODI, specifically customizing scripts using java functions and have hit a bit of a problem.
Does the following error ring any bells?
Attempt to resolve method: getobjectname() on undefined variable or class name: snpref
I find it quite weird and strange that it cannot find snpref?
The script is below - as you can see, I'm just having a play around
drop table <%=odiRef.getTable("L", "COLL_NAME", "A")%>
+<%String sTestString = odiRef.getFrom(); %>+
+<%sTestString = sTestString.toLowerCase();%>+
+<%out.print("/*"+sTestString+"*/");%>+
As you can see, I have no clue where snpref is being called from. It may be an internal translation of odiRef but I thought snpRef has been deprecated!? What's also weird is that without the last or penultimate line, everything works fine?
For example, this works:
drop table <%=odiRef.getTable("L", "COLL_NAME", "A")%>
+<%String sTestString = odiRef.getFrom(); %>+
+<%out.print("/*"+sTestString+"*/");%>+
it gives:
drop table ODI_TESTING."C$_0SmalldatetimeTable"
+/*Testing.dbo.SmalldatetimeTable as SMALLDATETIMETABLE*/+
Also this works:
drop table <%=odiRef.getTable("L", "COLL_NAME", "A")%>
+<%String sTestString = "TeSt"; %>+
+<%sTestString = sTestString.toLowerCase(); %>+
+<%out.print("/*"+sTestString+"*/");%>+
outputting (as totally expected):
drop table ODI_TESTING."C$_0SmalldatetimeTable"
+/*test*/+
What gives? I know this is a bit theoretical but I'd really love to know what's causing it to break so spectacularly? Could it be some sort of misconfiguration?
Here's the stack trace:
com.sunopsis.tools.core.exception.SnpsSimpleMessageException: ODI-17517: Error during task interpretation.
Task: 4
java.lang.Exception: BeanShell script error: Sourced file: inline evaluation of: ``out.print("drop table ") ; out.print(snpRef.getObjectName("L", "%COL_PRF0Smallda . . . '' : Attempt to resolve method: getobjectname() on undefined variable or class name: snpref : at Line: 4 : in file: inline evaluation of: ``out.print("drop table ") ; out.print(snpRef.getObjectName("L", "%COL_PRF0Smallda . . . '' : snpref .getobjectname ( "l" , "smalldatetimetable" , "testing" , "" , "d" )
BSF info: Drop work table at line: 0 column: columnNo
+ at com.sunopsis.dwg.codeinterpretor.SnpCodeInterpretor.transform(SnpCodeInterpretor.java:485)+
+ at com.sunopsis.dwg.dbobj.SnpSessStep.createTaskLogs(SnpSessStep.java:711)+
+ at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:461)+
+ at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:2093)+
+ at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$2.doAction(StartSessRequestProcessor.java:366)+
+ at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:216)+
+ at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.doProcessStartSessTask(StartSessRequestProcessor.java:300)+
+ at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.access$0(StartSessRequestProcessor.java:292)+
+ at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$StartSessTask.doExecute(StartSessRequestProcessor.java:855)+
+ at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:126)+
+ at oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$2.run(DefaultAgentTaskExecutor.java:82)+
+ at java.lang.Thread.run(Thread.java:662)+
Caused by: org.apache.bsf.BSFException: BeanShell script error: Sourced file: inline evaluation of: ``out.print("drop table ") ; out.print(snpRef.getObjectName("L", "%COL_PRF0Smallda . . . '' : Attempt to resolve method: getobjectname() on undefined variable or class name: snpref : at Line: 4 : in file: inline evaluation of: ``out.print("drop table ") ; out.print(snpRef.getObjectName("L", "%COL_PRF0Smallda . . . '' : snpref .getobjectname ( "l" , "smalldatetimetable" , "testing" , "" , "d" )
BSF info: Drop work table at line: 0 column: columnNo
+ at bsh.util.BeanShellBSFEngine.eval(Unknown Source)+
+ at bsh.util.BeanShellBSFEngine.exec(Unknown Source)+
+ at com.sunopsis.dwg.codeinterpretor.SnpCodeInterpretor.transform(SnpCodeInterpretor.java:471)+
+ ... 11 more+
Text: drop table <?=snpRef.getObjectName("L", "%COL_PRF0SmalldatetimeTable", "W") ?>
+/*<?=snpref.getobjectname("l", "smalldatetimetable", "testing", "", "d")?> as smalldatetimetable*/.+
+ at com.sunopsis.dwg.dbobj.SnpSessStep.createTaskLogs(SnpSessStep.java:738)+
+ at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:461)+
+ at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:2093)+
+ at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$2.doAction(StartSessRequestProcessor.java:366)+
+ at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:216)+
+ at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.doProcessStartSessTask(StartSessRequestProcessor.java:300)+
+ at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.access$0(StartSessRequestProcessor.java:292)+
+ at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$StartSessTask.doExecute(StartSessRequestProcessor.java:855)+
+ at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:126)+
+ at oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$2.run(DefaultAgentTaskExecutor.java:82)+
+ at java.lang.Thread.run(Thread.java:662)+
Thanks!
Matt
Edited by: 979675 on Jan 9, 2013 1:04 AMOkay here is the solution.
I tried 100s of ways but it didnt work. So the alternative is create one more step in your KM with jython technology. Below code will print it in lowercase.
sTestString= '<%=sTestString%>'
raise (sTestString.lower())
Note: Click on ignore error. So that the flow will move on.
Bhabani -
ODI - Error when Executing a Scenario from an OS Command
I am developing a project with ODI on Oracle 10g, but I have had some troubles with it.
Problem:
I have a scenario that I run from the Designer and it works correctly.
But, the problem is when I want to run it from a terminal command from an Operating System (OS).
For this, I did the following steps:
1.-Configure file odiparams.bat file from the path C: \ OraHome_1 \ oracledi \bin as follows:
set ODI_SECU_DRIVER=oracle.jdbc.driver.OracleDriver
set ODI_SECU_URL=jdbc:oracle:thin:@192.168.1.114:1521:orcle
set ODI_SECU_USER=ODI_REPMSTR
set ODI_SECU_ENCODED_PASS=eyfpRSdWr9N5rARKkCmCNMVrEp
set ODI_SECU_WORK_REP=ODI_REPWORK
set ODI_USER=SUPERVISOR
set ODI_ENCODED_PASS=LELKIELGLJMDLKMGHEHJDBGBGFDGGH
2.- Launching a Listener Agent
Start\All programs\Oracle\Oracle Data Integrator\Agent
3.- Run the next command:
startscen ACT_ETL_CGA 001 GLOBAL -NAME=AGENT_1 "-v=5"
But, at the end of the execution, it shows one list like that
FirstDate:2010-03-01 17:10:24.0
FirstUser:SUNOPSIS_INSTALL
IndChange:I
IntJavaName:com.sunopsis.dwg.dbobj.SnpState
IObjects:4700
LastDate:2010-03-01 17:10:24.0
LastUser:SUNOPSIS_INSTALL
ObjName:OBJ_SNPSTATE_4700
SecuPos:570, ExtVersion:null
And last:
java.lang.NullPointerException
DwgJv.main: Salida. Código de retorno:-1
Can you please help.
Thanks.
Arturo RubioHello,
Try to remove and recreate your package and scenario, I had the same issue and solved doing it.
It seems for me that the package cannot update its contents, for example, if you change something in your interface, you must recreate your package and scenario to update the changes.
What ODI version do you use? If you use an old version, try to update to ODI 10.1.3.5
Regards,
Wallace Galvão
São Paulo - Brazil -
Form has missing values when the database sourced column is less than 0
Hello,
I have Apex 4.0. I am making a very simiple form on a table with lots of number columns. When I go into the form linked from a report, it pulls all of the values in from the table for a certain row except for the numbers that are less than 1. Very strange.
Any ideas?
Thanks,
MarkJoe Upshaw wrote:
No, there is, for sure, no such restriction, Mark. To convince yourself of this, just manually add a Page Item to your form. Set "Display As" to number field and set the default to -999. It will display -999.
Could it be a mismatch between the data type of your source SELECT and the "Display As" on the form field? On the main report, what is the data type for the corresponding column?
On the field, is the Source Type "Database Column" and is the "Source value or expression" set to the correct, corresponding column name?Also
When I go into the form linked from a report, it pulls all of the values in from the tableHow does this happen?
Any other processes run on page rendering?
Any Post Calculation Computations or Format Masks used on the form items? -
Has no value definition - Session INIT Block.
Hi,
I have a Session initialization block for Fetching Departments from a Security table for the user logging in.
One user can have Multiple Departments assigned to him, so i enabled Row-wise initialization in INIT Block.
But when a user not assigned to any departments logs in, i am getting 'Session variable has no value definition' error in all the reports. But i should instead pass a default value when SQL in INIT Block is not returning anything. Like '0'.
How can i do this? please respond.
Thanks
SwamiHi Swami,
When the query fetches a result set, the variable gets initialized.
But, when the query doesn't fetch any rows, the variable doesn't gets initialized and hence "no value definition" errors out.
So, to avoid this,
In the query itself, place an exception condition which returns '0'.
select dept_name from table
where user_name = ':user'
UNION
select '0' from table
where user_name <> ':user'or you can use like this
select CASE WHEN user_name = ':user' THEN dept_name ELSE '0' END
from tableP.S: Query written orally. (Pls adjust the query accordingly)
Regards,
Raghu
Maybe you are looking for
-
Is there a way to play to 2 blue tooth devices at the same time?
is there a way to play to 2 blue tooth devices at the same time from my ipad?
-
How to do validation of input fields
Hi all, I have a rquirement to do the validation of input fields.Can anybody explain me how to go for that???Please explain in detail.U can also give me a link where i can find the tutorial for doing this.
-
CS4 bringing photoshop layered files into illustrator - blending modes
Hello. I have a layered photoshop file that is being brought into illustrator. One layer is a drop shadow and is set to multiply within photoshop. The drop shadow is NOT an effect. It's just a plain layer of a drop shadow. When I bring it into illust
-
Make folders or boxes to hold apps
if anyone can help me with my question, I would be thankfully. I am trying to organize my apps. Thanks, E
-
When I point iCab 4.8 to http://www.java.com/en/download/testjava.jsp, it tells me I am running J2SE Runtime 6 Update 26 (i.e., Java 1.6). However, when I point Firefox 11.0 to the same page, the applet there says that I am running J2SE Runtime 5 Upd