OWB trying to create merge when should be update statement

Hi there
Have a problem whereby when set target update type of table to update, OWB trying to create a merge and failing with message merge sttament cannot be generated because column <column_name> is used for both matching and update.
A matching column cannot be updated in a merge statement.
We are trying to only update certain rows in a target table.
What is the best way to do this in a mapping in normal sql we
would do
update table
set cola = 12, col b=14
where cola = 10
Many Thanks

Hi there
Thanks for this. I get your idea of doing filter on target at start.
However in our situation I'm not certain how to achieve what we require, being new to OWB.
We have a source staging table with various tranasctions (updates, inserts and deletes all flagged with a timestamp. We need to process these as follows:
1) Inserts become inserts on the target table
2) Deletes become updates on target table, expiration date set to timestamp of record on source table. Here we need to limit the update to only update open record thus not changing history for the code concerned. Open record identified as expiration date set to '31/12/4000'
3) Updates become Updates, setting expiration date on current record to timestamp of staging table record, again only updating currently open record which is identified by expiration date set to '31/12/4000'.
What I thought of doing would be mapping
starting with target table going into a filter to get open records '31/12/4000'. This with joiner operator to staging table and the results of joiner to target table load type set to update. This would handle deletes and the update part of updates.
However this wouldn't take care of the inserts and the second part of updates, i.e. the requirement to insert new record to cater for the update.
Thought about two mappings, one with target type of update as above and another for inserts, but problem would be need to process all records in staging table in right order, e.g in one day could have insert then update. Couldn't run insert mapping first as update mapping would then run and close off the inserted record.
Basically looking for advice on best way to achieve the above.
Many Thanks

