Invalid record not going into E$ table

Hi,
I am using Oracle as source and target but source and target table is on different database.lets say
base table EMP_SRC table --> ABC database
fact table EMP_TRG table --> XYZ database
and some dimension table are also in XYZ Database. and all FK constraint are there in fact table.
I created one interface in which on source dataset i drag base table and dimension table for lookup and join the code columns with base table code and on target side i am populating keys and measures value correspondence the  base table data which matched with dim table.
I am using KM
LKM SQL to SQL
IKM SQL incremental update
Option:
Flow control : true
CKM SQL
when i run the Interface it is getting successful with valid records but in base table there is some invalid record also which is not going into E$ table
why it is happening ? did I miss something ? Please help me
Thanks.

I am doing little modification here
BASE_DATA:
RSN_CODE
QUANTITY
DATA_DIM:
ID_RSN (PK)
RSN_CODE
your join need to be BASE_DATA.RSN_CODE = DATA_DIM.RSN_CODE(+)
your target table will have as mapping
TGT_DIM:
ID_RSN (PK): DATA_DIM.ID_RSN
QUANTITY: BASE_DATA.QUANTITY
Now
Base_Data
RSN_CODE       Quantity
1A                    120
1B                    260
1C                     130
1E                    300
DATA_DIM
ID_RSN          RSN_CODE
1                    1A
2                     1B
3                    1C
4                    1D
------------------------------OK--------------------------
After execution
TGT_DIM
ID_RSN          QUANTITY
1                    120
2                    260
3                    130
and in E$ table
ODI_ROW_ID    :    F                   
ODI_ERR_MESS  :   ODI-15066: The column ID_RSN cannot be null.
ODI_CHECK_DATE  :   24-JUL-13
RSN_CODE   :    (null)
Quantity       : 300
---------------------OK----------------------------------
but I want in E$ table consist following result
ODI_ROW_ID    :    F                   
ODI_ERR_MESS  :   ODI-15066: The column ID_RSN cannot be null.
ODI_CHECK_DATE  :   24-JUL-13
RSN_CODE   :    1E  
  Quantity       : 300
Thanks

