UPDATE/INSERT

Hi All,
My target table has two columns table_id and status. table_id is the primary key.
I am doing an UPDATE/INSERT type of loading and match by constraint - "all constraints".
The records should be updated by matching my primary key column - table_id.
The mapping is running to success but showing some warnings... and not all soirce records are inserted/updated.
I have two questions here -
1.Is my loading strategy correct ??
2. Where to see a detailed error log of these warnings ?
Regds
-Arnab

Hello. If you have a primary key then select it as the driving constraint.
It will then merge correctly using the single PK definition.
Another very helpful thing to do is to set your mapping to SET BASED only and set errors to 2. This will allow the mapping to log the failure (seems to need 2 errors to log the first error) and will result in no records being inserted/updated on a failure. This will help you debug your mappings.
Also you can generate aspects of your mapping to see the sql statement build up. This means to expand an operator and select a group level and right click choose generate intermediate, this will show sql leading into inputs, and leaving via outputs also very handy to see your mapping logic building up.
Check the generate from the mapping editor this will show the logic for doing the merge, it will match on keys check its correct, cut and paste it into sql and debug it.
Have fun.
Regards,
Richard Harrison.

Similar Messages

  • Error in updating/inserting task in database

    When I pass in a runtimeFault Code, Detail and Summary into Flexstring1,2,3 I am getting this runtime error :
    Error in updating/inserting task in database. SQL Exception while updating/inserting task into the database. Check the error stack and fix the cause of the error. Contact oracle support if error is not fixable.
    Where can I find the error stack?
    Pete

    turn the following loggers from info to debug level (bpel console/manage domain/ tab logging)
    default.collaxa.cube.ws and
    default.oracle.services
    given you are using a developer isntall, you should see the stack a dos box
    if you are using an application server mid tier cou can find them in $AS_HOME/opmn/logs/OraOc4J_BPELxxxx.log
    hth clemens

  • Update/insert/delete data from xcelsius to Database via web service

    Hi,
    I need to create dashboard that go function can <b>update/insert/delete</b> data send to <u>Database</u> thru <u>web services</u>, as i know got 2 xcelsius add-on software which support those of function <b>InfoBurst</b> and <b>flynet </b>
    <b>InfoBurst</b>
    http://www.infosol.com/azbocug/minutes/4-Writeback%20to%20a%20Database%20with%20Xcelsius.pdf
    <b>flynet </b>
    http://www.flynetviewer.com/public/community/Blogs/FlynetXcelsiusServerUser/default.aspx
    Except this 2 purchase add-on xcelsius, any other solution ?  
    Maybe need to write some in MSSQL or C# programming which enable insert, update, delete ...etc  ?
    *note: i not use Xcelsius Engage Server , i use Xcelsius Engage only
    thanks,
    regards
    s1
    Edited by: Leong Pui Kee on Mar 1, 2011 6:06 AM

    Hi,
    As of now in Xcelsius/Dashboard Design there is no feature or functionality to insert/update/delete data from database.
    Solution:
    Create a Web service in let’s say C# or Java, which will perform insert/update/delete operation.
    In Xcelsius add Web Service connection and user above web service.
    Xcelsius Web Service connection provides option to pass input values to a Web Service (Input Pane) and get the result (Output values pane).
    We can pass values to be written to the database as a input to Web Service via Web Service connection from Xcelsius and write data to the database.
    Note:
    Performing delete operation from Xcelsius Dashboard could be risky and may delete important data from database. I would not prefer giving delete option/functionality in Xcelsius dashboard.
    Hope this helps!
    Thank you.
    Regards,
    Vinay Mhaske

  • ERROR (ORA-01002)  when Ioading a table by UPDATE/INSERT

    I get the error message ORA-01002 ( Fetch out of sequence ) when I am loading a table by UPDATE/INSERT.
    At de Runtime Audit Viewer the process of loading update a number of register, in that case 44.050 and to the left register I get the error message that I show above.

    Can you please give us some details about your source and targets. I have used UPDATE/INSERT but I did not get this kind of error.
    rgds
    -AP

  • * * Procedure needs a way to  perform  update, insert or delete to...

    Hi Gurus,
    I got Assignment & need your help how to write this procedure efficiently.
    ** The procedure needs a way to actually perform the update, insert or delete to bring the reference data up-to-date with the refresh table.**These columns are for internal use and should not be compared to the refresh tables.
    Column 1
    Column 4
    Column 5
    Column 7
    Column 9
    Column 12
    Column 22
    Column 24
    1)     I would list out the columns in the cursors in place of the *. Or better define a record with %ROWTYPE.
    2)     You will need to include a way to look for rows that may be in one table and not the other.
    a.     Insert the rows that exist in the refresh table, but are missing from the reference table.
    b.     Delete the rows that are found in the reference table, but do not appear in the refresh table.
    3)     You also need to provide for handling the expiration date. Our default expiration date is ‘01-JAN-2500’, meaning if the refresh table has a futuristic expiration date or null, then our default expiration date is considered valid. Also this date needs to be added to any new rows created as a result of the refresh, if you leave the EXPIRATION_DATE column out of the insert it should default to the above date.
    4)     I assume that Differences is where you plan to list the actual data values that differ. If you don’t list the whole row I would at least list the primary key, in addition to what columns are different.
    5)     The procedure needs a way to actually perform the update, insert or delete to bring the reference data up-to-date with the refresh table.
    Thanks in advance

    Hi,
    Take a look at merge
    http://www.psoug.org/reference/merge.html
    Keep Smiling
    Bob R

  • In jdbc adapter what is the difference between insert and update insert

    in jdbc adapter what is the difference between insert and update insert
    Edited by: katru vijay on Mar 22, 2010 7:43 AM

    Please refer to this Link [Document Formats for the Receiver JDBC Adapter|http://help.sap.com/saphelp_nw04/Helpdata/EN/22/b4d13b633f7748b4d34f3191529946/frameset.htm]
    Hope this helps.
    Regards,
    Chandravadan

  • MULTIPLE UPDATES/INSERTIONS TO THE SAME TABLE

    How can I update/insert mutiple rows into the same table from one form ?

    Hi,
    Using the portal form on table you can insert only a single row. You can use master-detail form to insert multiple rows.
    Thanks,
    Sharmila

  • How do I update/insert into a target table, rows after date X

    Hi all
    I have a mapping from source table A to target table B. Identical table structure.
    Target table A updates rows and inserts rows daily. Every week I want to synchronize this with table B.
    I have CREATION_DATE and LAST_UPDATE_DATE on both tables. I want to pass in a parameter to this mapping of date X which tells the mapping:
    "if CREATION_DATE is past X then do an insert of this row in B, if LAST_UPDATE_DATE is past X then do an update of this row in B"
    Please can you help me work out how to map this correctly as I am new to OWB.
    Many thanks
    Adi

    Hi,
    You can achieve this by -
    1. Create a control table, say Control_Table, with structure
    Map Name, last_load_date. Populate this table with the mappings that synchronizes your Table B.
    2. Alter mapping, that loads Table B to use the above control table to get all the records from Table A, you have to join Table A and Control_Table with the condition -
    Control_Table.Map_Name = < mapping name>
    AND ( TableA.Creation_Date > Control_Table.last_load_date
    OR TableA.Last_Update_Date > Control_Table.last_load_date )
    3. Then use UPDATE/INSERT on the Table B based on the Keys. This should take care of INSERT ( if not present) / UPDATE (if the row already exists).
    4. Schedule the mapping to run on weekly basis.
    5. You have to maintain the Control_Table to keep changing the values for Last_Load_Date to pick the data since the last time Table B is synchronized.
    HTH
    Mahesh

  • Data comparison and update/insert between two schemas in same database

    Hi all,
    I have requirement like this. In one database, i am having two users, user1 and user2. Both users is having same tables and structure wise also same. In user1, data will be populated by job.
    Now, what i want to do is, i have to find out difference between user1 and user2 data and the Difference data will be updated/inserted into the user2.
    Any ideas please...
    Thanks in advance,
    Pal

    Will trigger help you ... ie. for every update/insert on user1 will do on user2-- it is heavy to do for all table...
    --svmg                                                                                                                                                                                                                                                                   

  • Issue with UPDATE/INSERT Loading type

    Hi ,
    i am using the owb11g
    all that i am trying to do is load in to Target table using update/insert loading type.
    there are duplicates in the src table, and i have PK defined on the Target table.
    when ever i execute the mapping it says NO DATA TO READ FROM SOCKET.
    what is the solution? can there be a better way of doing this?
    please help

    why do you keep posting duplicate posts for the same problem?
    Please continue with your post (link below)
    No more data to read from socket

  • Update/Insert Problem with Oracle Warehouse Builder

    Hello,
    i have update/insert problem with owb.
    Situation: I have a source-table called s_account and a target table called w_account_d. In the target table are already data which was filled trough the source table inserts. Now anyone make changes on data on the target table. This changes should now give further on the source table with an update operation. But exactly here is the problem i can´t map back the data to source because that will create a loop.
    My idea was to set a trigger but i can´t find this component in owb or is anywhere hidden?
    Also i have already seen properties as CDC or conditonal loading in the property inspector of the table, but i have no idea how it works.
    Give it other possibilities to modeling this case? or can anyone me explain how i can implement this eventually with CDC?
    I look forward for your replies :)

    Hi
    thanks for your answer. I follow your suggestion and have set the constraints of both tables into the database directly.Nevertheless it doesn´t work to begin. In the next step i found by right click on a table the listpoint "configure" - I goes to "unique key" --> creation method and set here follow options: Constraint State = ENABLE, Constraint Validation = Validate. That error message that appears before by the deployment disappears yet. Now i start the job to test if the insert/update process works right. Finally it seems to work - but not really.
    My Testscenario
    1. Load the data from source table about the staging area to data warehouse table: Check - it works!
    2. Change one data record in source table
    3. Load the source table with changed data record once again to staging area: Check - it works!
    4. Load new staging area table with the changed data record to data warehouse table: Check it works! BUT, BUT i can not recognize if it is insert or update operation, then under the design window by jobs execution windows is reported "rows selected 98", Rows inserted" is empty and "rows updated" is empty. So i think works not correct, then my opinion if it works correct it should show be "rows updated" 1.
    What can yet now still be wrong or forgotten? Any ideas?
    *By the way think not 98 rows there is not important if you make an update or insert which performance. It is an example table the right tables have million of records.*
    I look forward for your answers :)

  • Update/Insert mode couldn't apply to SQL Server source via Transparent Gateway.

    Hi all,
    OWB version is 9.0.2.56,database version is 9i Release 2.
    When set load type to "Insert",mapping works fine from SQL Server to Oracle table,via Transparent Gateway 901.
    But "Update/Insert" always runs error with "Fatal error or maximum number of errors exceeded".while I define both source and destination table to oracle tables in mapping,"Update/Insert" works file.
    Any suggestion?

    Hi Ignor,
    Thanks for your reply!
    The SQL Server version is SQL Server 2000.
    I just want to ETL data from a SQL Server table via Transparent gateway into oracle table,the source table has a increment seq field,so I want to define mapping using update/insert loading method in OWB,according to this seq field,if there is the same seq in the target table,do update,if not,insert the row.I just find out that if I use a middle table in oracle to do truncate/insert mode from SQL Server source table,then do update/insert mode from the middle one to target table,it works.But can't do directly from source to target using update/insert mode.Does this means update/insert mode only apply to mapping from local table to local table?
    Regards,
    Robbin

  • How to perform UPDATE/INSERT

    Hi,
    How can i perform update/insert we do in OWB, which insert records if they are not available in target and updates them if they already exists.
    I am now using IKM Oracle Incremental Update(MERGE)
    but i am getting some error while execute
    VSG

    Here is the error.
    com.sunopsis.core.SnpsInexistantObjectException: There is no connection for this logical schema/context pair:RDDM_LOGICAL / STGDW_LOGICAL
         at com.sunopsis.dwg.dbobj.SnpConnect.getSnpConnectByLSchemaNameAndContext(SnpConnect.java)
         at com.sunopsis.dwg.dbobj.SnpConnect.getSnpConnect(SnpConnect.java)
         at com.sunopsis.dwg.dbobj.SnpSession.getDwgConnectLst(SnpSession.java)
         at com.sunopsis.dwg.dbobj.SnpSession.getConLst(SnpSession.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.g.y(g.java)
         at com.sunopsis.dwg.cmd.e.run(e.java)
         at java.lang.Thread.run(Unknown Source)

  • Update/Insert Duplicate Rows

    Hi I am loading a target table [empty] for the first time. I am using update/insert strategy. however, it's only inserting. not updating inserted rows.

    In a single mapping and on an empty table you can only insert rows. The Insert/Update strategy will update rows if the matching criteria you have used satisfies on an existing set of rows prior to your running the mapping. In other words you cannot expect OWB to update rows which it has inserted in the same statement !...
    You can try Row Based mode and put an order by clause before inserting into the target table and check to see if the update happens.
    Regards
    -AP

  • Update/Insert key matching

    I've got a table in OWB that has a surrogate key as the unique key and the natural key (matching the source data) as part of the orginal key and a lookup value that's part of a dimension in OWB.
    I'm trying to figure out how to get OWB to match data to do an update/insert on the incoming data, but I keep getting VLD-2780 errors (saying that it can't update the surrogate key because it comes from a sequence). Duh..
    The short of it is this:
    Source_Table (key_part1, key_part2, key_part3)
    Dest_table (surrogate_key, key_part1, dimension_key)
    The dimension key is obtained from a key_lookup using key_part2 and key_part3 to return a single dimension key.
    I have a PK on the surrogate key and a unique key on key_part1, dimension_key in the DEST table. The source_table has a PK across all three columns.
    What's the proper way to tell OWB how to match data between teh two tables for an update/insert?
    Thanks!

    Hi!
    Make sure to have the following properties set correcty in the mapping editor:
    For the target table: "match by constraint" : choose the key yo want to use or "No constraints" if you do not wish to use any key.
    For each attribute of the target table:
    Loading properties:
    Load column when updating: no for your matching fields, yes otherwise
    Match column when updating: yes for your matching fields, no otherwise
    Load column when inserting: yes
    Load column when updating must be no for the primary key!
    Regards,
    Carsten.

