ORA-01790: expression must have same datatype as corresponding expression

can somebody see a problem with the query below:
error message: ORA-01790: expression must have same datatype as corresponding expression
select CREV_D_POSTMARK,CRF1_A_PREM_CREDIT,CRF1_A_SPREM_FLAT,CRF1_A_SPREM_VAR,HSTA_C_UPDATE_SEQ, DTAX_C_LINE_SEQ,
SCHA_C_PV_EIN_5500, SCHA_C_PV_PN_5500, CRBH_D_RECEIVE, SCHA_A_SIG_EVENT,SCHA_C_EIN_PAGE_2, SCHA_C_PN_PAGE_2,
SCHA_D_SIGN_ADMN, SCHA_D_UNF_BEN, SCHA_F_INIT_412I, SCHA_F_INIT_AJ_ACT, SCHA_F_INIT_AJ_ADM, SCHA_F_INIT_ENTITL,
SCHA_F_INIT_GEN_RL, SCHA_F_INIT_NO_UNF, SCHA_F_INIT_NOPROF, SCHA_F_INIT_PART, SCHA_F_INIT_REQMT, SCHA_F_INIT_SIG_EV,
SCHA_L_SIGN_NAME, SCHA_A_ADJ_VAL_RCV, SCHA_A_ADJ_VAL_TOT, SCHA_A_ADJ_VAL_ASS, SCHA_A_ADJ_VL_NRCV, SCHA_A_ASSET_CONT,
SCHA_A_ASSET_DISC, SCHA_A_ASSET_VALUE, SCHA_A_SPREM_VAR, SCHA_A_VBVAL_NRCV, SCHA_A_VBVAL_RCV, SCHA_A_VBVAL_TOTAL,
SCHA_C_EIN, SCHA_C_PN, SCHA_C_FORM_YEAR, SCHA_D_ASSET_VALUE,SCHA_D_DETER_AS_OF, SCHA_D_DIST_INVOL, SCHA_D_STAND_TERM,
SCHA_D_VAL_PYC, SCHA_F_NO_SIG_EV,SCHA_F_SIG_EVENT_1, SCHA_F_SIG_EVENT_2, SCHA_F_SIG_EVENT_3, SCHA_F_SIG_EVENT_4,
SCHA_F_SIG_EVENT_5,SCHA_F_SIG_EVENT_6, SCHA_F_SIG_EVENT_7, SCHA_N_PLAN_NAME, SCHA_P_REQ_INT_RAT, SCHA_P_VBVAL_NRCV,
SCHA_P_VBVAL_RCV, SCHA_Q_ASS_RET_AGE, SCHA_T_ACCRUAL_FAC, SCHA_F_CERT_NREQ_I, SCHA_F_CERT_REQ_I,SCHA_F_CERT_EXP_A,
SCHA_F_SIG_EV_NEG, SCHA_A_INT_ADJ_VAL, SCHA_D_SIGN_ACTU, SCHA_C_ENCL_SEQ,DTAX_C_UID, DTAX_A_AMOUNT_PAID, CRF1_A_NET_PREMIUM,
CRBH_Q_SOA_PAYMENT, CRBH_A_CONTROL_TOT,CSOA_A_PREM_PAYMT, CSOA_A_PEN_PAYMENT, CSOA_A_INT_PAYMENT, CSOA_A_PAYMENT from [email protected] minus
select CREV_D_POSTMARK,CRF1_A_PREM_CREDIT,CRF1_A_SPREM_FLAT,CRF1_A_SPREM_VAR,HSTA_C_UPDATE_SEQ, DTAX_C_LINE_SEQ,
SCHA_C_PV_EIN_5500, SCHA_C_PV_PN_5500, CRBH_D_RECEIVE, SCHA_A_SIG_EVENT,SCHA_C_EIN_PAGE_2, SCHA_C_PN_PAGE_2,
SCHA_D_SIGN_ADMN, SCHA_D_UNF_BEN, SCHA_F_INIT_412I, SCHA_F_INIT_AJ_ACT, SCHA_F_INIT_AJ_ADM, SCHA_F_INIT_ENTITL,
SCHA_F_INIT_GEN_RL, SCHA_F_INIT_NO_UNF, SCHA_F_INIT_NOPROF, SCHA_F_INIT_PART, SCHA_F_INIT_REQMT, SCHA_F_INIT_SIG_EV,
SCHA_L_SIGN_NAME, SCHA_A_ADJ_VAL_RCV, SCHA_A_ADJ_VAL_TOT, SCHA_A_ADJ_VAL_ASS, SCHA_A_ADJ_VL_NRCV, SCHA_A_ASSET_CONT,
SCHA_A_ASSET_DISC, SCHA_A_ASSET_VALUE, SCHA_A_SPREM_VAR, SCHA_A_VBVAL_NRCV, SCHA_A_VBVAL_RCV, SCHA_A_VBVAL_TOTAL,
SCHA_C_EIN, SCHA_C_PN, SCHA_C_FORM_YEAR, SCHA_D_ASSET_VALUE,SCHA_D_DETER_AS_OF, SCHA_D_DIST_INVOL, SCHA_D_STAND_TERM,
SCHA_D_VAL_PYC, SCHA_F_NO_SIG_EV,SCHA_F_SIG_EVENT_1, SCHA_F_SIG_EVENT_2, SCHA_F_SIG_EVENT_3, SCHA_F_SIG_EVENT_4,
SCHA_F_SIG_EVENT_5,SCHA_F_SIG_EVENT_6, SCHA_F_SIG_EVENT_7, SCHA_N_PLAN_NAME, SCHA_P_REQ_INT_RAT, SCHA_P_VBVAL_NRCV,
SCHA_P_VBVAL_RCV, SCHA_Q_ASS_RET_AGE, SCHA_T_ACCRUAL_FAC, SCHA_F_CERT_NREQ_I, SCHA_F_CERT_REQ_I,SCHA_F_CERT_EXP_A,
SCHA_F_SIG_EV_NEG, SCHA_A_INT_ADJ_VAL, SCHA_D_SIGN_ACTU, SCHA_C_ENCL_SEQ,DTAX_C_UID, DTAX_A_AMOUNT_PAID, CRF1_A_NET_PREMIUM,
CRBH_Q_SOA_PAYMENT, CRBH_A_CONTROL_TOT,CSOA_A_PREM_PAYMT, CSOA_A_PEN_PAYMENT, CSOA_A_INT_PAYMENT, CSOA_A_PAYMENT from
[email protected] where to_number(to_char(asum_d_pyc,'YYYY')) = 2001;
Message was edited by:
mc

