Table compare deleting rows which does not exist in target table

Hi Gurus,
I am struggling with an issue in Data Services.
I have a job which uses Table Compare, then History Preserving and then a Key Generation transforms.
There is every possibility that data would get deleted from the source table.
Now, I want to delete them from the target table also.
I tried Detect deleted rows but it is not working.
Could some one please help me on this issue.
Thanks,
Raviteja.

Doesn't history preserving really only operate on "Update" rows.  Wouldn't it only process the deletes if you turned the "Preserve Delete row(s) as update row(s)" on?
I would think if you turned on Detect Delete rows in the Table compare and did not turn this on in the history preserving it would retain those rows as delete rows and effectively remove them from the target.
Preserve delete row(s) as update row(s)
Converts DELETE rows to UPDATE rows in the target warehouse and, if you previously set effective date values (Valid from and Valid to), sets the Valid To value to the execution date. Use this option to maintain slowly changing dimensions by feeding a complete data set first through the Table Comparison transform with its Detect deleted row(s) from comparison table
option selected.

Similar Messages

  • Entries in Dimension table (Dim Id's) which do not exist in Fact table

    Hello all,
    We have a strange situation when we run the Report SAP_INFOCUBE_DESIGN. I expected that the Dimension table could have max 100 % compared with Fact tables. However we have a dimension with 587% entries compared with fact tables.
    ZOEEMRW            /BIC/DZOEEMRW3      rows:  2.416.567    ratio:        587  %
    ZOEEMRW            /BIC/DZOEEMRW5      rows:      2.464    ratio:          1  %
    ZOEEMRW            /BIC/DZOEEMRWP      rows:          4    ratio:          0  %
    ZOEEMRW            /BIC/DZOEEMRWT      rows:        520    ratio:          0  %
    ZOEEMRW            /BIC/DZOEEMRWU      rows:         18    ratio:          0  %
    ZOEEMRW            /BIC/EZOEEMRW       rows:    399.160    ratio:         97  %
    ZOEEMRW            /BIC/FZOEEMRW       rows:     12.520    ratio:          3  %
    Consider dimension /BIC/DZOEEMRW3.
    For this Dimension, we could not find an entry in the tables /BIC/EZOEEMRW or /BIC/FZOEEMRW for the following dim idu2019s.
    There are many DIM ids which exist in the Dimension table but do not exist in the Fact tables.
    Is it normal that this can happen? If so in which cases and is there any way to clean up these entries in the Dimension table which do not exist in the fact table.
    Any help or insight on this issue will be appreciated.
    Best Regards,
    Nitin

    Hey,
    there is a program with which you can clean up your dimension table. Search forum. But also try RSRV there is a option especially for that.
    Backround is that using process chains and you delete data from cube, dimensions are not deleted. So there could be data in the dimension which have no relation to fact table. This is many times discussed in this forum.
    Best regards,
    Peter

  • ORA-00959: tablespace '_$deleted$3$0' does not exist

    One of our Backup Database is acting up; one of my colleagues babysits it, but I just stumbled upon something strange. The error below keeps popping up whenever I try and create a new table.
    ERROR at line 8:
    ORA-00959: tablespace '_$deleted$3$0' does not existI have tried looking up the error on MOS and google without any luck.
    Regards,
    Phiri

    phiri,
    Here is the error illustration;
    $ sqlplus sys/password@opttest as sysdba
    SQL*Plus: Release 10.2.0.4.0 - Production on Fri Aug 20 14:51:09 2010
    Copyright (c) 1982, 2007, Oracle.  All Rights Reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> create tablespace ogan_deneme
      2  datafile '/backup/ogan_1.dbf' size 200M
      3  extent management local;
    Tablespace created.
    SQL> drop user ogan cascade;
    User dropped.
    SQL> create user ogan identified by password default tablespace ogan_deneme;
    User created.
    SQL> grant connect, resource to ogan;
    Grant succeeded.
    SQL> drop tablespace ogan_deneme including contents and datafiles;
    Tablespace dropped.
    SQL> conn ogan/password@opttest
    Connected.
    SQL> create table ogan_deneme as select * from all_objects;
    create table ogan_deneme as select * from all_objects
    ERROR at line 1:
    ORA-00959: tablespace 'OGAN_DENEME' does not existSo in your case as you have seen, your tablespace is that _$deleted$3$0 one.
    Ogan
    Edited by: Ogan Ozdogan on 20.Ağu.2010 14:55
    Here is the solution;
    SQL> conn / as sysdba
    Connected.
    SQL> alter user ogan default tablespace codesd;
    User altered.
    SQL> conn ogan/password@opttest
    Connected.
    SQL> create table ogan_deneme as select * from all_objects;
    Table created.Hope That Helps.
    Ogan

  • Select from 1 table only if a value does not exist

    Hello all,
    I'm having problems devising a single select statement to accomplish a single return value. I have tried variations of DECODE and COALESCE, but it's escaping me.
    I have two tables that are as follows:
    NAME
    ID, FULLNAME
    1, Senior
    2, Junior
    3, Mister
    4, Senor
    5, Miss
    ABBREVIATION
    ID, ABBREV
    1, Sr
    2, Jr
    3, Mr
    5, Ms
    What I would like to do is select from the NAME table only if the value does not exist in the ABBREVIATION table.
    Ideally if I were to do something such as:
    SELECT * FROM .... WHERE (ID=1 or ID=2 or ID=4) ....
    I would receive the following output:
    1, Sr
    2, Jr
    4, Senor
    Thanks for reading!

    You want an outer join.
    SELECT decode(a.abbrev, NULL, n.fullname, a.abbrev)
    FROM name n,
    abbreviation a
    WHERE n.ID = a.ID(+)
      AND ....Something like that.
    Full example:
    with n as (
    select 1 as ID, 'Senior' as FULLNAME from dual UNION ALL
    select 2 as ID, 'Junior' as FULLNAME from dual UNION ALL
    select 3 as ID, 'Mister' as FULLNAME from dual UNION ALL
    select 4 as ID, 'Senor' as FULLNAME from dual UNION ALL
    select 5 as ID, 'Miss' as FULLNAME from dual),
    a as (
    select 1 as ID, 'Sr' as ABBREV from dual UNION ALL
    select 2 as ID, 'Jr' as ABBREV from dual UNION ALL
    select 3 as ID, 'Mr' as ABBREV from dual UNION ALL
    select 5 as ID, 'Ms' as ABBREV from dual)
    select decode(a.abbrev, NULL, n.fullname, a.abbrev)
    from a, n
    where n.id = a.id(+)
    order by n.id;
    ID                     DECODE(A.ABBREV,NULL,N.FULLNAME,A.ABBREV)
    1                      Sr                                       
    2                      Jr                                       
    3                      Mr                                       
    4                      Senor                                    
    5                      Ms                                       
    5 rows selectedEdited by: tk-7381344 on Nov 17, 2008 1:31 PM

  • [nQSError: 59014] The  requested column does not exist in this table.

    Hi
    As you know this error has been discussed in other threads.. the difference in mine is that not only the time series measures but all the columns are giving me the error...none of the columns are being displayed... The rpd has no consistency errors. can anyone suggest what may be going on?
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 59014] The requested column does not exist in this table. (HY000)
    SQL Issued: SELECT column1 saw_0 FROM Paint3 ORDER BY saw_0
    Thank you
    mm58

    I guess you have the column in RPD, and it is available for queries.
    are you using any time measures? if so check you chronological keys.

  • The requested column does not exist in this table

    Hi All,
    I am getting the following error:
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 59014] The requested column does not exist in this table. (HY000)
    SQL Issued: SELECT "Customers - Dim".CITY FROM MVDEMO ORDER BY 1
    When I tried viewing data online I am able to view the data in the physical Layer. Also I tried connecting thru ODBC Client and issued the same SQL (above) and it returns the data.
    I am using Oralce BIEE 10.1.3.2.1 version.
    Please let me know if any faced this kinda issue and how to resolve this.
    Thank you.

    Check your column mapping in the BMM layer in your Customers - Dim logical table. Does the CITY column point to a physical table column?

  • How do i remove my old Apple Id from iPhone's iCloud setting which does not exist anymore

    Purchased new iphone 5s, installed with itunes restoring backup from iphone 4 (which was too old a backup). It restored an old apple id (which i do not use anymore) in the iCloud settings while having my new Apple Id in the Itunes & App Store. I cannot turn off the iCloud setting due to old AppleId popping up - which does not exist.. How do i remove the old Apple Id from icloud setting on the phone.
    I cannot erase the phone as it asks for the password for the old Apple Id. And i cannot do the restore again (after i made a recent back up my iphone 4) as itunes asks me to turn off Find my phone.

    The Apple ID exists. The email address you used to create it may not, but the Apple ID does. Call AppleCare and ask to speak to someone in account security.

  • Error in ALV : Field Does not exists in Output table .

    Hi All,
    In my ALV report, program get dumped and showing error when i tried to put a col named Distribution channel ion the alv.
    I have put the Distribution cannel field in the IT_FInal table , but still getting folwong errors :
    Error : Field Symbol is not been assigned.
    As Instructed i have passed            I_INTERFACE_CHECK              = 'X'.
    By this i am getting detail error that :
    Field Distribution channel does not exists in Output table & Heading for List is missing .
    But i have maintained the distribition channel in IT_Final table
    Please suggest wheather we have to define dis channel in any other place.
    Thanks in advance.
    Can any one help me regrarding this.
    Thanks in advance.

    Hello,
    You have to populate the same in the fieldcatalog as well, i think you have not maintained this field there.
    BR,
    Suhas
    PS: Also make it a point to follow-up on your previous post: [Error in ALV : Field Symbol not been assigned.|Error in ALV : Field Symbol not been assigned.]

  • TS3212 When I try to download iTune, it shows Drive K which does not exist in my computer. It does not allow me to change to other Drive and terminate download stating ' out of disk capacity"

    Whne I download iTune, it shows that it will be downloaded to Drive K which does not exist in my computer. It does not allow me to change to other Drives has enough capacity. Then I click change bottom, attempting to change drive, it terminates the download.
    Do you have any solutions??

    Try "Invalid drive X:\" install errors. You should still be able to chose the drive for the download when downloading the installer with a web browser. The iTunes application is installed on the active system drive, usually drive C:.
    tt2

  • Entry SE01 1890 does not exists in T005G(Table)

    Hi,
    We are getting Bdoc error "Entry SE01 1890 does not exists in T005G(Table)" in CRM system.We are using CRM 7 and ECC 6.
    Please help me in resolving this issue.
    Thanks,
    Rahul

    Hi,
    Thanks for the reply.
    We are getting this error in BDOC monitoring.Similarly we haev more errors related to same error like" Entry SE01 1880 does not exists in T005G(Table)".
    .Actually when i check this table city code 1880 is mentioned under region 18 in the country key SE.
    Please help me

  • HT201363 i have forgotten the security code and an e-mail is being sent to an e-mail account which does not exist.  How do i change the e-mail details

    We have forgotten the security code question and each time I request a reset it is being sent to an e-mail addres which does not exist.  How can I change the e-mail address to my current e-mail address.  We have put money onto an ITunes account which is asking for this security question.  This has never happened before. Any assistance would be appreciated.  thank you

    Hello, covey98. 
    Thank you for visiting Apple Support Communities.
    I would recommend reaching out to us via the link below to assist you with this issue.
    Apple ID: Contacting Apple for help with Apple ID account security
    http://support.apple.com/kb/HT5699
    Cheers,
    Jason H.

  • Entry does not exists in check table -- Validation

    Hi friends..,
      I am able to create new entries in my table with INSERT statement through a function module.
    But, the problem is..,
    I am having one key field in my table, and T1(another table) is check table for this.
    So while creating the entries through SE11, its giving error message like ENTRY DOES NOT EXISTS IN CHECK TABLE. But the same entry i am able map through my function module..!
    Any extra settings reuired for this..?
    Or.,
    Am i need to write validation code?
    Thanks,
    Naveen.I

    Hi...Rama chary..,
    I am having separate function modules to do this..!
    So here I can't to update two table at time.
    My function module updating a table field with out checking it wrt its check table..!
    Even i write code to check table , it will not meet the functionality of SE11 error..!??
    so what can i do..?
    Thanks,
    Naveen.I

  • In MVT 545 Check table XEKPO: entry 00000 0000   does not exist

    Hello
    While using the mvt type 545 with MB1C (Included in mvt)
    I am getting the following error what could be the possible reason
    Check table XEKPO: entry 00000 0000   does not exist
        Message no. M7001
    Diagnosis
        In table XEKPO the entry 00000 0000   is missing.
    Regards
    Niti Narayan Chaturvedi

    This is a authomatic mvt, But I am using a manual route to excecute, is this causing problem
    Where is the check for the automatic mvt
    Niti Narayan

  • Calling a remote enabled function module which does not exist in caller sys

    Hi,
    I have a a system ABC from which I am trying call a rfc enabled fm(Test) present in system XYZ.
    The fm(Test) does not exist in the system ABC so I am getting generation errors and dumps.
    Is there a way for me to call these remote enabled function modules which does not exist in the caller system without the obvious errors etc.
    Is there any special way.
    Thanks

    Hi,
    please check this sample:
    REPORT  zcallfm                                 .
    DATA: xv_return TYPE sysubrc.
    CALL FUNCTION 'DOESNOTEXIST'
    DESTINATION   'NOWHERE'
    EXPORTING     caller                = sy-sysid
    IMPORTING     return                = xv_return
    EXCEPTIONS    system_failure        = 1
                  communication_failure = 2
                  OTHERS                = 4.
    It shouldn't throw any generation errors in your system!
    Regards,
    Klaus

  • Building SCD Type2 changes. Any record deletion in Source does not expire the Target Record

    Building SCD Type2 changes. Any record deletion in Source does not expire the Target Record. When I Delete any Record in Source Table, I expect the same record should be 'Expired' with 'End_Date' with Active = 'N'. 
    BTW: In 'Table Comp',  I have Checked the 'Detect Deleted rows(s) ...'. /  ' ... largest generated key'  is selected by default..
    This is not happening..! My Update and Insert works fine..!

    Hi
    Do you have detect deletes set on Table Comparison?
    I also add the Map operations to the output of History Preserving and manage each stream of the Insert/Update/deletes separately and control the record start/effective & record end/Expiry dates with more variables based on the stream req, ie updates to end previous record have record end date set to variable for business or run date set to date - 1.
    You only need key gen for inserts (including the deleted record final state)
    Use merge to bring back together.

