I have a mapping that has 2 parameters:
mBegDate --> Type=parameter --> DataType = nstring 11
mEndDate --> Type=parameter --> DataType = nstring 11
I'm trying to pass a date via the WorkFlow Variables and use in the mappings SQ Sql Override.
Both wf variables are set in the WF's presession_variable_assignment
wBegDate = 01-FEB-2014
wEndDate = 01-FEB-2015
SQ Sql Override:
SELECT CUST_UNIV_CLM_HDR.HEALTH_SYSTEM_ID,
CUST_UNIV_CLM_HDR.HEALTH_SYSTEM_SOURCE_ID,
CUST_UNIV_CLM_HDR.CLM_POP_TYPE,
CUST_UNIV_CLM_HDR.CLM_SRC_TYPE,
CUST_UNIV_CLM_HDR.ADMS_DT,
CUST_UNIV_CLM_HDR.DSCHG_DT,
CUST_UNIV_CLM_HDR.MBR_CLM_ID,
CUST_UNIV_CLM_HDR.PRI_PROV_NBR,
CUST_UNIV_CLM_LN.CLM_ID,
CUST_UNIV_CLM_LN.CLM_LN,
CUST_UNIV_CLM_LN.REV_CD,
CUST_UNIV_CLM_LN.POS,
CUST_UNIV_CLM_LN.PROC_CD,
CUST_UNIV_CLM_LN.PAID_AMT,
CUST_UNIV_CLM_LN.CLM_PAID_DT,
CUST_UNIV_CLM_LN.ALLOWED_AMT,
CUST_UNIV_CLM_LN.TOTAL_CHARGES
FROM
CUST_UNIV_CLM_HDR, CUST_UNIV_CLM_LN
WHERE CUST_UNIV_CLM_HDR.CLM_ID = CUST_UNIV_CLM_LN.CLM_ID
AND CUST_UNIV_CLM_HDR.HEALTH_SYSTEM_SOURCE_ID = mHSSID
AND TRUNC(CUST_UNIV_CLM_HDR.ADMS_DT) BETWEEN TO_DATE(mBegDate,'DD-MON-YYYY') AND TO_DATE(mEndDate,'DD-MON-YYYY')
ORDER BY
CUST_UNIV_CLM_LN.CLM_ID,
CUST_UNIV_CLM_LN.CLM_LN
However i'm getting an error:
Message: SQL Error [
ORA-00904: "FEB": invalid identifier
Message: SQ Instance [SQ_UNIV_CLM] User specified SQL Query [SELECT CUST_UNIV_CLM_HDR.HEALTH_SYSTEM_ID,
CUST_UNIV_CLM_HDR.HEALTH_SYSTEM_SOURCE_ID,
CUST_UNIV_CLM_HDR.CLM_POP_TYPE,
CUST_UNIV_CLM_HDR.CLM_SRC_TYPE,
CUST_UNIV_CLM_HDR.ADMS_DT,
CUST_UNIV_CLM_HDR.DSCHG_DT,
CUST_UNIV_CLM_HDR.MBR_CLM_ID,
CUST_UNIV_CLM_HDR.PRI_PROV_NBR,
CUST_UNIV_CLM_LN.CLM_ID,
CUST_UNIV_CLM_LN.CLM_LN,
CUST_UNIV_CLM_LN.REV_CD,
CUST_UNIV_CLM_LN.POS,
CUST_UNIV_CLM_LN.PROC_CD,
CUST_UNIV_CLM_LN.PAID_AMT,
CUST_UNIV_CLM_LN.CLM_PAID_DT,
CUST_UNIV_CLM_LN.ALLOWED_AMT,
CUST_UNIV_CLM_LN.TOTAL_CHARGES
FROM
CUST_UNIV_CLM_HDR, CUST_UNIV_CLM_LN
WHERE CUST_UNIV_CLM_HDR.CLM_ID = CUST_UNIV_CLM_LN.CLM_ID
AND CUST_UNIV_CLM_HDR.HEALTH_SYSTEM_SOURCE_ID = 1677509
AND TRUNC(CUST_UNIV_CLM_HDR.ADMS_DT) BETWEEN TO_DATE(01-FEB-2014,'DD-MON-YYYY') AND TO_DATE(01-FEB-2015,'DD-MON-YYYY')
ORDER BY
CUST_UNIV_CLM_LN.CLM_ID,
CUST_UNIV_CLM_LN.CLM_LN]
Any thoughts as to why I'd be getting this error would be appreciated.
Thank you.
mBegDate --> Type=parameter --> DataType = nstring 11
mEndDate --> Type=parameter --> DataType = nstring 11
I'm trying to pass a date via the WorkFlow Variables and use in the mappings SQ Sql Override.
Both wf variables are set in the WF's presession_variable_assignment
wBegDate = 01-FEB-2014
wEndDate = 01-FEB-2015
SQ Sql Override:
SELECT CUST_UNIV_CLM_HDR.HEALTH_SYSTEM_ID,
CUST_UNIV_CLM_HDR.HEALTH_SYSTEM_SOURCE_ID,
CUST_UNIV_CLM_HDR.CLM_POP_TYPE,
CUST_UNIV_CLM_HDR.CLM_SRC_TYPE,
CUST_UNIV_CLM_HDR.ADMS_DT,
CUST_UNIV_CLM_HDR.DSCHG_DT,
CUST_UNIV_CLM_HDR.MBR_CLM_ID,
CUST_UNIV_CLM_HDR.PRI_PROV_NBR,
CUST_UNIV_CLM_LN.CLM_ID,
CUST_UNIV_CLM_LN.CLM_LN,
CUST_UNIV_CLM_LN.REV_CD,
CUST_UNIV_CLM_LN.POS,
CUST_UNIV_CLM_LN.PROC_CD,
CUST_UNIV_CLM_LN.PAID_AMT,
CUST_UNIV_CLM_LN.CLM_PAID_DT,
CUST_UNIV_CLM_LN.ALLOWED_AMT,
CUST_UNIV_CLM_LN.TOTAL_CHARGES
FROM
CUST_UNIV_CLM_HDR, CUST_UNIV_CLM_LN
WHERE CUST_UNIV_CLM_HDR.CLM_ID = CUST_UNIV_CLM_LN.CLM_ID
AND CUST_UNIV_CLM_HDR.HEALTH_SYSTEM_SOURCE_ID = mHSSID
AND TRUNC(CUST_UNIV_CLM_HDR.ADMS_DT) BETWEEN TO_DATE(mBegDate,'DD-MON-YYYY') AND TO_DATE(mEndDate,'DD-MON-YYYY')
ORDER BY
CUST_UNIV_CLM_LN.CLM_ID,
CUST_UNIV_CLM_LN.CLM_LN
However i'm getting an error:
Message: SQL Error [
ORA-00904: "FEB": invalid identifier
Message: SQ Instance [SQ_UNIV_CLM] User specified SQL Query [SELECT CUST_UNIV_CLM_HDR.HEALTH_SYSTEM_ID,
CUST_UNIV_CLM_HDR.HEALTH_SYSTEM_SOURCE_ID,
CUST_UNIV_CLM_HDR.CLM_POP_TYPE,
CUST_UNIV_CLM_HDR.CLM_SRC_TYPE,
CUST_UNIV_CLM_HDR.ADMS_DT,
CUST_UNIV_CLM_HDR.DSCHG_DT,
CUST_UNIV_CLM_HDR.MBR_CLM_ID,
CUST_UNIV_CLM_HDR.PRI_PROV_NBR,
CUST_UNIV_CLM_LN.CLM_ID,
CUST_UNIV_CLM_LN.CLM_LN,
CUST_UNIV_CLM_LN.REV_CD,
CUST_UNIV_CLM_LN.POS,
CUST_UNIV_CLM_LN.PROC_CD,
CUST_UNIV_CLM_LN.PAID_AMT,
CUST_UNIV_CLM_LN.CLM_PAID_DT,
CUST_UNIV_CLM_LN.ALLOWED_AMT,
CUST_UNIV_CLM_LN.TOTAL_CHARGES
FROM
CUST_UNIV_CLM_HDR, CUST_UNIV_CLM_LN
WHERE CUST_UNIV_CLM_HDR.CLM_ID = CUST_UNIV_CLM_LN.CLM_ID
AND CUST_UNIV_CLM_HDR.HEALTH_SYSTEM_SOURCE_ID = 1677509
AND TRUNC(CUST_UNIV_CLM_HDR.ADMS_DT) BETWEEN TO_DATE(01-FEB-2014,'DD-MON-YYYY') AND TO_DATE(01-FEB-2015,'DD-MON-YYYY')
ORDER BY
CUST_UNIV_CLM_LN.CLM_ID,
CUST_UNIV_CLM_LN.CLM_LN]
Any thoughts as to why I'd be getting this error would be appreciated.
Thank you.