Exception while evaluating expression: REQTOTAL = Query1450_APPROVAL_VAL;
ReferenceError: "Query1450_APPROVAL_VAL" is not defined. (threadScript#1)
If you a using the ReqApproval delivered flow then that is actually a workunit variable already being passed, you don't have to query the REQHEADER table to get that value, reference the workunit variable RQH_APPROVAL_VAL instead.
As far as the error, I have seen this in the past where it was security and 0 records get returned so it doesn't recognize the value of the field returned from the DME. is there a value larger than 0 in Query1450_RECORD_COUNT?
Gary - This was just an example. I'm trying to get other variables that are not already global variables. Thanks. David - If I run the query in the buider (on the test API screen), this is the result I get: Is there another way to run it? Here is the entire message, for the query and assign node, in the debug log: Executed activity : Type=START, ActivityName=Start, ActivityId=START84, Workunit=64532 Date:07/22/2009 Time:10:53:55 COMPANY~REQ-NUMBER~REQUESTER~REQ-LOCATION~REQ-DEL-DATE~BUYER-CODE~VENDOR~APPROVAL-VAL~REQUESTER.NAME~ACTIVITY~FROM-LOCATION~PURCH-FR-LOC 10~40774~23387~10IT~~6~ 1330~10.00~SHARI TRANTAS~~10IT~ Executing activity : Type=QUERY, ActivityName=Query1450, ActivityId=QUERY85, Workunit=64532 Date:07/22/2009 Time:10:53:55 Executing Process Query Activity Query1450..... Executed activity : Type=QUERY, ActivityName=Query1450, ActivityId=QUERY85, Workunit=64532 Date:07/22/2009 Time:10:53:56 Executing activity : Type=ASSGN, ActivityName=Assign8320, ActivityId=ASSGN87, Workunit=64532 Date:07/22/2009 Time:10:53:56 Exception while evaluating expression: REQTOTAL = Query1450_APPROVAL_VAL; ReferenceError: "Query1450_APPROVAL_VAL" is not defined. (threadScript#1) Exception while evaluating expression: REQUESTER = Query1450_REQUESTER; ReferenceError: "Query1450_REQUESTER" is not defined. (threadScript#1) Exception while evaluating expression: REQCO = Query1450_COMPANY; ReferenceError: "Query1450_COMPANY" is not defined. (threadScript#1) Exception while evaluating expression: REQNUM = Query1450_REQ_NUMBER; ReferenceError: "Query1450_REQ_NUMBER" is not defined. (threadScript#1) Exception while evaluating expression: REQNAME = Query1450_REQUESTER_NAME; ReferenceError: "Query1450_REQUESTER_NAME" is not defined. (threadScript#1) Variables in Process : DesignerTest Workunit : 64532, ActivityType=ASSGN, ActivityName=Assign8320, ActivityId=ASSGN87 Date:07/22/2009 Time:10:53:56 REQTOTAL(Type=Double) = null REQUESTER(Type=String) = null REQCO(Type=String) = null REQNUM(Type=Integer) = null REQNAME(Type=String) = null
Gary - This was just an example. I'm trying to get other variables that are not already global variables. Thanks. David - If I run the query in the buider (on the test API screen), this is the result I get: Is there another way to run it? Here is the entire message, for the query and assign node, in the debug log: Executed activity : Type=START, ActivityName=Start, ActivityId=START84, Workunit=64532 Date:07/22/2009 Time:10:53:55
COMPANY~REQ-NUMBER~REQUESTER~REQ-LOCATION~REQ-DEL-DATE~BUYER-CODE~VENDOR~APPROVAL-VAL~REQUESTER.NAME~ACTIVITY~FROM-LOCATION~PURCH-FR-LOC
10~40774~23387~10IT~~6~ 1330~10.00~SHARI TRANTAS~~10IT~
Executing activity : Type=QUERY, ActivityName=Query1450, ActivityId=QUERY85, Workunit=64532 Date:07/22/2009 Time:10:53:55
Executing Process Query Activity Query1450.....
Executed activity : Type=QUERY, ActivityName=Query1450, ActivityId=QUERY85, Workunit=64532 Date:07/22/2009 Time:10:53:56
Executing activity : Type=ASSGN, ActivityName=Assign8320, ActivityId=ASSGN87, Workunit=64532 Date:07/22/2009 Time:10:53:56
Exception while evaluating expression: REQUESTER = Query1450_REQUESTER;
ReferenceError: "Query1450_REQUESTER" is not defined. (threadScript#1)
Exception while evaluating expression: REQCO = Query1450_COMPANY;
ReferenceError: "Query1450_COMPANY" is not defined. (threadScript#1)
Exception while evaluating expression: REQNUM = Query1450_REQ_NUMBER;
ReferenceError: "Query1450_REQ_NUMBER" is not defined. (threadScript#1)
Exception while evaluating expression: REQNAME = Query1450_REQUESTER_NAME;
ReferenceError: "Query1450_REQUESTER_NAME" is not defined. (threadScript#1)
Variables in Process : DesignerTest Workunit : 64532, ActivityType=ASSGN, ActivityName=Assign8320, ActivityId=ASSGN87 Date:07/22/2009 Time:10:53:56
REQTOTAL(Type=Double) = null
REQUESTER(Type=String) = null
REQCO(Type=String) = null
REQNUM(Type=Integer) = null
REQNAME(Type=String) = null
Is that the only query that doesn't work, or do all queries return 0 records on the server?
Posted By ConsultDavidW on 07/22/2009 12:03 PM You said earlier that you left off the brackets when referencing the appProdline variable? The angle brackets with ! are required and that could be why your query is failing.
You say if you run your query within PF Designer then it works but not when you run it on the server?