Maybe you are looking for

  • Swap Image Behavior with Text

    I am trying to figure something out but can't seem to find it. I'm sure it must be pretty simple, but I'm stumped. Basically, I have a main image and a few thumbnail images below it. I've attached the Swap Image behavior to each thumb to change the m

  • New laptop can't find the driver software for my ipod. What should I do?

    Previously I've used a family member's computer to sync their songs onto my iPod. We have very different tastes in music so I was excited to finally get my own songs on here. I now own my own laptop and have installed the most recent iTunes. However,

  • My ATV Won't  Authorize Rented Movies..please help...everything else works

    I recently hooked up my ATV to my network (with an Ethernet cable not wireless). It worked great..allowed me to purchase music, purchase tv shows, and synced great with my iTunes on my mac book. I can browse YouTube, watch movie previews. The problem

  • Display a text conditionally in a form view

    Hi Experts,     I have a BAPI being used as a data service in my model. It returns a table. If that table is empty, i need to diplay a plain text message "Success". If the table has atleast one entry, I should display a text message "Not Success". Ho

  • Additional tab item level on MIGO supresses the excise tab at item level

    Hello Experts, I have used MB_MIGO_BADI to add an additional tab at item level.It is working properly. But now Iam facing a problem the additional tab supresses the excise tab that comes up dynamically at the item level,. Now how do i reslove this pr