Similar Messages

  • Record not inserting into the table through Forms 10g

    Hi all,
    I have created a form in 10g(10.1.2.0.2) based on just one table that has 4 columns(col1, col2, col3, col4).
    Here col1, col2 and col3 are VARCHAR2 and col4 is date and all the columns are not null columns(There are no primary and foriegn key constrains, which means duplicates are allowed).
    My form contains 2 blocks where block 1 has one text item (col1) and 3 buttons (Delete, Save, Exit).
    And block2 is a database block and has col2,col3,col4 which are in tabluar layout frame displaying 10 records.
    When the form is opened the cursor has to be in block1.col1 for querrying. Here i enter a value in col1, and then when I click on col2 in the block2, then I put execute_query in new_block_instance of block2, which displays the records.
    The block2 properties are not updatable, insertable and query is allowed.
    Everything is working good until here. But here in the block2 when I want to insert another record into the table, by navigating all the way down to the last empty record and entering the new values for col2, col3 and col4 And then Ctrl+S will display the message "*FRM-40400: Transaction complete: 1 record applied and saved.*" But actually the record is not inserted into the table.
    I also disabled the col4 by setting the Enabled property to No, since while inserting new record the date have to be populated into it and it shouldnt be changed by the user. And im populating the sysdate into the new record by setting Intial Value property to *$$DATE$$*.
    And another requirement which I could not work arround here is that, the col3 also should be populated with the username of the user while inserting.
    please help me...

    Hi Sarah,
    I do not want to update the existing record. So I kept Udate Allowed to No in property palette for the items in block2.
    Do I have to do this property at block level also?
    I'm inserting a new record here.
    Edited by: Charan on Sep 19, 2011 8:48 AM

  • Record not inserting into sap table with connector framework ?

    here is the code, but record not being inserting into the table ... but same piece of code working fine while updating ... the record ...
    try {
    interaction = connection.createInteractionEx();
    IInteractionSpec interactionSpec = interaction.getInteractionSpec();
    String functionName = "Z_XYZ";
    interactionSpec.setPropertyValue("Name", functionName);
    String writingTable = "MYTABLE";
    RecordFactory rf = interaction.getRecordFactory();
    MappedRecord importParams = rf.createMappedRecord("input");
    importParams.put("ATTR1", "VALUE1");
    importParams.put("ATTR2", "VALUE2");
    IFunction function = connection.getFunctionsMetaData().getFunction(functionName);
    IStructureFactory sf = interaction.retrieveStructureFactory();
    IRecordSet table = (IRecordSet) sf.getStructure(function.getParameter(writingTable).getStructure());
    table.insertRow();
    table.setString("ATNAME", "VALUE");
    table.setString("ATWRT", "VALUE");
    importParams.put(writingTable, table);
    MappedRecord output = (MappedRecord) interaction.execute(interactionSpec, importParams);
    } catch (Exception e) {
    any idea?
    than ks
    MMK

    Hi Mohan,
    Does a creation through SE37 with the same input work?
    Yoav.

  • MIRO.......Quality doc not going into block

    Hi,
    When we are posting invoice through MIRO against materials in Quality its not going into payment block..
    We maintaing everything from QM point of view, control keys and select block invoice options.
    we are unable to trace/ fine the settting related from FICO.
    Can any body guide me.
    Regards,
    Venkat

    hi
    In MM02,
    Quality management view,
    Activate "QM in Procurement is Active"
    Enter QM control key - "0007" i.e. Del. release, invoice block
    U have to also maintain QM Info Record, use QI01
    Test 1 complete cycle PO > GR > LIV
    It will start working
    Regards

  • Project Server Task Approvals not Going into Plan

    Hi,
    After approving a task, we are finding that it is not going into the plan - on our separate test environment, the same steps work ok.
    Any ideas?
    Thanks

    Hi,
    Could you please let me know, if the issue is happening for only one projects or all the projects.
    Also, Check for failure transactions.
    select
    ASSN_UID,
    * from pub.MSP_ASSIGNMENT_TRANSACTIONS
    where ASSN_TRANS_STATE_ENUM
    =4 and
    proj_uid like'Proj_Uid'
    Also let me know on which patch level you are on?
    Check if you have any projects affected with lost resource bug
    http://blogs.technet.com/b/projectsupport/archive/2014/02/06/project-server-2013-and-project-online-what-happened-to-my-resources.aspx
    SELECT DISTINCT A.PROJ_UID, P.PROJ_NAME
    FROM DRAFT.MSP_ASSIGNMENTS A
    LEFT JOIN DRAFT.MSP_PROJECT_RESOURCES PR ON A.RES_UID = PR.RES_UID AND A.PROJ_UID = PR.PROJ_UID
    INNER JOIN PUB.MSP_RESOURCES ER ON A.RES_UID = ER.RES_UID
    INNER JOIN DRAFT.MSP_PROJECTS P ON A.PROJ_UID = P.PROJ_UID
    WHERE PR.RES_UID IS NULL
    UNION
    SELECT DISTINCT C.PROJ_UID, P.PROJ_NAME
    FROM DRAFT.MSP_PROJECT_CALENDARS C
    LEFT JOIN DRAFT.MSP_PROJECT_RESOURCES PR ON C.CAL_UID = PR.RES_UID AND C.PROJ_UID = PR.PROJ_UID
    INNER JOIN PUB.MSP_RESOURCES ER ON C.CAL_UID = ER.RES_UID
    INNER JOIN DRAFT.MSP_PROJECTS P ON C.PROJ_UID = P.PROJ_UID
    WHERE PR.RES_UID IS NULL
    ORDER BY P.PROJ_NAME
    Thanks,
    Phani

  • PXI-8431 not going into receive mode with VB6

    I am using a PXI-1045 chassis with a PXI-8431 RS422/485 card and communicating via a VB6 program
    The output of the PXI-8431 RS485 module works OK when it is in send mode, the signal levels are approx 1v and 3v for high and low, but when it is in receive mode the outputs remain at 1v and 3v instead of going into passive mode and both lines floating at approx 2v with approx 300mV differential as they should. This means when the remote devices send, the amplitude of the signal is approx half as they are competing with the PXI module, and that the centre point of the two signals are at 1v and 3v respectively. Our software does not receive the signals from the PXI module which is consistent with my theory that it is still in send mode and taking control of the lines, or maybe it has changed it to 4 wire mode.
    I have swapped over the PXI card and the remote cards with our good system and the problem does not move.
    I have eliminated ALL the hardware on the new ring by replacing it with a 67 Ohm resistor on the pins of a 9 way D connector plugged onto the PXI card directly. With a scope I can see that the new system is not going into passive mode, but with the same connector the old system works OK.
    The only difference I can see between the 6 old rigs we have that do work and the 2 new ones that do not work is the new ones use the the NI-XNET-PXI-8513 and the old ones use the PXI_8464 CAN card. Could this software be conflicting? Is there any other updates to the NI software that could be causing it?
    Solved!
    Go to Solution.

    Hi,
    I've had a check to see if we have any known software conflict issues with those cards but it all seems fine, it could be that the Windows Driver layer is causing some issues. If you nip into Device Manager and go to the properties of the 8431 you should be able to change it to 2-wire mode from those settings then re-run the program.
    Also does the program throw any errors at all in terms of device resources when trying to move from send to receive mode?
    What versions of NI-VISA and NI-Serial do you currently have installed?
    Kind Regards,
    Applications Engineer

  • Msi p6n Platinum - not going into bios

    Hi all,
    Ive just put together my new pc. Its the first build ive done.
    Trouble is i go to boot it up and its not going into the bios from the splash screen.
    On the D bracket lights 1 and 3 are constantly lit: Testing base & Extended memory.
    No matter how many times i reboot, it just doesnt work.
    All it does is go to a black screen when i press delete from the splash screen.
    Spec:
    Intel E6600
    Msi p6n Platinum
    2 gig Xms2 6400C4 (using 512mb stick for booting purposes)
    XFX 8800 gts 320mb XXX
    2 x 36gb (these were raid - 0 on my old rig)
    Hiper 480W
    I havent a clue where to go with this, any help greatly appreciated - Thanks

    I think the board is having a hard time detecting the HDD from the BIOS.
    Try using another HDD in a standard non-raid setup and see if the problem occurs.
    Anyway, you can't simply just pull a set of RAID drives from another working system and expect it to work in a new system as the RAID controller are of different makes.

  • Record not updating into table helpme

    in the following functionmodule record is not commiting into table is there any wrong please hep me.
    FUNCTION Z_MZPR_DETAILS.
    ""Local Interface:
    *"  IMPORTING
    *"     VALUE(ZPRHEADER) TYPE  BAPIMEREQHEADER OPTIONAL
    *"     VALUE(ZPRHEADERX) TYPE  BAPIMEREQHEADERX OPTIONAL
    *"  EXPORTING
    *"     VALUE(ZNUMBER) TYPE  BAPIMEREQHEADER-PREQ_NO
    *"     VALUE(RETURN) LIKE  BAPIRET2 STRUCTURE  BAPIRET2
    *"  TABLES
    *"      ZPRITEM STRUCTURE  BAPIMEREQITEMIMP
    *"      ZPRITEMX STRUCTURE  BAPIMEREQITEMX OPTIONAL
    *"      ZPRACCOUNT STRUCTURE  BAPIMEREQACCOUNT OPTIONAL
    *"      ZPRACCOUNTX STRUCTURE  BAPIMEREQACCOUNTX OPTIONAL
    DATA:ITAB LIKE TABLE OF ZPRDETAILS WITH HEADER LINE,
         ZRETURN LIKE TABLE OF RETURN WITH HEADER LINE.
    CALL FUNCTION 'BAPI_PR_CREATE'
    EXPORTING
       PRHEADER                    = ZPRHEADER
       PRHEADERX                   = ZPRHEADERX
      TESTRUN                     =
    IMPORTING
       NUMBER                      = ZNUMBER
      PRHEADEREXP                 =
      TABLES
       RETURN                      = ZRETURN
       PRITEM                      = ZPRITEM
       PRITEMX                     = ZPRITEMX
      PRITEMEXP                   =
      PRITEMSOURCE                =
       PRACCOUNT                   = ZPRACCOUNT
      PRACCOUNTPROITSEGMENT       =
       PRACCOUNTX                  = ZPRACCOUNTX.
      PRADDRDELIVERY              =
      PRITEMTEXT                  =
      PRHEADERTEXT                =
      EXTENSIONIN                 =
      EXTENSIONOUT                =
      PRVERSION                   =
      PRVERSIONX                  =
      ALLVERSIONS                 =
    ITAB-BANFN = ZNUMBER.
    APPEND ITAB.
    IF ZRETURN-NUMBER = '000'.
    UPDATE ZPRDETAILS from TABLE ITAB.
    COMMIT WORK.
    ENDFUNCTION.

    HI,
    IF ZRETURN-NUMBER = '000'.
    <b>MODIFY ZPRDETAILS from TABLE ITAB.</b>
    COMMIT WORK.
    <b>ENDIF.</b>
    Best regards,
    Prashant

  • The record is not added into the table.

    Hi,
    I am new to Hibernate.
    I have contact.hbm.xml
    <?xml version="1.0"?>
    <!DOCTYPE hibernate-mapping PUBLIC
    "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
    "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
    <hibernate-mapping>
    <class name="Contact" table="CONTACT">
    <id name="id" type="string" column="ID" >
    <generator class="assigned"/>
    </id>
    <property name="firstName">
    <column name="FIRSTNAME" />
    </property>
    <property name="lastName">
    <column name="LASTNAME"/>
    </property>
    <property name="email">
    <column name="EMAIL"/>
    </property>
    </class>
    </hibernate-mapping>
    And I have hibernate.cfg.xml
    <?xml version='1.0' encoding='utf-8'?>
    <!DOCTYPE hibernate-configuration PUBLIC
    "-//Hibernate/Hibernate Configuration DTD//EN"
    "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
    <hibernate-configuration>
    <session-factory>
    <property name="hibernate.connection.driver_class">sun.jdbc.odbc.JdbcOdbcDriver</property>
    <property name="hibernate.connection.url">jdbc:odbc:test</property>
    <property name="hibernate.connection.username"></property>
    <property name="hibernate.connection.password"></property>
    <property name="hibernate.connection.pool_size">10</property>
    <property name="show_sql">true</property>
    <!-- <property name="dialect">org.hibernate.dialect.MySQLDialect</property> -->
    <property name="dialect">com.hxtt.support.hibernate.HxttAccessDialect</property>
    <property name="hibernate.hbm2ddl.auto">update</property>
    <!-- Mapping files -->
    <mapping resource="contact.hbm.xml"/>
    </session-factory>
    </hibernate-configuration>
    And my client program to add a record into the table is as follows..
    File f=new File("..src/com/hibernateaction/chapter01/hello/hibernate.cfg.xml");
    Configuration cfg = new Configuration().addFile(f);
    Iterator itr=cfg.getClassMappings();
    while(itr.hasNext())
         System.out.println("V="+itr.next());
    SessionFactory sessionFactory = cfg.configure().buildSessionFactory();
    session =sessionFactory.openSession();
    System.out.println("Inserting Record");
    Contact contact = new Contact();
    contact.setId("3");
    contact.setFirstName("Senniappan");
    contact.setLastName("Gounder");
    contact.setEmail("[email protected]");
    session.save(contact);
    System.out.println("Done");
    session.flush();
    session.close();
    The output displayed as "Done" and "Hibernate: insert into CONTACT (FIRSTNAME, LASTNAME, EMAIL, ID) values (?, ?, ?, ?) ".
    But there is no record is added into the DB.
    Kindly help in this regards.

    I used transaction.commit() it workd fine. Thanks Balu.
    My query is, is it necessary to start a transaction to add a single row into the table? Could u brief about this implementation?

  • Record is not inserting into the Table thourgh forms 10g

    Hi All,
    I have the form built in 10g(10.1.2.0.2).
    Basically the form has 2 blocks.
    Block 1 with only one item, where we enter some value and hit enter(this will navigate to block2 and execute the query).
    Block 2(tabular) will fetch the records. Now this block2 have 3 columns(caseid, userid, date).
    Now when I insert a new record, I just need to enter the caseid only. And userid and date have to be automatically populated.
    I can populate the USERID and DATE fields.
    And when I enter some value in caseid item of block 2, and then do Control+S(to insert the record and Save the transaction),
    i get the message saying FRM-40400: Transaction complete: 1 records applied and saved.
    But when I query again for the same, I dont se the record inserted into the table.
    Why is this happening?
    Help please...

    @ Inol
    There is no promary or foriegn key relation ship. The form is fetching records from just one table. As I said block1 has col1. and Block2 has col2,3,4.
    @Andreas
    Yes I did select * from table, select count(*) from table in SQL*Plus. Nothing is inserted.
    And one thing I have to tall here is, I have a ON-INSERT trigger in block2.
    The code in ON-INSERT trigger is
    --  :BLOCK2.DATE := TO_DATE(:DATE,'DD-MON-YYYY') ;
    /* commented since I was populating date by assigning $$DATETIME$$ to the Initial value property of the data item. */
    :BLOCK2.SOURCE_CASE := :BLOCK1.SOURCE_CASEID;Forgot to tell you,
    Since I was inserting the record from block2(3 columns), to the table which has 4 columns, there is another item in block 2 which has the visible property No.
    So the block 2 has 4 columns. And the hidden column will hold the value that is in the item of block1. This is what i'm pushing in the ON-INSERT trigger.
    Edited by: Charan on Sep 20, 2011 1:51 PM

  • When inserting 2 column details in a single table using Stored Procedure.Only 2 Column details getting inserted.1column details are not getting into the table.Please see the below script and help me to change.

    Line 390 Under the (Insert into SALES_TRADEIN Table)
    I need to insert (TradeIn_1_VIN) Values If there is no values in (TradeIn_1_VIN) then i have to insert (TradeIn_2_VIN) values to the (SALES_TRADEIN) Table.
    After i run then below script only (TradeIn_2_VIN) values are get inserted in the table. (TradeIn_1_VIN) are not getting loaded in to the table.
    I think there is the problem from Line No (404 to 414) Please help me change those particular lines to insert (TradeIn_1_VIN) Values also.If there is no details then (TradeIn_2_VIN) need to be inserted.
    -- =============================================
    -- Stored Procedure for Flatfile_Sales
    -- =============================================
    USE [IconicMarketing]
    ---==========Sales_Cursor
    --USE [IconicMarketing]
    --GO
    DECLARE
    @FileType
    varchar(50),
    @ACDealerID
    varchar(50),
    @ClientDealerID
    varchar(50),
    @DMSType
    varchar(50),
    @DealNumber
    varchar(50),
    @CustomerNumber
    varchar(50),
    @CustomerName
    varchar(50),
    @CustomerFirstName
    varchar(50),
    @CustomerLastName
    varchar(50),
    @CustomerAddress
    varchar(50),
    @CustomerCity
    varchar(50),
    @CustomerState
    varchar(50),
    @CustomerZip
    varchar(50),
    @CustomerCounty
    varchar(50),
    @CustomerHomePhone
    varchar(50),
    @CustomerWorkPhone
    varchar(50),
    @CustomerCellPhone
    varchar(50),
    @CustomerPagerPhone
    varchar(50),
    @CustomerEmail
    varchar(50),
    @CustomerBirthDate
    varchar(50),
    @MailBlock
    varchar(50),
    @CoBuyerName
    varchar(50),
    @CoBuyerFirstName
    varchar(50),
    @CoBuyerLastName
    varchar(50),
    @CoBuyerAddress
    varchar(50),
    @CoBuyerCity
    varchar(50),
    @CoBuyerState
    varchar(50),
    @CoBuyerZip
    varchar(50),
    @CoBuyerCounty
    varchar(50),
    @CoBuyerHomePhone
    varchar(50),
    @CoBuyerWorkPhone
    varchar(50),
    @CoBuyerBirthDate
    varchar(50),
    @Salesman_1_Number
    varchar(50),
    @Salesman_1_Name
    varchar(50),
    @Salesman_2_Number
    varchar(50),
    @Salesman_2_Name
    varchar(50),
    @ClosingManagerName
    varchar(50),
    @ClosingManagerNumber
    varchar(50),
    @F_AND_I_ManagerNumber
    varchar(50),
    @F_AND_I_ManagerName
    varchar(50),
    @SalesManagerNumber
    varchar(50),
    @SalesManagerName
    varchar(50),
    @EntryDate
    varchar(50),
    @DealBookDate
    varchar(50),
    @VehicleYear
    varchar(50),
    @VehicleMake
    varchar(50),
    @VehicleModel
    varchar(50),
    @VehicleStockNumber
    varchar(50),
    @VehicleVIN
    varchar(50),
    @VehicleExteriorColor
    varchar(50),
    @VehicleInteriorColor
    varchar(50),
    @VehicleMileage
    varchar(50),
    @VehicleType
    varchar(50),
    @InServiceDate
    varchar(50),
    @HoldBackAmount
    varchar(50),
    @DealType
    varchar(50),
    @SaleType
    varchar(50),
    @BankCode
    varchar(50),
    @BankName
    varchar(50),
    @SalesmanCommission
    varchar(50),
    @GrossProfitSale
    varchar(50),
    @FinanceReserve
    varchar(50),
    @CreditLifePremium
    varchar(50),
    @CreditLifeCommision
    varchar(50),
    @TotalInsuranceReserve
    varchar(50),
    @BalloonAmount
    varchar(50),
    @CashPrice
    varchar(50),
    @AmountFinanced
    varchar(50),
    @TotalOfPayments
    varchar(50),
    @MSRP varchar(50),
    @DownPayment
    varchar(50),
    @SecurityDesposit
    varchar(50),
    @Rebate
    varchar(50),
    @Term varchar(50),
    @RetailPayment
    varchar(50),
    @PaymentType
    varchar(50),
    @RetailFirstPayDate
    varchar(50),
    @LeaseFirstPayDate
    varchar(50),
    @DayToFirstPayment
    varchar(50),
    @LeaseAnnualMiles
    varchar(50),
    @MileageRate
    varchar(50),
    @APRRate
    varchar(50),
    @ResidualAmount
    varchar(50),
    @LicenseFee
    varchar(50),
    @RegistrationFee
    varchar(50),
    @TotalTax
    varchar(50),
    @ExtendedWarrantyName
    varchar(50),
    @ExtendedWarrantyTerm
    varchar(50),
    @ExtendedWarrantyLimitMiles
    varchar(50),
    @ExtendedWarrantyDollar
    varchar(50),
    @ExtendedWarrantyProfit
    varchar(50),
    @FrontGross
    varchar(50),
    @BackGross
    varchar(50),
    @TradeIn_1_VIN
    varchar(50),
    @TradeIn_2_VIN
    varchar(50),
    @TradeIn_1_Make
    varchar(50),
    @TradeIn_2_Make
    varchar(50),
    @TradeIn_1_Model
    varchar(50),
    @TradeIn_2_Model
    varchar(50),
    @TradeIn_1_ExteriorColor
    varchar(50),
    @TradeIn_2_ExteriorColor
    varchar(50),
    @TradeIn_1_Year
    varchar(50),
    @TradeIn_2_Year
    varchar(50),
    @TradeIn_1_Mileage
    varchar(50),
    @TradeIn_2_Mileage
    varchar(50),
    @TradeIn_1_Gross
    varchar(50),
    @TradeIn_2_Gross
    varchar(50),
    @TradeIn_1_Payoff
    varchar(50),
    @TradeIn_2_Payoff
    varchar(50),
    @TradeIn_1_ACV
    varchar(50),
    @TradeIn_2_ACV
    varchar(50),
    @Fee_1_Name
    varchar(50),
    @Fee_1_Fee
    varchar(50),
    @Fee_1_Commission
    varchar(50),
    @Fee_2_Name
    varchar(50),
    @Fee_2_Fee
    varchar(50),
    @Fee_2_Commission
    varchar(50),
    @Fee_3_Name
    varchar(50),
    @Fee_3_Fee
    varchar(50),
    @Fee_3_Commission
    varchar(50),
    @Fee_4_Name
    varchar(50),
    @Fee_4_Fee
    varchar(50),
    @Fee_4_Commission
    varchar(50),
    @Fee_5_Name
    varchar(50),
    @Fee_5_Fee
    varchar(50),
    @Fee_5_Commission
    varchar(50),
    @Fee_6_Name
    varchar(50),
    @Fee_6_Fee
    varchar(50),
    @Fee_6_Commission
    varchar(50),
    @Fee_7_Name
    varchar(50),
    @Fee_7_Fee
    varchar(50),
    @Fee_7_Commission
    varchar(50),
    @Fee_8_Name
    varchar(50),
    @Fee_8_Fee
    varchar(50),
    @Fee_8_Commission
    varchar(50),
    @Fee_9_Name
    varchar(50),
    @Fee_9_Fee
    varchar(50),
    @Fee_9_Commission
    varchar(50),
    @Fee_10_Name
    varchar(50),
    @Fee_10_Fee
    varchar(50),
    @Fee_10_Commission
    varchar(50),
    @ContractDate
    varchar(50),
    @InsuranceName
    varchar(50),
    @InsuranceAgentName
    varchar(50),
    @InsuranceAddress
    varchar(50),
    @InsuranceCity
    varchar(50),
    @InsuranceState
    varchar(50),
    @InsuranceZip
    varchar(50),
    @InsurancePhone
    varchar(50),
    @InsurancePolicyNumber
    varchar(50),
    @InsuranceEffectiveDate
    varchar(50),
    @InsuranceExpirationDate
    varchar(50),
    @InsuranceCompensationDeduction
    varchar(50),
    @TradeIn_1_InteriorColor
    varchar(50),
    @TradeIn_2_InteriorColor
    varchar(50),
    @PhoneBlock
    varchar(50),
    @LicensePlateNumber
    varchar(50),
    @Cost varchar(50),
    @InvoiceAmount
    varchar(50),
    @FinanceCharge
    varchar(50),
    @TotalPickupPayment
    varchar(50),
    @TotalAccessories
    varchar(50),
    @TotalDriveOffAmount
    varchar(50),
    @EmailBlock
    varchar(50),
    @ModelDescriptionOfCarSold
    varchar(50),
    @VehicleClassification
    varchar(50),
    @ModelNumberOfCarSold
    varchar(50),
    @GAPPremium
    varchar(50),
    @LastInstallmentDate
    varchar(50),
    @CashDeposit
    varchar(50),
    @AHPremium
    varchar(50),
    @LeaseRate
    varchar(50),
    @DealerSelect
    varchar(50),
    @LeasePayment
    varchar(50),
    @LeaseNetCapCost
    varchar(50),
    @LeaseTotalCapReduction
    varchar(50),
    @DealStatus
    varchar(50),
    @CustomerSuffix
    varchar(50),
    @CustomerSalutation
    varchar(50),
    @CustomerAddress2
    varchar(50),
    @CustomerMiddleName
    varchar(50),
    @GlobalOptOut
    varchar(50),
    @LeaseTerm
    varchar(50),
    @ExtendedWarrantyFlag
    varchar(50),
    @Salesman_3_Number
    varchar(50),
    @Salesman_3_Name
    varchar(50),
    @Salesman_4_Number
    varchar(50),
    @Salesman_4_Name
    varchar(50),
    @Salesman_5_Number
    varchar(50),
    @Salesman_5_Name
    varchar(50),
    @Salesman_6_Number
    varchar(50),
    @Salesman_6_Name
    varchar(50),
    @APRRate2
    varchar(50),
    @APRRate3
    varchar(50),
    @APRRate4
    varchar(50),
    @Term2
    varchar(50),
    @SecurityDeposit2
    varchar(50),
    @DownPayment2
    varchar(50),
    @TotalOfPayments2
    varchar(50),
    @BasePayment
    varchar(50),
    @JournalSaleAmount
    varchar(50),
    @IndividualBusinessFlag
    varchar(50),
    @InventoryDate
    varchar(50),
    @StatusDate
    varchar(50),
    @ListPrice
    varchar(50),
    @NetTradeAmount
    varchar(50),
    @TrimLevel
    varchar(50),
    @SubTrimLevel
    varchar(50),
    @BodyDescription
    varchar(50),
    @BodyDoorCount
    varchar(50),
    @TransmissionDesc
    varchar(50),
    @EngineDesc
    varchar(50),
    @TypeCode
    varchar(50),
    @SLCT2
    varchar(50),
    @DealDateOffset
    varchar(50),
    @AccountingDate
    varchar(50),
    @CoBuyerCustNum
    varchar(50),
    @CoBuyerCell
    varchar(50),
    @CoBuyerEmail
    varchar(50),
    @CoBuyerSalutation
    varchar(50),
    @CoBuyerPhoneBlock
    varchar(50),
    @CoBuyerMailBlock
    varchar(50),
    @CoBuyerEmailBlock
    varchar(50),
    @RealBookDate
    varchar(50),
    @CoBuyerMiddleName
    varchar(50),
    @CoBuyerCountry
    varchar(50),
    @CoBuyerAddress2
    varchar(50),
    @CoBuyerOptOut
    varchar(50),
    @CoBuyerOccupation
    varchar(50),
    @CoBuyerEmployer
    varchar(50),
    @Country
    varchar(50),
    @Occupation
    varchar(50),
    @Employer
    varchar(50),
    @Salesman2Commission
    varchar(50),
    @BankAddress
    varchar(50),
    @BankCity
    varchar(50),
    @BankState
    varchar(50),
    @BankZip
    varchar(50),
    @LeaseEstimatedMiles
    varchar(50),
    @AFTReserve
    varchar(50),
    @CreditLifePrem
    varchar(50),
    @CreditLifeRes
    varchar(50),
    @AHRes
    varchar(50),
    @Language
    varchar(50),
    @BuyRate
    varchar(50),
    @DMVAmount
    varchar(50),
    @Weight
    varchar(50),
    @StateDMVTotFee
    varchar(50),
    @ROSNumber
    varchar(50),
    @Incentives
    varchar(50),
    @CASS_STD_LINE1
    varchar(50),
    @CASS_STD_LINE2
    varchar(50),
    @CASS_STD_CITY
    varchar(50),
    @CASS_STD_STATE
    varchar(50),
    @CASS_STD_ZIP
    varchar(50),
    @CASS_STD_ZIP4
    varchar(50),
    @CASS_STD_DPBC
    varchar(50),
    @CASS_STD_CHKDGT
    varchar(50),
    @CASS_STD_CART
    varchar(50),
    @CASS_STD_LOT
    varchar(50),
    @CASS_STD_LOTORD
    varchar(50),
    @CASS_STD_URB
    varchar(50),
    @CASS_STD_FIPS
    varchar(50),
    @CASS_STD_EWS
    varchar(50),
    @CASS_STD_LACS
    varchar(50),
    @CASS_STD_ZIPMOV
    varchar(50),
    @CASS_STD_Z4LOM
    varchar(50),
    @CASS_STD_NDIAPT
    varchar(50),
    @CASS_STD_NDIRR
    varchar(50),
    @CASS_STD_LACSRT
    varchar(50),
    @CASS_STD_ERROR_CD
    varchar(50),
    @NCOA_AC_ID
    varchar(50),
    @NCOA_COA_ADDSRC
    varchar(50),
    @NCOA_COA_MATCH
    varchar(50),
    @NCOA_COA_MOVTYP
    varchar(50),
    @NCOA_COA_DATE
    varchar(50),
    @NCOA_COA_DELCD
    varchar(50),
    @NCOA_COA_RTYPE
    varchar(50),
    @NCOA_COA_RTNCD
    varchar(50),
    @NCOA_COA_LINE1
    varchar(50),
    @NCOA_COA_LINE2
    varchar(50),
    @NCOA_COA_CITY
    varchar(50),
    @NCOA_COA_STATE
    varchar(50),
    @NCOA_COA_ZIP
    varchar(50),
    @NCOA_COA_ZIP4
    varchar(50),
    @NCOA_COA_DPBC
    varchar(50),
    @NCOA_COA_CHKDGT
    varchar(50),
    @NCOA_COA_CART
    varchar(50),
    @NCOA_COA_LOT
    varchar(50),
    @NCOA_COA_LOTORD
    varchar(50),
    @NCOA_COA_URB
    varchar(50),
    @NCOA_COA_Z4LOM
    varchar(50),
    @NCOA_COA_ACTION
    varchar(50),
    @NCOA_COA_QNAME
    varchar(50),
    @NCOA_DPV_AA
    varchar(50),
    @NCOA_DPV_A1
    varchar(50),
    @NCOA_DPV_BB
    varchar(50),
    @NCOA_DPV_CC
    varchar(50),
    @NCOA_DPV_M1
    varchar(50),
    @NCOA_DPV_M3
    varchar(50),
    @NCOA_DPV_N1
    varchar(50),
    @NCOA_DPV_P1
    varchar(50),
    @NCOA_DPV_P3
    varchar(50),
    @NCOA_DPV_RR
    varchar(50),
    @NCOA_DPV_R1
    varchar(50),
    @NCOA_DPV_STATUS
    varchar(50),
    @NCOA_DPV_F1
    varchar(50),
    @NCOA_DPV_G1
    varchar(50),
    @NCOA_DPV_U1
    varchar(50),
    @myerror
    varchar(500),
    @SalesID
    int,
    @errornumber int,
                @errorseverity varchar(500),
                @errorstate int,
                @errorprocedure varchar(500),
                @errorline varchar(50),
                @errormessage varchar(1000);
    DECLARE Sales_Cursor CURSOR FOR 
    SELECT * from FLATFILE_SALES;
    OPEN Sales_Cursor;
     :r C:\Clients\BlackBook\BlackBookMarketing\Bharath\LOG_SALES_INSERT.sql
    WHILE @@FETCH_STATUS = 0
    BEGIN
    PRINT @VehicleVIN    ;
    --===============================================================================
    -- ****************** insert into Sales Table ***********
    BEGIN TRY
        INSERT INTO Sales 
    IconicDealerID,
    DealNumber,
    CustomerNumber,
    DMSType,
    ContractDate
    VALUES (@ClientDealerID,@DealNumber,@CustomerNumber,@DMSType,@ContractDate);
    END TRY
    BEGIN CATCH
         SELECT
            @errornumber = ERROR_NUMBER()
            ,@errorseverity = ERROR_SEVERITY() 
            ,@errorstate = ERROR_STATE() 
            ,@errorprocedure = ERROR_PROCEDURE() 
            ,@errorline = ERROR_LINE()
            ,@errormessage = ERROR_MESSAGE();
           :r C:\Clients\BlackBook\BlackBookMarketing\Bharath\LOG_SALES_INSERT.sql
    @errornumber ,
                @errorseverity ,
                @errorstate,
                @errorprocedure,
                @errorline,
                @errormessage);
    END CATCH
    PRINT @errornumber;
    PRINT @errorseverity;
    PRINT @errorprocedure;
    PRINT @errorline;
    PRINT @errormessage;
    PRINT @errorstate;
    set @myerror = @@ERROR;
        -- This PRINT statement prints 'Error = 0' because
        -- @@ERROR is reset in the IF statement above.
        PRINT N'Error = ' + @myerror;
    set @SalesID = scope_identity();
    PRINT @SalesID;
    --================================================================================
    --Insert into SALES_TRADEIN Table
    BEGIN TRY
    INSERT INTO SALES_TRADEIN
    SalesID,
    TradeIn_VIN,
    TradeIn_Make,
    TradeIn_Model,
    TradeIn_ExteriorColor,
    TradeIn_Year,
    TradeIn_Mileage,
    TradeIn_Gross,
    TradeIn_Payoff,
    TradeIn_ACV,
    TradeIn_InteriorColor
    VALUES
    @SalesID,
    case when  @TradeIn_1_VIN is not null then @TradeIn_2_VIN end,
    case when  @TradeIn_1_Make is not null  then @TradeIn_2_Make end,
    case when  @TradeIn_1_Model is not null  then @TradeIn_2_Model end,
    case when  @TradeIn_1_ExteriorColor is not null  then @TradeIn_2_ExteriorColor end,
    case when @TradeIn_1_Year is not null  then @TradeIn_2_Year end,
    case when  @TradeIn_1_Mileage is not null  then @TradeIn_2_Mileage end,
    case when @TradeIn_1_Gross is not null  then @TradeIn_2_Gross end,
    case when @TradeIn_1_Payoff is not null  then @TradeIn_2_Payoff end,
    case when @TradeIn_1_ACV is not null  then @TradeIn_2_ACV end,
    case when  @TradeIn_1_InteriorColor is not null  then @TradeIn_2_InteriorColor end
    END TRY
    BEGIN CATCH
    SELECT
            @errornumber = ERROR_NUMBER()
            ,@errorseverity = ERROR_SEVERITY() 
            ,@errorstate = ERROR_STATE() 
            ,@errorprocedure = ERROR_PROCEDURE() 
            ,@errorline = ERROR_LINE()
            ,@errormessage = ERROR_MESSAGE();
          :r C:\Clients\BlackBook\BlackBookMarketing\Bharath\LOG_SALES_INSERT.sql
    END CATCH

    This is what I've understood from your question. You want to replace @TradeIn_2_VIN value if @TradeIn_1_VIN
    is NULL, else the value of @TradeIn_1_VIN.
    If this is the requirement then, your CASE statement is missing ELSE part. You can re-write this as below
    case when  @TradeIn_1_VIN is null then @TradeIn_2_VIN
    ELSE @TradeIn_1_VIN end,
    or simply you can replace the CASE statement with the below
    COALESCE function,
    COALESCE(@TradeIn_1_VIN, @TradeIn_2_VIN),
    Krishnakumar S

  • When inserting 3 column details in a single table using Stored Procedure.Only 1 Column details getting inserted.Other 2 Column details are not getting into the table.Please see the below script and help me to change.

    From the Parent Table i need to insert rows which are all under this column {(TradeIn_1_VIN),(TradeIn_2_VIN),(TradeIn_3_VIN) } into SALES_TRADEIN Table .
    I have used the below Query,
    But it reads only (TradeIn _1_Vin) Column in the SALES_TRADEIN table rest 2 records got skipped..
    INSERT INTO SALES_TRADEIN
    SalesID,
    TradeIn_VIN,
    TradeIn_Make,
    TradeIn_Model,
    TradeIn_ExteriorColor,
    TradeIn_Year,
    TradeIn_Mileage,
    TradeIn_Gross,
    TradeIn_Payoff,
    TradeIn_ACV,
    TradeIn_InteriorColor
    VALUES
    @SalesID,
    case when @TradeIn_1_VIN is null then @TradeIn_2_VIN else @TradeIn_1_VIN end,
    case when @TradeIn_1_Make is null then @TradeIn_2_Make else @TradeIn_1_Make end,
    case when @TradeIn_1_Model is null then @TradeIn_2_Model else @TradeIn_1_Model end,
    case when @TradeIn_1_ExteriorColor is null then @TradeIn_2_ExteriorColor else @TradeIn_1_ExteriorColor end,
    case when @TradeIn_1_Year is null then @TradeIn_2_Year else @TradeIn_1_Year end,
    case when @TradeIn_1_Mileage is null then @TradeIn_2_Mileage else @TradeIn_1_Mileage end,
    case when @TradeIn_1_Gross is null then @TradeIn_2_Gross else @TradeIn_1_Gross end,
    case when @TradeIn_1_Payoff is null then @TradeIn_2_Payoff else @TradeIn_1_Payoff end,
    case when @TradeIn_1_ACV is null then @TradeIn_2_ACV else @TradeIn_1_ACV end,
    case when @TradeIn_1_InteriorColor is null then @TradeIn_2_InteriorColor else @TradeIn_1_InteriorColor end
    END TRY
    Actually my problem is
     If  [(TradeIn_1_VIN),(TradeIn_2_VIN),(TradeIn_3_VIN)] these 3 columns have details i need all the 3 columns  details need to be read to SALES_TRADEIN table.
    Suppose if we have data only in [(TradeIn_1_VIN),(TradeIn_2_VIN)] then these column details need to loaded in the SALES_TRADEIN table.
    If any columns are blank no problem it can move next process.
    Please help me change those particular lines to insert all the 3 records  (TradeIn_1_VIN) (TradeIn_2_VIN) (TradeIn_3_VIN) in to the table.

    From SQL2008 on, besides INSERT-SELECT, and INSERT-EXEC, the INSERT-VALUES form of the insert command is improved. It can insert multiple rows like this:
    INSERT INTO my_table(MyColA, MyColB)
    VALUES
    (1, 1),
    (2, 2),
      (3, 3)
    You could also use that in SELECTs, like this:
    SELECT *
    FROM
    (    VALUES (1,2), (3,4)
    ) t(a, b)

  • Data is not populate into base table

    Hi all,
    I am using Oracle EBS R12 and OS is WIN XP. I am working in PO module.The data is not populating into the base table after running the concurrent program.Instead,the interface error table is populated with the error.
    The error is :-- Bill to location id not valid
    Name of concurrent program:import Standard purchase order

    Pl identify which version of R12. Pl see if these MOS Docs can help
    Vision Demo - How To Import Standard Purchase Orders Using the Purchase Document Open Interface          (Doc ID 1054004.1)
    How To Diagnose Problems With Importing Standard Purchase Orders          (Doc ID 781351.1)
    HTH
    Srini

  • Log invalid/valid login attempts into a Table

    Hi,
    I need to log all invalid / valid login attempts into the Oracle DB into a Table in the DB. I am using forms front-end.
    What is the best approach to achieve this ?
    Thanks
    s

    Hello,
    I am getting this error below:
    SQL> audit connect;
    Audit succeeded.
    SQL> desc dba_audit_session;
    ERROR:
    ORA-24372: invalid object for describe
    SQL> desc dba_audit_trail;
    ERROR:
    ORA-24372: invalid object for describe
    OWNER                          OBJECT_NAME                    OBJECT_TYPE
    SYS                            DBA_AUDIT_TRAIL                VIEW
    PUBLIC                         DBA_AUDIT_TRAIL                SYNONYM
    SYS                            DBA_AUDIT_SESSION              VIEW
    PUBLIC                         DBA_AUDIT_SESSION              SYNONYMFrom the login I am using I can query :
    dba_objects
    dba_views
    all_objects
    etc
    Why can't I view the above two views ?
    Thanks
    s

  • Downloads from iTunes are not going into my library

    When I download songs and podcasts from iTunes on my iPhone they seem to download fine but they do not go into my library. Any ideas? All software is up to date.

    I am using the same account. It happened once before and all I did was connect it to iTunes and it seemed to sort itself. I tried connecting it again but it doesn't seem to have worked this time. My purchases went into my library before when I purchased from the store on my iphone and I haven't changed any settings that would stop this. When I say my library, I mean the songs and podcasts don't appear on my iPhone when I purchase from it.
    Thanks for your help though.