Maybe you are looking for

  • How do I allow other users limited access to iPhoto?

    I am seeking to create other user accounts for my Mac that will allow my wife and my 8 year old to view photos in iPhoto but will not allow them to screw it up (i.e., will not allow them to edit or delete any photos, etc.).  Is there a way that I can

  • Support for n-channel icc-profiles

    I have recently attended a symposium where some speakers touched on Photoshop's (or the whole CS') lack of support for n-channel ICC-profiles. And (while I have to admit that the ramifications may be beyond my comprehension) the point seems very much

  • I have lost my IPhoto's Library.

    This has been deleted I presume at some point and I cannot find it on 'Spotlight' or trash bin. Is there anyway of finding this through a restore etc, I don't have any backup through hard drive or time capsule. 10 years of photos gone :-( Any help ap

  • Build 7600 This Copy of Windows is not genuine

    Diagnostic Report (1.9.0027.0): Windows Validation Data--> Validation Code: 50 Cached Online Validation Code: N/A, hr = 0xc0000034 Windows Product Key: *****-*****-QXY7X-TG33Q-9TDMY Windows Product Key Hash: mfe+izvSb6PsVJ/TfAP4kLVWtF0= Windows Produ

  • Which is better Remote Client Copy or Homogenous copy

    Hi All I have a task to synchronize the ECC Production server with devlopment server For this I have two option : 1. Remote client copy from Production to Development 2. Implementing homogenous copy(oracle procedure) of production server and then rem