DELETE / INSERT ON A MAPPING

Hi.
I am doing a DELETE / INSERT on a mapping, but when I deploy it, the delete condition that generates is not the same that exists in the mapping
i.e
MAPPING CONDITION
INOUTGRP1.TIME_ID
BETWEEN
(select TO_CHAR(FECHA_CARGA,'J') || '00' from CDW_PARAM_DWH)
AND
(SELECT TO_CHAR(FECHA_CARGA,'J') || '24' from cdw_param_dwh)
* I delimited the delete range trough START DATE and END DATE
GENERATED CONDITION
DELETE FROM "CDW_BALANCE_A_AGG"';
* The code generated DELETES all the table.
What can I do?
Thanks

Best thing to do is delete before running the mapping in a premapping process. If you need parameters you can still use that by doing it via mapping parameters.
In the pre mapping process you simply run a function that does the delete within the pl/sql.
Jean-Pierre

Similar Messages

  • Using delete/insert mode operator target in mapping

    Hello Guys,
    Can you help me please to resolve my problem. It's very urgent.
    I use OWB 10gR2 and I create a mapping for loading data from table to table.
    I got a source table A that I want to integrate into a table B.
    I want to put my target table B on delete/insert mode to delete data from B where A.annee = B.annee
    before inserting data from A.
    How to configure this mapping.
    Thanks in advance.
    Regards.
    fanfita.

    you dont have to do anything in particular:
    on the target table propperties click on the load type as Delete/Insert and specify the column which you need to check while deleting this can be done by clicking on the column of target table in your mapping and setting the properties such as "load while insert/delete/update etc" , you got to check the delete option of the columns that you want to check while deleting.
    If your target table has sequence then delete and insert will generate new sequence id and i am not sure if there is a Foregin key which needs to be considered here so it might be a better option to use update/insert
    if there are no dependencies at all then you can go for delete/insert option.
    Edited by: Darthvader-647181 on Feb 5, 2009 1:46 AM

  • Loading Type: DELETE/INSERT

    Hi,
    OWB 9.2.0.x
    I need to develop logic wherein the target rows would be deleted based on a condition (column value already present), and then insert new rows.
    The DELETE/INSERT Loading Type on Target is just doing a blanket delete where criteria matches and inserting fresh rows, instead of deleting just those rows that match the criteria.
    An alternative was to have a lookup, and take that to a splitter, and send matching row to a TARGET with Loading Type set to DELETE, and other set to another copy of the TARGET with Loading Type set to INSERT.
    This also does not work properly, and behaves inconsistently.
    Any help on this would be much appreciated.
    Regards
    Jojo

    To put in an example:
    We have to delete the records matching the input(staging), and then reinsert them.
    That is input records will be like
    1 a
    1 c
    5 a
    5 b
    3 a
    Target may have something like
    1 a
    1 b
    1 c
    2 a
    2 b
    3 a
    All records with first field as 1, 2 or 3 in staging should be deleted from target, and then the full staging gets inserted.
    Final target would then become
    1 a
    1 c
    2 a
    2 b
    5 a
    5 b
    3 a
    An alternate solution that comes to mind is
    Implement a delete mapping, and then do the inserts. But this would require two passes through the staging data.
    Regards
    Jojo Thomas

  • DELETE/INSERT

    Hi,
    Am working on a Mapping that requires a delte insert functionality. That is, the rows in target matching a specific column should only be deleted.
    So, modified loading type to delete/insert, match by constraints to none, and then set match column when deleting to yes for the specific column
    The mapping is but doing a blanket delete. Can somebody suggest a workaround or tell where the problem is.
    OWB 9.2.0.2
    Regards
    Jojo

    OK. I have partitioned the fact table based on year and changed the loading type to TRUNCATE/INSERT. Under "Conditional Loading" I have set the 'Target Filter for Delete' to INOUTGRP1.YEAR='2004'.
    When I execute the mapping to replace data for year 2004, all the data is deleted (including the data for year 2003) and the new 2004 data is inserted. How can I just replace the data for year 2004 and leave the data for year 2003 intact?

  • How do I delete the old Google Maps applicaiton

    I think I have a problem that many wish they had prior to google releasing an updated Maps application.  I updated to iOS6 and got the new Apple Maps app, but still retained the Google Maps app as well.  This is one of the kind of apps that can't be deleted, like SMS, Phone, etc.
    I can move it around, and generally used to just stuff it away on the last page, but now I want to make an effort to remove it.
    Looking at the file system, at the .ipa files, the built in .ipa's are not included.  Anyone know where those are stored, so perhaps I could remove that, to see if it would remove it from my phone on next sync?
    I did a backup and restore the other day, still no change.  I did a backup, completely erased my phone to factory, then did a restore, which also didn't work.  And finally, though I really didn't want to, I went ahead and erased my phone with the intention of rebuilding it from scratch, though the darn Maps app was still there, so  just backed up a step and did a restore to my last backup point to save the hassle of setting up my phone from ground zero.
    I have added two screen shots, one wiht my mouse selecting a normal app so you can see I get the "X" to delete icon on the app, and the other with the maps application selected so that you can see I DO NOT get the "X".
    I filtered the left list to just the google ones, but have tried various other combinations such as "maps" to locate it, it is not in the list, just as "phone", "sms", and "mail" are not in the list.
    Any help would be appreciated
    Message was edited by: this-is-my-alias because I forgot to add the image attachments.

    Older versions of the SMS app I don't even believe we're called "SMS" but "Messages" though I could be wrong on that. There were differences in the SMS app regarding FaceTime. The current app has a button at the top that allows you to jump that conversation into FacrTime. Older versions didn't have that button as FaceTime was not released yet.
    Yes, I can delete the new Google Maps App, it is an app I downloaded from the App Store. What I can't delete is the icon labeled Maps, which is also a google app, not a bookmark.
    For the large majority of users of iPhones of compatable hardware, when they upgraded to iOS6 the Google maps application that was part of a default iPhone installation was deleted. In it's place was installed Apples debatably botched Maps application.
    In my case, that didn't happen. I was left with both applications still intact. At first I didn't even understand why everyone was so upset with Apples Maps implementation. From my perspective, if they didn't like it they could simply use the Google Maps application they had been using all along. Then I started to see people asking where they could download the old Google Maps App and it started to make sense. Their system no longer had the app. They only had one choice, Apple 's Mapping app, while I still maintained both choices.
    I'm looking for others who have experienced this and solved it. I've seen similar cases where different apps hang around longer than they should, but never found a solution. I assume over time enough users will report this to Apple and a software update will correct it. I however, would like to correct it now.

  • Can you insert a google map in flash?

    I was wondering
    how I could insert a google map in a
    flash app and preserve the interactive aspects of the google map?
    Thank you for the help.

    yes, for as3, there's an api for flash.  check the google docs.
    for as2, you can purchase (or they may be a free) google component or, use javascript and the flash externalinterface class.

  • Edit/delete/insert forms using php

    Hi,
    I have created an application that will allow me to
    edit/delete/insert data to my database using php.
    The functions work. But when I click on a tab i get an error
    like this:
    ypeError: Error #1009: Cannot access a property or method of
    a null object reference.
    at
    StoreManagement/runFeed()[C:\adobeStoreManagement\StoreManagement\src\StoreManagement.mxm l:26]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at
    mx.core::UIComponent/dispatchEvent()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\co re\UIComponent.as:9051]
    at
    mx.containers::ViewStack/dispatchChangeEvent()[E:\dev\3.0.x\frameworks\projects\framework \src\mx\containers\ViewStack.as:1165]
    at
    mx.containers::ViewStack/commitProperties()[E:\dev\3.0.x\frameworks\projects\framework\sr c\mx\containers\ViewStack.as:672]
    at
    mx.containers::TabNavigator/commitProperties()[E:\dev\3.0.x\frameworks\projects\framework \src\mx\containers\TabNavigator.as:504]
    at
    mx.core::UIComponent/validateProperties()[E:\dev\3.0.x\frameworks\projects\framework\src\ mx\core\UIComponent.as:5670]
    at
    mx.managers::LayoutManager/validateProperties()[E:\dev\3.0.x\frameworks\projects\framewor k\src\mx\managers\LayoutManager.as:519]
    at
    mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\3.0.x\frameworks\projects\frame work\src\mx\managers\LayoutManager.as:669]
    at Function/
    http://adobe.com/AS3/2006/builtin::apply()
    at
    mx.core::UIComponent/callLaterDispatcher2()[E:\dev\3.0.x\frameworks\projects\framework\sr c\mx\core\UIComponent.as:8460]
    at
    mx.core::UIComponent/callLaterDispatcher()[E:\dev\3.0.x\frameworks\projects\framework\src \mx\core\UIComponent.as:8403]
    Also the first time I click on the edit program link it
    doesnt show any data in the combo. Then when I click on new store.
    It fills up the comboboxes. When I go back to the edit program tab.
    It now also has the data inside the combobox.
    When I add a new program, store or categorie. It says
    operation succesfull. But the new program is not added to the new
    comboboxes. I have to close the browser and rerun the application.
    Then it shows the entered value inside the comboboxes.
    I have attached all my code for this application, any help
    would be greatly appreciated. Also could you advise me on what is
    the best approach to do this?
    With friendly regards,
    Thomas

    A few things:
    * Do not use lastResult in AS code. It is intended for use in
    binding expressions only. I suspect that it is the cause of your
    error, since it will not yet exist where you are trying to
    reference it.
    * All data service calls in Flex are asynchronous. this means
    you can *never* access the result data in the same function you
    call send(), as you are attempting.
    * Use a result handler for all HTTPService calls
    * Your data model methodology is *good*, using instance vars
    to hold ArrayCollections, and binding to those vars. Just set the
    vars in a result handler, instead of in the send function
    * the default resultFormat of HTTPService is object. This
    causes Flex to convert the HTTPService XML into a tree of dynamic
    objects. While it provides a quick start, it has long term
    drawbacks. I advise setting resultFormat="e4x", so that youcan use
    the powerful e4x XML API on your data.

  • SP in delete/insert/modify trigger

    I have created a trigger which sends a notification email on deletes.inserts, or updates on a particular table.  Trigger works great.  While testing, I did a delete all - and sure enough the trigger fired on every row that was deleted and I got over 6k emails, LOL!!!  So I am thinking have this trigger call a stored proc, which then keeps up with an audit table with sysdatetime/row/count or something.  If number of rows deletetd within a certain timeframe (10seconds?) exceeds 5 then don't send any more emails.  Does this sound feasible or is there a better way?  Thanks!

    I have created a trigger which sends a notification email on deletes.inserts, or updates on a particular table.  Trigger works great
    Then you must want emails to be sent even if those DML operations fail or get rolled back. Is that true?
    If a user does the following do you really want email notifications sent?
    INSERT INTO myTable . . .;
    ROLLBACK;
    Triggers are non-transactional. They do NOT know if the work they do will ever be committed or not. Any work that a trigger does could be rolled back by Oracle or by the user.
    Unless you want email notifications sent even if that DML 'never happens', because it gets rolled back, triggers are the wrong method to use.

  • Delete inserted record

    I bulid trigger in tabel and check condition, if for example check_statment = X i need to delete inserted record (that mead not insert record) and when check_statment = Y then insert record in table, i try to write delete statment and rollback but there is error appear that the current record are reserved.
    How i can solve it.

    1. Triggers cannot Issues ROLLBACK, SAVEPOINT, COMMIT statements.
    2. I guess you are trying to avoid duplicate records, Create a unique index on the key(col1,col2) which you want to prevent duplicates on.
    3. Or you can Add a column Flag Chr(1) to your table. While inserting you allow the records to get inserted, but based on your condition change the Flag to 'D' - deleted , 'A' -active. Build a View which the user uses for application filtering out the 'D'eleted records.
    Does this look like what you are trying to do !
    Ss

  • How to delete history in OVI maps on 5800 ?

    How to delete history in OVI maps on 5800 ?
    Maps >  Drive >  Set Destination > History -------???   How do you delete the entrys that you no longer need ?
    I'm obviously missing something very stupid here, but for the life of me I cant find out what

    In maps home page, select the gold star favourites, then select either places or routes, select the item you want to delete and scroll down to the option to delete !
    Good Luck
    If I have helped at all, a click on the White Star is always appreciated :
    you can also help others by marking 'accept as solution' 

  • SELECT - INSERT/UPDATE statement mapping.

    This might be a silly question, but are there any Java libraries that can perform an arbitrary SELECT statement to INSERT/UPDATE statement mapping? Or indeed, is this in fact possible?
    Just to be a little clearer, if we had the statement;
    SELECT [Field1] FROM [Table1]
    It would map down to;
    INSERT INTO [Table1] VALUES [Field1]='foo'
    Please excuse my INSERT syntax if it is incorrect, I hardly ever use these statements.
    The reason that I ask is because I am writing a piece of software that can perform quite complex extractions from databases, and it would be nice to be able to automatically 'reverse' the extraction, and perform updates on the extracted data.
    Unfortunately, because of the architecture and requirements of the application, I can not just update a resultset and call the update() method.
    Thanks for your time.
    Ben

    You can define a Bean or simple class to define a table record type (table structure), defining all fields, the primary key and maybe more.
    then deriving a select or insert or update can be done with ease.

  • Update order document through DI API generates delete / insert ?

    Hi,
    I am developing with B1 88 PL10 and I am doing an update of userfields with DI API.
    Looking on sql server profiling tool I found that  the DI API generates delete / insert instead of update statements ?
    Has someone an explanation ?
    Regards,
    Gregory

    Hi Gregory,
    There are couple of possible reasons for this. I think the most probable one is for performance and accuracy.
    Delete / insert may actually take less time than Update alone.
    Thanks,
    Gordon

  • Delete/Insert in OWB 10g

    hai,
    I wanted to use delete/insert option so that i can selectively delete data and insert
    the new set of records.But what i found is that all the existing records get deleted
    ie selective delete is not happening. Can anyone pls let me know how this can be achieved with the help of delete/insert option(in operator properties of table)
    Thanks And Regards,
    Ashir

    There is a specific Warehouse Builder forum here:
    Warehouse Builder
    You can also post questions to this forum as this forum covers all BI products. To answer your question, I am not sure what you are trying to do. Are you trying to delete the object via "Control Center"? It should be possible to deploy the job as a delete job to remove the directory from your target/source database.
    Keith Laker
    Data Warehouse Solution Architect
    Oracle EMEA Consulting
    BI Blog: http://oraclebi.blogspot.com/
    DM Blog: http://oracledmt.blogspot.com/
    BI on Oracle: http://www.oracle.com/bi/
    BI on OTN: http://www.oracle.com/technology/products/bi/
    BI Samples: http://www.oracle.com/technology/products/bi/samples/

  • Xplorer X7-7700 Ctrl + FN , \ + Alt , Delete + Insert keys | SPLIT V2

    Hi SVET,
    I just purchased an MSI-1727 Barebone from a third party vendor (http://www.cyberpowerpc.com/system/Xplorer_X7_7700_Notebook/).  I did some searching and found this post and another post for the A6000 about swapping the Ctrl + FN , \ + Alt , Delete + Insert keys (to look exactly how I typed it); and that is exactly what I was looking to do.  Would it be possible if you could send me a bios that does this?  I have read the posts about how to do it, and I would definitely be willing to make a donation.
    Mainboard:  MS-1727
    PCB Version:  REV:1.0
    BIOS Version: E1727IG6.106
    BIOS Date:  2/1/2010
    EC-FW Version: 
    Thank You

    Quote from: gags1 on 16-June-10, 10:19:58
    Hi SVET,
    I just purchased an MSI-1727 Barebone from a third party vendor (http://www.cyberpowerpc.com/system/Xplorer_X7_7700_Notebook/).  I did some searching and found this post and another post for the A6000 about swapping the Ctrl + FN , \ + Alt , Delete + Insert keys (to look exactly how I typed it); and that is exactly what I was looking to do.  Would it be possible if you could send me a bios that does this?  I have read the posts about how to do it, and I would definitely be willing to make a donation.
    Mainboard:  MS-1727
    PCB Version:  REV:1.0
    BIOS Version: E1727IG6.106
    BIOS Date:  2/1/2010
    EC-FW Version: 
    Thank You
    Hello,
    The requests can be proceed on donation https://forum-en.msi.com/index.php?topic=134259.0
    Once done, the request will be e-mailed to you [up to 24 hours max]
    Best Wishes,
    Svet

  • What is difference of truncate/insert and delete/insert ?

    hi all:
    what is difference of truncate/insert and delete/insert ?

    Hi,
    Truncate will truncate the table, which means there is a DDL operation to empty the table. DDL operations cannot be rolled back, but truncate is much faster than delete (because of that reason). If you do not require recovery of the deleted records in case of a failure, then truncate/insert is more optimal than delete/insert. Notice that for truncate to work, you cannot have enabled foreign keys pointing to the table. Truncate will never perform cascaded deletes.
    Hope this explains.
    Mark.

Maybe you are looking for

  • Dw cs5 to Dw cs6

    Hi I've just moved from Dw cs5 to Dw cs6, all the site files are in the file folder like you would expect but the pages don't open properly, just the CSS file seems to open and I'm not sure about that, and none of the associated files show on the bar

  • Does the Target Audiences setting work for Content Search Web Part Snippets?

    I am attempting to create a page layout in SharePoint 2013 that contains a Content Search Web Part snippet.  I only want the CS Web Part to appear for certain users in a defined SP Group.  I set the Target Audience property during the generation of t

  • Contribute CS4 - Connection help

    I have a local copy of our intranet site on a file server (not my local machine).  Each time updates are required, using Dreamweaver I edit the 'local' file and then 'put' the file to the live web server. Is it possible to set up Contribute on a user

  • ResetActionListener does not appear to work for sub regions

    I have input fields that are contained within a region. Outside of this region is my Cancel button which contains the af:resetActionListener tag. When pressing Cancel, input fields outside of the region reset as I expect them to, however, input field

  • ORA-01031: insufficient privileges  when attempting to run a proc

    I have a procedure called KILL_MY_SESSION that is defined with an AUTHID of DEFINER The procedure owned by schema JOHN. The procedure makes several calls to DBMS_SQL PL/SQL package. The last thing the procedure does with DBMS_SQL is issue an ALTER SY