Similar Messages

  • When should I update to iOS4?

    My iPod Touch (8GB 2 generation) crashed after upgrading to iOS4. Apple replaced it with an identical model (with an older version 2.2.1) for free and was instructed to not upgrade to iOS4 until they have fixed some of the bugs. The problem is that 28 of my Apps will not work with the older version of which ten of them I use on a daily basis. As of now, I find my replacement totally useless until I perform an upgrade. When should I update? Please advise. Thanks!

    download a 3.1.3 version from: http://www.felixbruns.de/iPod/firmware/
    Keep the file on your desktop for now.
    Go on itunes, connect Device
    PRESS SHIFT THEN PRESS THE UPDATE BUTTON ABOVE THE RESTORE
    It will tell you to browse a file, a firmware file. Locate it to where you saved it. Wait till it says "Downloading" then "updating" Then you Device should turn off, and start updating.
    Good Luck, hope it works.

  • When should you update a package

    I've been using arch for a couple of months now, and only did a full update the day I installed arch.
    The reason I haven't done a update yet is because I am scared I'm gonna screw up my pc
    So I got some newb questions:
    1: Is it smart to do a full update?
    2: When should you do an update?
    3: Where can I find the source of an old package?
    4: If I do an update, should I backup anything?
    -- thanks in advance --
    Last edited by disparv (2012-01-12 19:58:54)

    disparv wrote:
    I've been using arch for a couple of months now, and only did a full update the day I installed arch.
    The reason I haven't done a update yet is because I am scared I'm gonna screw up my pc
    So I got some newb questions:
    1: Is it smart to do a full update?
    2: When should you do an update?
    3: Where can I find the source of an old package?
    4: If I do an update, should I backup anything?
    -- thanks in advance --
    My very personal answers.
    1. Yes ! (but read below)
    2. Personal answer. If you need a feature present in the next version of a package for example.
    3. If you need a precompiled old package read: https://wiki.archlinux.org/index.php/Do … g_Packages. If you want the source of an old package, you can get old build script by svn: http://www.archlinux.org/svn/ .
    4. Many people will say no. But, especially if core packages will be updated, I backup the whole system on a hard disk before updating.
    Bear also in mind that you cannot usually mix old and new packages (If you downgrade a particular package and that nothing depends on it and if the old version is still functioning, there is no problems; but if you completely mix old and new packages, including libraries you will have problems).

  • Weird problem when executing an update statement

    Please help me out with this issue. This a very weird problem i'm facing while executing the following update statement.
    update tblo.S_TABLE c
    SET (ACCNT_NAME, ACCNT_LOC)
    =
    (select NAME, LOC from S_TABLE1 p
    where p.ROW_ID = c.ACCNT_ID)
    where ROW_ID = 'XXXXX'
    The statement executes perfectly fine in "SQL Plus" but when i try from my application or any SQL Tool that uses ODBC, it fails with the following error
    <eb1>ORA-00923: FROM keyword not found where expected
    State:S1000,Native:923,Origin:[Oracle][ODBC][Ora]</eb1>
    ODBC Driver Used: 9.2.0.2.0

    Yes this could most probably be resolved by upgrading the driver. I'hv tried MS Oracle ODBC driver but that is even more problematic!
    The applications works fine in another environment which uses a Merant ODBC driver. Thanks for your time and advice.

  • How to create view that has an update statement

    Tools: MS Management Studio SQL 2008 R2
    Code:
    Create View as Mocha
    UPDATE dbo.Cola
    SET Login_ID = Replace(PE15,RTRIM(Cast(Login_ID),'')
    UPDATE dbo.cola
    SET P4 = NullIf(P4,'')
    I would like to create a database object "View" to hand it over to a user and run the script. How I would create a a view that would accept an update statement. Are any work around to accomplish this goal

    Not quite sure what you want to achieve.
    However, if your view displays rows from a single table and each row relates to exactly one row in the source table (no aggregates, no join, no transformation) then you can update it.  The update will be executed on the table it refers to.
    If you view is more complex, contains joins, aggregates and such, you can create a trigger on it to update the base table(s).
    The conditions for a view to be updatable are a little more complex then what I wrote but you can find it here under "updatable view":
    http://msdn.microsoft.com/en-CA/library/ms187956.aspx
    In the end, you would have a view which displays rows and can be updated.
    If all you want is to modify rows without viewing them then HuaMin Chen's solution is the one for you, create a stored procedure instead.

  • When should the System State be explicitly backed up?

    I'm trying to find out what is covered by the BMR and System State options in DPM 2012 R2. According to the below blog post BMR includes the System State. But what does the System State include? Would you ever need to back it up if you've included BMR
    in the PG?
    By default the BMR will protect the "critical system data" According to the Microsoft definition -> critical data =  System State and C drive and all other drivers that contain system data directories (Program files).
    http://scdpm.blogspot.co.uk/2011/11/bare-metal-recovery-bmr-option-in-dpm.html

    Hi
    Systemstate includes:
    http://technet.microsoft.com/en-us/library/cc938537.aspx
    BMR ist an additional Option which gives you the possibility to Recovery the Systemstate (which is included in BMR) on a different Hardware
    See this:
    http://blogs.technet.com/b/askcore/archive/2011/05/12/bare-metal-restore.aspx
    Seidl Michael | http://www.techguy.at |
    twitter.com/techguyat | facebook.com/techguyat

  • Why does OWB generate merge statement when target type = Update

    Hi there
    getting problem message cannot generate merge. I don't undretand why even trying to ctreate a merge when should be an update and then sql would be fine.
    trying to update a table whose expiry date = '31-DEC-4000' (via raget filter for update
    and also put value from src into this field.
    This would be ok in sql
    update table
    set col = new_value
    where col = 31-dec-4000'
    Any thoughts - it seems strange why OWB generate a merge when set target type to Update since other target types of Update/Insert and Insert/Update available to generate merge.
    Many Thanks

    I understand what you are trying to say...
    One simple workaround for this is: In the mapping, add one more column in the target table eg: match_val. Set the bound name to match column eg: col.
    Set the one match_val attribute properties to "match column when updating" & actual column eg: col attribute properties to "Load column when updating".
    This will generate merge statement for your requirements. This will help u.

  • Trying to create Mouse over effect with more than one show image appearing in same cell

    Firstly this is the link to my test page: http://www.design39.co.uk/indexhope.html
    If you roll your cursor over the top left logo (the D&S) one it displays an image to the left. If you roll your cursor onto the next logo (Netnotts) it fades away again. Great. Exactly what I wanted and created in CSS (well done me as I don't normally do much with CSS but the new CS4 has very forced it).
    What I am trying to create is: When you roll onto the Netnotts logo, not only does the original image to the left disappear but a new relative one appears, this is to be for all the logos. In CSS I can only create it as far as I can. I have thought about using AP DIV tags to do it which would obviously work but to keep it in the right place, I would then have to align my whole website to the left instead of centered like it is and to be fair, that's not particularly pleasing to the eye as this is my own portfolio of work.
    I can do flash  to make 'pretty things' but have no idea about actionscript and java is way over my head but I am sure with some help I would be able to get it together as the that particular effect, although done in CSS, is running javascript I noticed.
    Many thanks in advance.

    A relative positioned layer? does this mean it knows how far to be away from the table as a pose to an absolute positioned layer which is lay 15px from the left? I need to be able to keep the positioning as its key, cant have the layer popping up in different places pending on the users browser size.
    I posted the question on a few forums and I got the following back: http://www.design39.co.uk/bla.html
    which is exactly what i wanted it to do but have no idea how to insert java script into my page; Further more, that was done in layers not table cells.
    Any ideas?

  • How can you create a simple insert or update trigger

    I am trying to create a simple insert or update trigger to timestamp an xml document when I load it into my XML DB repository but I always get an error trying to compile the trigger.
    "ORA-25003: cannot change NEW values for this column type in trigger"
    Here is my PL/SQL:
    CREATE OR REPLACE TRIGGER "PLCSYSADM"."PLCSYSLOG_TIMESTAMP"
    BEFORE
    INSERT
    OR UPDATE ON "PLCSYSADM"."PLCSYSLOG"
    FOR EACH ROW BEGIN
    :new.sys_nc_rowinfo$ := xmltype('<datestamp>' || SYSDATE || '</datestamp>');
    END;
    Does anyone have an example that works ?
    Thanks in advance
    Niels Montanana

    http://developer.apple.com/referencelibrary/HardwareDrivers/idxUSB-date.html

  • Im trying to make a simple 360 rotation for a 3d logo in CC 2014 but when i tried to create the 1st key frame the image when out axis

    im trying to make a simple 360 rotation for a 3d logo in CC 2014 but when i tried to create the 1st key frame the image when out axis

    I find that if you have multiple 3d object  they must be merged into a single 3d layer their positions reset to align to the same axises then sized and positioned along them. The layer should then be able to be animated well around an axis like the y axis. Here a Sphere, Cylinder and ring. http://www.mouseprints.net/old/dpr/McAssey-CC.mp4

  • When I tried to Mail Merge for Data is is not exporting any data.

    HI,
    EBS-12.1.3
    DB-11gR1
    OS - RHEL 5.6
    [With my Login User and SysAdmin Login User] When I enter into to the "People -> Enter and Maintain" Form and then I press the "Export Button", there is error Alert
    Function is not available to this responsibility. Change Responsibilities or Connect to the System Administrator
    I Added the Function "HR ADI Seeded Integrator Form Functions" into the "AE HRMS Manager" Responsiblity. It is also working and Export Data icon is enable.
    Problem:
    But Problem is when I tried to Mail Merge for Data is is not exporting any data.
    ====================================================================
    Steps
    1.Move to the "People -> Recruirment" and then "Request Recruitment Letter" .
    2. Enter the New Request. as
    Letter Name "App. Letter Contract Site",
    Automatic or Manual = Manual.
    Select the Name from the LOVs for the Request for Detail Block.
    3. Press the "Export Data" icon.
    4. Integrator Page Appear with my Custom Integrator Name as "Appointment Letter - Contact Site".
    5. Select the "Word 2003" from the View List. and Reporting is Checked.
    6. Review the Folowing Enteries as:
    Integrator Appointment Letter - Contact Site
    Viewer Word 2003
    Reporting Yes
    Layout App. Letter Contract Site
    Content XXHR_MBE_APP_LET_CONT_SITE_V
    Session Date 2011/08/02
    Mapping XXHR_MBE_APP_LET_CONT_SITE_V Mapping
    7. Press "Create Document" Button.
    8. It will open the Excel 2003 and then Word 2003. But no data down download from the Form.
    9. It open the Mail Merge Letter but no Data is Display.
    ===========================================================
    Note:
    a. I am following the Steps from the Link:"http://apps2fusion.com/at/38-ss/351-generate-recruitment-letters-web-adi".
    b. From the "Desktop Integrator Manager", "Oracle Web ADI", "HRMS Web ADI", it is working fine and Dowload the Data.
    ===========================================================
    Thanks
    Vishwa

    Please try the solution in ("Function not available to this responsibility" Error While Cliclking On Forms Personalisation [ID 1263970.1]) and see if it helps.
    Thanks,
    Hussein

  • Error when trying to create a Variable Rent - Property Manager

    Hi All..
    Im trying to create a Variable Rent record for a lease in PN- Release 12 , but an error shows up when I try to generate periods.
    Error says that GL CALENDAR should be longer than termination date.
    What it specifically means? My lease termination date is 31-DEC-2021 , for me it seems everything is set correctly, in R11 this set up works perfectly. Should I create a GL Calendar specifically for property manager that include 2021 periods ?? The GL calendar that I'm using ends in DEC-12, Should I create new one longer than this?
    I'll be appreciate your advice.
    Robert

    Posted more detailed question.

  • Error when trying to create new BP in MSA 5.0 SP08

    Hi,
    We have currently an issue in MSA 5.0 SP08 when we are trying to create a new BP. We receive the message "Relationship (Employee) - Error handler in function EvalsfakvbeztpfromReltyp reached". Looking into the code we find this error handler in the BOINTBPEMP :
    The error is triggered when the standard method CreateBusineesObject is invoked. Sfamitabt contains a guid but it's a string and as you can see, the method should wait an object. Not sure if it is the source of our problem:
    Public Overridable Function CreateBusinessObject(ByVal typeName As String, Optional ByVal parameterNames As Object = Nothing, Optional ByVal parameterValues As Object = Nothing) As SAP.MT.FW.BLL.BusinessObject
         Member of: SAP.MT.FW.BLL.BusinessFactory
    Some more investigation we did : the object Err.Number equal 0 (no internal error) and i was not able to put a break point into the class constructor for BOEMPLOYEE because it is a protected event (CreateBusinessObject("BOEMPLOYEE" should be link to the class contructor of BOEMPLOYEE when a new object is created)
    However, I can confirm that SFAMITABT contains a valid guid (i checked smomitabt) and i also tried during the debug session to change interactively the guid with an other valid one, but i still have this problem.
    I started the sql profiler but i saw nothing relevant in there.
    I modified the sensitivity for the debug in order to see if i will have more informations but without success and the MSIL (intermediate languaged) did not help me more.
    Please advise,
    Thanks
    Christophe

    Aren't customer task not used anymore?
    Or am I mixing things up here.
    Well the problem isn't a problem it is SAP standard behaviour you simply can't configure customer tasks (type T in PFTC)
    You can only configure Standard Tasks (TS) or workflow templates (WS)
    Kind regards, Rob Dielemans
    Edited by: Rob Dielemans on May 29, 2009 12:51 PM
    Just had a look at the SAP help and indeed types T aren't allowed anymore SAP gives the solution to copy the customer task, this will automatically change it to a standard task

  • I tried to install windows 7 in my macbook pro late 2011 but i tried to create partions after it installed and it turn to dynamic disks and ican't access mac or win 7 what should I do i cant format it because i dont have a backup

    I tried to install windows 7 in my macbook pro late 2011 but i tried to create partions after it installed and it turn to dynamic disks and i can't access mac or win 7 what should I do i cant format it because i dont have a backup

    It's not that you can't format it because you have no backup, it's because you'll lose everything when you do. Lesson learned. Always have a backup.

  • Error message when trying to create realm in OAS

    I have deployed my app to OAS 10.1.3 from JDEV 10.1.3.3. I am trying to create a realm so I can set up roles and users but when I hit apply I get the following error message:
    An error has occurred.
    Error invoking method: addRealm on MBean: oc4j:j2eeType=Security,name=SecurityProvider,J2EEApplication=KATS,J2EEServer=standalone
    Error invoking method: addRealm on MBean: oc4j:j2eeType=Security,name=SecurityProvider,J2EEApplication=KATS,J2EEServer=standalone
    Is there something I should have done when configuring for deployment? Is this a bug with the OAS?
    Thanks for any help.

    Hi,
    this is a JDeveloper forum. There is a separate OracleAs forum that you can post your question to.
    Frank

Maybe you are looking for