Maybe you are looking for

  • Repeated Charges for auto-renew

    Hello, Let's try this again.  I have been charged 8 times today for autorenew @ $10 ea.  I checked with PayPal and the charges are real.  How do I contact Skype to get this reversed?  I don't see anywhere to do it from within the app or the Web site.

  • TS1567 ipad not detected by windows 7 pc

    I have installed the 64 bit version of iTunes, I have made sure the Apple Mobile devices thing is working... nothing. It's like absolutely nothing is happening when I plug the iPad (current generation) into my computer. VERY aggravating and I want to

  • Problem facing in using a Servlet with Netscape 8.1 in IE mode.

    Hello All, I am having action as a servlet from my form and method is POST. After the business logic is executed I am doing a getServletContext().getRequestDispatcher(TempSSPJSPPaths.REG_REPORT_EXPORT_EXCEL_JSP) .include(request,response); After the

  • No of Connections

    Hi All,         I have a WAS 6.40 SP11 server running in production.Now we have generic requirement to support some 40,000 individual users maximum.I want to know whether my server is capable of withstanding the load.Else what is do be done for suppo

  • How to reverse build status in oracle 10g

    Hi I am a student finishing my final year and im building my project using oracle. Today I have been getting my application evaluated ny other user who seem more interested in editing my application. Therefore I went to application builder tab clicke