Any sugestion on easy way to verify what coulmn may have different datatype?
The table has quite a few columns, will take time to do it manually....
Any other better way to compare this two tables?

Similar Messages

  • ORA-1790: expression must have same datatype as corresponding expression

    I get the subject error when I call a stored procedure from a HTML DB app. The sp contains a query with a MINUS in it. When I run that MINUS query in SQL*Plus it runs fine.
    The query is
    SELECT /*+ cardinality(t 20) */ * FROM
    (SELECT
        to_char(column_value) col1,
        to_number(:b1) col2
    FROM TABLE(str2tbl(cast(:b2 AS VARCHAR2(1000))))
    MINUS
    SELECT    to_char(SUBSTR(column_value,1,INSTR(column_value,'|')-1)) col1,
        to_number(SUBSTR(column_value,INSTR(column_value,'|')+1)) col2
    FROM TABLE(str2tbl(cast(:b3 AS VARCHAR2(1000))))
    ) tAny ideas? Thanks

    Works fine.
    Actually, if I take out the outermost SELECT (which I have just to put the cardinality hint), it works fine!
    Strange. Oh well.
    Thanks

  • Ora-01790 Expression must have same datatype as correspoding expression

    Can somebody help me how to fix this.
    award_number is varchar2(30)
    The problem is with award_name. Throwing an error.
    Not sure why it is giving problem.
    ora-01790 Expression must have same datatype as correspoding expression
    SELECT *  from award_test
            UNPIVOT(VAL for operator in(   
    AWARD_NAME,                                                                                                                                                                                                      
    TOTAL_PROCEEDS,                                                                                                                                                                                                             
    EARNING_PROCS ,                                                                                                                                                                                                              
    TOT_PROCS_EARNINGS ,                                                                                                                                                                                                           
    GROSS_PROCS    ,                                                                                                                                                                                                               
    PROC_REF_DEF_ESCR ,                                                                                                                                                                                                        
    OTH_UNSP_PROCS ,                                                                                                                                                                                                              
    ISSUANCE_COST ,                                                                                                                                                                                                            
    WORK_CAP_EXP ))
            PIVOT(max(VAL) for award_number in  ('XIAAE' as "XIAAE",'XIBNG' as "XIBNG" ))

    it has not resolved my problem. Still the problem is there. if i remove award_name it is working fine. only problem with award_name

  • Please help!!! This expression must have a constant value

    I try to work with cfc and cfinvoke and not sure why I got this error. Searched
    in google for answer but still don't get any. Can anyone help please...not sure where
    I had it wrong...I thought my codes should work (?)
    When a form is submitted I have this codes in formaction.cfm, I captured all the form fields in a structure:
    <CFSET st_Registration = {Salutation="#Trim(Form.Salutation)#", FName = "#Trim(Form.FName)#", MName = "#Trim(Form.Mname)#",LName =  "#Trim(Form.LName)#" .......etc }/>
    Then I set all the required fields:
     <CFSET ReqFields ="Salutation,FName,LName,Addr1,City,State,Zip,Country,Phone,Email,username,password">
    <!--- Then send the structure and req. fiels list to a function located in a component to verify required fields ---><cfset CreateUserInfo = createObject("component", "airbucks.cfcomp.VerifyInput").init()> 
    <CFINVOKE component="#CreateUserInfo#" method="Verify_ReqFields" st_Registration = "#st_Registration#" RequiredFields ="#ReqFields#" returnvariable="VerifyResult">
    <CFIF #VerifyResult# IS "">
    <cfdump var="#st_Registration#">
    <CFELSE>
      <CFIF #st_Registration["Country"]# IS "USA">
    <CFINCLUDE template="registration_ret.cfm">
      <CFELSE>
    <CFINCLUDE template="registration_other_ret.cfm">
      </CFIF>
    </CFIF>
    <!--- Below is part of the component with the function for checking required fields --->
    <cfcomponent displayname="VerifyInputData" output="false"> <CFFUNCTION name="Init" access="public" returntype="any" output="false" hint="Returns an initialized component instance.">
     <!--- Return This reference. --->
     <cfreturn THIS />
     </CFFUNCTION>
     <!--- Verify required fields --->
     <CFFUNCTION name="Verify_ReqFields">
     <cfargument name="st_Registration" type="struct" required="true">
     <cfargument name="RequiredFields" type="string" required="true"> 
    <!--- check if req. fields are blank --->
     <CFSET ErrorList = "">
     <cfloop collection="#arguments.st_Registration#" item="KEY">
     <CFIF #Trim(st_Registration[KEY])# IS "">
     <CFSWITCH expression="#Trim(KEY)#">
     <CFCASE value="#arguments.RequiredFields#">
     <CFSET ErrorList = ListAppend(ErrorList, "#KEY#")>
     </CFCASE>
     </CFSWITCH>
     </CFIF>  
    </cfloop>
     <CFRETURN ErrorList >
     </CFFUNCTION>
      </cfcomponent>
        Here is the error:  
    The following information is meant for the website developer for debugging purposes.
    Error Occurred While Processing Request
    This expression must have a constant value.
    The error occurred in C:\Inetpub\wwwroot\AirBucks\registrationaction.cfm: line 55
    53 :                              
    54 : <!--- Verify required field based on the required list set above --->
    55 : <cfset CreateUserInfo = createObject("component", "airbucks.cfcomp.VerifyInput").init()>
    56 : <CFINVOKE component="#CreateUserInfo#" method="Verify_ReqFields" st_Registration = "#st_Registration#" RequiredFields ="#ReqFields#" returnvariable="VerifyResult">
    57 :      

    Thank you and I'll change my codes.
    When I did the following, I still get the same error.
    Isn't it CreateUserInfo is the object?
    <cfset CreateUserInfo = createObject("component", "airbucks.cfcomp.VerifyInput").init()>
    <CFSET VerifyResult = CreateUserInfo.Verify_ReqFields(st_Registration, ReqFields)> 
    Using cfinvoke used to work.
    The following information is meant for the website developer for debugging purposes.
    Error Occurred While Processing Request
    This expression must have a constant value.
    The error occurred in C:\Inetpub\wwwroot\AirBucks\registrationaction.cfm: line 54
    52 : <!--- Verify required field based on the required list set above --->
    53 :
    54 : <cfset CreateUserInfo = createObject("component", "airbucks.cfcomp.VerifyInput").init()>
    55 : <!---
    56 : <CFINVOKE component="#CreateUserInfo#" method="Verify_ReqFields" st_Registration

  • Controlling area & operating concern must have same fiscal year variant

    Dear Experts,
    Whether i can assign two controlling area with different fiscal year variant to one operating concern.
    Getting error 'Controlling area & operating concern must have same fiscal year variant'
    Fiscal year variant must be same or Number of posting period must be same.
    regards
    RR
    Moderator: Please, search before posting

    Hi ajay,
    I did the testing also,
    System is showing error msg' Controlling area & operating concern must have same fiscal year variant'
    But someone told me. number of Posting period must be same not fiscal year variant.That why i am confused.
    I assigned all company code same posting period variant in different controlling area.Still facing same error.
    That why i have posted in SDN.
    regards
    RR

  • WLC's must have same config

    Hello ,
    I have three WLC's - WLC1, WLC2 and WLC3. They are part of mobility groups. I need  WLC-2 and WLC-3 to have the same config of WLC-1.
    If I upload the WLC-1 configs on WLC-2 and WLC-3 , will it work ? 
    Thanks
     

    Hi,
    upload the config from WLC1.
    Make changes(Ip adderss..and dynamic interface ip...etc) in config for WLC2 and then download to WLC2 by chossing command > Download from wlc gui, and same for wlc3.
    Regards

  • All queries in an SQL statement containing a UNION  operator must have an equal number of expressions in their target lists.

    Cant Add  OCRD.CardName,CRD7.ECCNo to this  query.Please Help.
    declare @FDate as datetime
    declare @TDate as datetime
    declare @Location as VARCHAR (30)
    /* SELECT FROM [dbo].[OLCT] S0 WHERE */ SET  @Location = /* S0.Location*/ '[%0]'
    /* SELECT FROM [dbo].[OINM] S1 WHERE */ SET  @FDate = /* S1.TaxDate*/ '[%1]'
    /* SELECT FROM [dbo].[OINM] S2 WHERE */ SET  @TDate = /* S2.TaxDate*/ '[%2]'
    SELECT
      'Sales'Document,OBTN.DistNumber
      ,NNM1.SeriesName,OINV.DocNum,OCRD.CardName,CRD7.ECCNo,OINV.DocDate,OITM.SWW [HSN Number],INV1.ItemCode,INV1.Dscription,(ITL1.Quantity*-1) [Quantity]
      ,OEDR.Name,OBTN.U_EDuty*(ITL1.Quantity*-1) EDuty,OBTN.U_EDuty EDutyUnit,OBTN.U_EDCess*(ITL1.Quantity*-1) EDCess,OBTN.U_EDHSCess*(ITL1.Quantity*-1) EDHSCess
      ,OBTN.U_EDImpDuty SADUnit,OBTN.U_EDImpDuty*(ITL1.Quantity*-1) SADTotal
      ,OBTN.U_MfgName,OBTN.U_MfgInvNo,OBTN.U_MfgInvDt,OBTN.U_MfgQty,OBTN.U_MfgValue
      ,OBTN.U_MfgDuty,OBTN.U_MfgCess,OBTN.U_MfgHSCess,OBTN.U_MfgImport
      ,OBTN.U_SupName,OBTN.U_SupInvNo,OBTN.U_SupInvDt,OBTN.U_SupQty,OBTN.U_SupValue
      ,OBTN.U_SupDuty,OBTN.U_SupCess,OBTN.U_SupHSCess,OBTN.U_SupImport
    FROM
      INV1
    INNER JOIN
      OINV ON INV1.DocEntry=OINV.DocEntry
    INNER JOIN
    OCRD ON OINV.CardCode = OCRD.CardCode
    INNER JOIN
    CRD7  ON OCRD.CardCode = CRD7.CardCode
    INNER JOIN
      OITM ON INV1.ItemCode=OITM.ItemCode
    INNER JOIN
      OITL ON INV1.BaseType=OITL.ApplyType AND INV1.BaseEntry=OITL.ApplyEntry AND INV1.BaseLine=OITL.ApplyLine
    INNER JOIN
      ITL1 ON OITL.LogEntry=ITL1.LogEntry
    INNER JOIN
      OBTN ON ITL1.MdAbsEntry=OBTN.AbsEntry and ITL1.SysNumber=OBTN.SysNumber AND ITL1.ItemCode=OBTN.Itemcode
    INNER JOIN
      [@OEDR] OEDR ON OBTN.U_EDRate=OEDR.Code
    LEFT JOIN
      NNM1 ON OINV.Series=NNM1.Series
    WHERE INV1.LocCode IN (SELECT Code FROM OLCT WHERE Location=@Location)
      AND OINV.DocDate BETWEEN @FDate AND @TDate
    UNION ALL
    SELECT
      'Sales Return'Document,OBTN.DistNumber
      ,NNM1.SeriesName,ORIN.DocNum,ORIN.DocDate,OITM.SWW [HSN Number],RIN1.ItemCode,RIN1.Dscription,(ITL1.Quantity*-1) [Quantity]
      ,OEDR.Name,OBTN.U_EDuty*(ITL1.Quantity*-1) EDuty,OBTN.U_EDuty EDutyUnit,OBTN.U_EDCess*(ITL1.Quantity*-1) EDCess,OBTN.U_EDHSCess*(ITL1.Quantity*-1) EDHSCess
      ,OBTN.U_EDImpDuty SADUnit,OBTN.U_EDImpDuty*(ITL1.Quantity*-1) SADTotal
      ,OBTN.U_MfgName,OBTN.U_MfgInvNo,OBTN.U_MfgInvDt,OBTN.U_MfgQty,OBTN.U_MfgValue
      ,OBTN.U_MfgDuty,OBTN.U_MfgCess,OBTN.U_MfgHSCess,OBTN.U_MfgImport
      ,OBTN.U_SupName,OBTN.U_SupInvNo,OBTN.U_SupInvDt,OBTN.U_SupQty,OBTN.U_SupValue
      ,OBTN.U_SupDuty,OBTN.U_SupCess,OBTN.U_SupHSCess,OBTN.U_SupImport
    FROM
      RIN1
    INNER JOIN
      ORIN ON RIN1.DocEntry=ORIN.DocEntry
    INNER JOIN
      OITM ON RIN1.ItemCode=OITM.ItemCode
    INNER JOIN
      OITL ON RIN1.BaseType=OITL.ApplyType AND RIN1.BaseEntry=OITL.ApplyEntry AND RIN1.BaseLine=OITL.ApplyLine
    INNER JOIN
      ITL1 ON OITL.LogEntry=ITL1.LogEntry
    INNER JOIN
      OBTN ON ITL1.MdAbsEntry=OBTN.AbsEntry and ITL1.SysNumber=OBTN.SysNumber AND ITL1.ItemCode=OBTN.Itemcode
    INNER JOIN
      [@OEDR] OEDR ON OBTN.U_EDRate=OEDR.Code
    LEFT JOIN
      NNM1 ON ORIN.Series=NNM1.Series
    WHERE RIN1.LocCode IN (SELECT Code FROM OLCT WHERE Location=@Location)
      AND ORIN.DocDate BETWEEN @FDate AND @TDate

    Nagarajan,
    I've altered the query into this.Think that it is working.Thanks man
    declare @FDate as datetime
    declare @TDate as datetime
    declare @Location as VARCHAR (30)
    /* SELECT FROM [dbo].[OLCT] S0 WHERE */ SET  @Location = /* S0.Location*/ '[%0]'
    /* SELECT FROM [dbo].[OINM] S1 WHERE */ SET  @FDate = /* S1.TaxDate*/ '[%1]'
    /* SELECT FROM [dbo].[OINM] S2 WHERE */ SET  @TDate = /* S2.TaxDate*/ '[%2]'
    SELECT
      'Sales'Document,OBTN.DistNumber
      ,NNM1.SeriesName,OINV.DocNum,OCRD.CardName,CRD7.ECCNo,OINV.DocDate,OITM.SWW [HSN Number],INV1.ItemCode,INV1.Dscription,(ITL1.Quantity*-1) [Quantity]
      ,OEDR.Name,OBTN.U_EDuty*(ITL1.Quantity*-1) EDuty,OBTN.U_EDuty EDutyUnit,OBTN.U_EDCess*(ITL1.Quantity*-1) EDCess,OBTN.U_EDHSCess*(ITL1.Quantity*-1) EDHSCess
      ,OBTN.U_EDImpDuty SADUnit,OBTN.U_EDImpDuty*(ITL1.Quantity*-1) SADTotal
      ,OBTN.U_MfgName,OBTN.U_MfgInvNo,OBTN.U_MfgInvDt,OBTN.U_MfgQty,OBTN.U_MfgValue
      ,OBTN.U_MfgDuty,OBTN.U_MfgCess,OBTN.U_MfgHSCess,OBTN.U_MfgImport
      ,OBTN.U_SupName,OBTN.U_SupInvNo,OBTN.U_SupInvDt,OBTN.U_SupQty,OBTN.U_SupValue
      ,OBTN.U_SupDuty,OBTN.U_SupCess,OBTN.U_SupHSCess,OBTN.U_SupImport
    FROM
      INV1
    INNER JOIN
      OINV ON INV1.DocEntry=OINV.DocEntry
    INNER JOIN
      OITM ON INV1.ItemCode=OITM.ItemCode
    INNER JOIN
      OCRD ON OINV.CardCode = OCRD.CardCode
    INNER JOIN
    CRD7  ON OCRD.CardCode = CRD7.CardCode
    INNER JOIN
      OITL ON INV1.BaseType=OITL.ApplyType AND INV1.BaseEntry=OITL.ApplyEntry AND INV1.BaseLine=OITL.ApplyLine
    INNER JOIN
      ITL1 ON OITL.LogEntry=ITL1.LogEntry
    INNER JOIN
      OBTN ON ITL1.MdAbsEntry=OBTN.AbsEntry and ITL1.SysNumber=OBTN.SysNumber AND ITL1.ItemCode=OBTN.Itemcode
    INNER JOIN
      [@OEDR] OEDR ON OBTN.U_EDRate=OEDR.Code
    LEFT JOIN
      NNM1 ON OINV.Series=NNM1.Series
    WHERE INV1.LocCode IN (SELECT Code FROM OLCT WHERE Location=@Location)
      AND OINV.DocDate BETWEEN @FDate AND @TDate
    UNION ALL
    SELECT
      'Sales Return'Document,OBTN.DistNumber
      ,NNM1.SeriesName,ORIN.DocNum,OCRD.CardName,CRD7.ECCNo,ORIN.DocDate,OITM.SWW [HSN Number],RIN1.ItemCode,RIN1.Dscription,(ITL1.Quantity*-1) [Quantity]
      ,OEDR.Name,OBTN.U_EDuty*(ITL1.Quantity*-1) EDuty,OBTN.U_EDuty EDutyUnit,OBTN.U_EDCess*(ITL1.Quantity*-1) EDCess,OBTN.U_EDHSCess*(ITL1.Quantity*-1) EDHSCess
      ,OBTN.U_EDImpDuty SADUnit,OBTN.U_EDImpDuty*(ITL1.Quantity*-1) SADTotal
      ,OBTN.U_MfgName,OBTN.U_MfgInvNo,OBTN.U_MfgInvDt,OBTN.U_MfgQty,OBTN.U_MfgValue
      ,OBTN.U_MfgDuty,OBTN.U_MfgCess,OBTN.U_MfgHSCess,OBTN.U_MfgImport
      ,OBTN.U_SupName,OBTN.U_SupInvNo,OBTN.U_SupInvDt,OBTN.U_SupQty,OBTN.U_SupValue
      ,OBTN.U_SupDuty,OBTN.U_SupCess,OBTN.U_SupHSCess,OBTN.U_SupImport
    FROM
      RIN1
    INNER JOIN
      ORIN ON RIN1.DocEntry=ORIN.DocEntry
    INNER JOIN
      OCRD ON ORIN.CardCode = OCRD.CardCode
    INNER JOIN
    CRD7  ON OCRD.CardCode = CRD7.CardCode
    INNER JOIN
      OITM ON RIN1.ItemCode=OITM.ItemCode
    INNER JOIN
      OITL ON RIN1.BaseType=OITL.ApplyType AND RIN1.BaseEntry=OITL.ApplyEntry AND RIN1.BaseLine=OITL.ApplyLine
    INNER JOIN
      ITL1 ON OITL.LogEntry=ITL1.LogEntry
    INNER JOIN
      OBTN ON ITL1.MdAbsEntry=OBTN.AbsEntry and ITL1.SysNumber=OBTN.SysNumber AND ITL1.ItemCode=OBTN.Itemcode
    INNER JOIN
      [@OEDR] OEDR ON OBTN.U_EDRate=OEDR.Code
    LEFT JOIN
      NNM1 ON ORIN.Series=NNM1.Series
    WHERE RIN1.LocCode IN (SELECT Code FROM OLCT WHERE Location=@Location)
      AND ORIN.DocDate BETWEEN @FDate AND @TDate

  • Load order overwrite impossible and ORA-01790

    Hi,
    I'm using Oracle 11g Rel. 1 EE and I have some problems with a mapping in OWB. I mapped my customer dimension (SCD type 2) with the corresponding tables. The first problem is that I can't overwrite the load order for this dimension.
    I've set up the customer dimension with following levels: customer, city, state, country, region and I also configured the foreign keys. The load order is changing every time I do an inbound synchronization for this dimension. In the manual it is written that the order is based on the foreign key relations but it is not in the correct order. When I try to change the loading order within the mapping and save the mapping, the settings will be resetted after I closed the mapping window. Why is the loading order changing all the time, although the dimension has not changed? And why can't I overwrite the loading order in the mapping, is there any restriction for this setting?
    My second problem is that I get the error: ORA-01790: expression must have same datatype as corresponding expression. In the sql code it seems that the problem is my attribute "Birthyear". The source table delivers an integer value for age. The dimension stores the birthyear as char(4). Therefore I used an expression to convert the age into the correct year as char(4), but I still get the error message. I assume that the compiler gives me the correct line number where the problem occurs and it is always where Birthyear occurs. Did anybody experience a similar problem and knows a solution for this?
    Greetings,
    Joerg

    The post Was truncated... here is the rest of the story:
    And what is worst: I can not drop the table because I receive an ORA-00600 !
    I can not even drop the USER, I still receive ORA-00600.
    I would really appreciate any help. All I want is to drop the user and clean
    up my database.
    Best Regards,
    Jose Hime
    ==========================================================================
    select * from user_objects
    OBJECT SUBOBJECT OBJECT_ID DATA_OBJECT_ID OBJECT_TYPE GENERATED
    NAME  NAME
    TESTE D3A 146096 146684 TABLE SUBPARTITION N
    TESTE D3B 146097 146685 TABLE SUBPARTITION N
    TESTE D3C 146098 146686 TABLE SUBPARTITION N
    TESTE D3D 146099 146687 TABLE SUBPARTITION N
    TESTE D3E 146100 146688 TABLE SUBPARTITION N
    TESTE D3F 146101 146689 TABLE SUBPARTITION N
    TESTE D3G 146102 146690 TABLE SUBPARTITION N
    TESTE D3H 146103 146691 TABLE SUBPARTITION N
    TESTE 145922 TABLE N
    9 rows retrieved
    ==========================================================================
    Long postings are being truncated to ~1 kB at this time.

  • Error ORA-01790: for INSERT in master detail form

    Gidday;
    I get the error message 'ORA-01790: expression must have same datatype as corresponding expression' when I attempt an insert operation in the detail region of a master/detail form.
    I have checked previous entries of this error I could find - as far as I can tell the parent key defaults are correct.
    It seems one of the factors could be that the tables are not within the 'home' schema for the application. I have created a similar default master detail form on the tables, with the home schema matching that for the tables. Within my major application I have ensured the correct schema is referenced in all fields (all those I could find - in the Report Attributes / Column Attributes area).
    I just cannot find which expressions are mis-matching their datatypes.
    thanks; DS

    Hi,
    According to [http://ora-01790.ora-code.com] the error is raised because "A SELECT list item corresponds to a SELECT list item with a different datatype in another query of the same set expression." Do you have any Select Lists on your page? If you do, is the "return value" of the same datatype as for the underlying field?
    One thing to try in these circumstances is to click the Debug link on the Developer's toolbar at the bottom of the page and then try to insert your record. You will get a whole stream of messages appear on the left of the page and the error should become obvious.
    You could also check that all the defaults you have set do not contain spaces or linefeeds at the end - I have seen this cause issues before.
    Andy

  • Full outer Join:ORA-01790

    Hi All,
    The issue may be silly, but we cant make it out:
        DB : Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - ProdWe are running the below query with no issues:
    select t1.text,t2.text text2,t1.line,decode(upper(t1.text),upper(t2.text),1,0) flg
    from
       (select text,row_number() over(order by line) line
        from user_source
       where name = 'COLL_MVIEW_REFRESH_PROC_LBK'
       and replace(trim(text),chr(10)) is not null
       ) t1,
       (select text ,row_number() over(order by line) line
        from user_source
        where name = 'COLL_MVIEW_REFRESH_PROC'
        and trim(replace(text,chr(10))) is not null) t2
    where t1.line = t2.lineBut when trying for an outer join it is giving error like
    ORA-01790: expression must have same datatype as corresponding expressionOuter Join Query:
    select t1.text,t2.text,t1.line,decode(upper(t1.text),upper(t2.text),1,0) flg
    from
       (select text,row_number() over(order by line) line
        from user_source
        where name = 'COLL_MVIEW_REFRESH_PROC_LBK'
        and replace(trim(text),chr(10)) is not null
        ) t1 full outer join
        (select text ,row_number() over(order by line) line
        from user_source
        where name = 'COLL_MVIEW_REFRESH_PROC'
        and trim(replace(text,chr(10))) is not null) t2
    on( t1.line = t2.line )Any idea what is wrong here?
    Thanks,
    Jeneesh

    Not sure what is wrong with your version. It might have to do with row_number not working on an empty row (outer joined).
    How about this alternative?
    The approach is a bit different, but it uses only one access to the user_source view.
    select s.lineNo, min(s.text1) text1, min(s.text2) text2, decode(upper(min(s.text1)), upper(min(s.text2)), 1, 0) flag
    from
    (select decode(u.name, 'COLL_MVIEW_REFRESH_PROC_LBK', u.text) text1
           ,decode(u.name, 'COLL_MVIEW_REFRESH_PROC'
    , u.text) text2
           ,u.name,
            row_number() over (partition by u.name order by u.line) lineNo
    from user_source u
    where u.name in ('COLL_MVIEW_REFRESH_PROC_LBK','COLL_MVIEW_REFRESH_PROC'
    /* and u.TYPE = 'PROCEDURE' */
    and replace(trim(u.text),chr(10)) is not null
    ) s
    group by s.lineNo
    order by s.lineNo;Edited by: Sven W. on Nov 18, 2008 5:24 PM

  • E71: error: SIP "profiles in same realm must have ...

    I have a E71-1 with the latest 110.07.127 firmware. I am trying to create a second SIP profile, but I cannot save it as I get the error message
    "Unable to save. Profiles in same realm must have same user name"
    From what I understand, one creates a VoIP profile and then adds separate SIP profiles for each SIP server/access point pair[*]. I've found no other way to be able to quickly connect to the same SIP server from two different Wifi networks, or even have the phone automatically log in.
    The problem is that if I create a second profile with the same proxy/registrar settings (same realm, user, password) but a different access point (and profile name), I get the above error and cannot save the new profile.
    I have tried to delete all profiles and recreate them, I have tried recreating them from scratch and copying from an existing profile, and I have triple-checked that all the realms, usernames, and passwords are identical and correct. The error persists.
    There was already a discussion at /discussions/board/message?board.id=smartphones&message.id=15695, but it has no solution.
    Any idea what the problem may be and how I can solve or work around it?
    Thanks,
    -m
    [*] This sucks as it requires a lot of data duplication, and when the passwords change, it's a *major* pain. It would be better to have SIP account profiles, independent of any connection-specific settings, and let VoIP profiles link those account profiles to access points. Since the SIP proxy setting might well be dependent on the connection, an alternative would be to simply allow me to choose a set of access points for each SIP account profile.

    SOLVED:  when you create a second SIP profile using an existing one, the password are not copied, and therefore the system interpeters it as a different user throwing the error. Resubmit the password for both proxy and registar servers and it will work. 
    Remember: after that you have to check in the newly created profile under Tools-Settings-Connection-Internet Tel.-<<your profile>>

  • Expression must return the interface type in Transformation Step in BPM

    hi,
    We are getting below while activating the IP,
    Expression must return the interface type SI_Send_AA
    Expression must return the interface type SI_Get_AA
    No semantic errors found
    We have a Transformation Step in BPM,
    In OM, Source is SI_Send_AA and Target is SI_Get_AA
    Also Container variable points to  the same Abstract SI's.
    Few Thread's for Same are error are:
    Error in  BPM
    expression must return the interface type
    Transformation step in ccBPM scenario
    Error while compiling Business Process
    Even after checking these i am getting this Exception.
    Please Help!
    Thanks,
    Mayank

    Also Container variable points to the same Abstract SI's
    Are you sure that you are using Abstract Message Interfaces only and that these are referring to relevant container variables.
    Normally it happens that there is some mis-match between the message types/ interfaces that we use in the mapping and that we use in the BPM.
    If still not solved, then delete the Transformation step --> save --> activate......then again Edit the BPM to include the Transformation Step.
    Regards,
    Abhishek.

  • Greetings: I have multiple iPads and iPhones. I want all to be able to be able to stream to our Apple TV. All of the docs I see say you must have the same Apple ID for all the devices, but we each have our own Apple ID. Is this just a doc short coming?

    Greetings: I have multiple iPads and iPhones. I want all to be able to be able to stream to our Apple TV. All of the docs I see say you must have the same Apple ID for all the devices, but we each have our own Apple ID. Is this just a doc short coming?

    You can each have your own ID for your own iTunes accounts, but in order for a device to stream via AirPlay to the same Apple TV, everything must use the same homesharing ID. This is not the same as your iTunes account ID (although it can be for one of the devices)

  • I just purchased Apple TV AND AIRPORT EXPRESS. I am questioning if  I need it when I already have a Netgear Powerline AV 200 Adapter Kit XAVB2001. Does the Airport Express do the same thing?

    I just purchased Apple TV AND AIRPORT EXPRESS. I am questioning if  I need it when I already have a Netgear Powerline AV 200 Adapter Kit XAVB2001. Does the Airport Express do the same thing?

    Thank you so much.  Any specifics I should know about prior to connecting? The goal is to watch  Netflix from my iPad or iPhone 5 on my tv (located in different room from where Comcast internet modem is hard wired to main computer in house).  Movies would depend on wireless transmission to a smart tv not connected to modem.

  • Error: A file found in a source-path must have the same package structure

    I use Adobe Flex Compiler (mxmlc) Version 4.1.0 build 16032,I have a file,named CustomGraphContainerController.as,it's directory is c:\controllers,and the GCController.as file is under the same directory,CustomGraphContainerController.as file like follows
    package controllers{
    import ui.GraphControlContainer;
    public class CustomGraphContainerController extends GCController {
      public function CustomGraphContainerController(a_graphControlContainer:GraphControlContainer) {
       super(a_graphControlContainer);
    Then I want to use mxmlc command to compile it,like follows:
    C:\>mxmlc c:\controllers\CustomGraphContainerController.as
    But it raise compile errors,like follows:
    Loading configuration file C:\sdk\frameworks\flex-config.xml
    C:\controllers\GCController.as: Error: A file found in a source-path must have the same package structure '', as the definition's package, 'controllers'.
    I don't know how to compile the as file with package controllers? Where is wrong? How to use mxmlc to compile it?
    Thanks

    HI,
         You should have one main application class to compile this as code to swf.. So that main application path should be in your proper package structure.. then you can compile you app and as files also...
    Thanks
    Ram..

Maybe you are looking for