Replicate deleted rows through Archiver

Hi all
I'm trying to replicate deleted rows from a custom UCM table, but when a record is deleted from the source table, the deleted record doesn't get replicated to the target table through Archiver.
The source archive is setup to export and transfer automatically. Also, the "replicate deleted rows" option is ticked on the source archive and the recommended Create and Modify time stamp columns are selected.
I'm deleting the records through the Configuration Manager applet after creating a view on the table.
I can see that new rows (the deleted record) are added into the "DeletedRows" table but they don't get deleted on the target instance. Am I missing anything else?
Regards,
Alex
Edited by: user8859325 on Jan 18, 2013 2:28 AM

Hi
I have done other tests and can see that there is first of all a problem with the strSQL = strSQL & " AND PeriodKey = '" & dtePerKey & "'"
in the where clause.
If I execute this SQL request in SQL Developer, I have a non-zero number in the TMP table :
INSERT INTO TMP (SELECT COUNT(*) FROM tDataSeg3 WHERE PartitionKey='749' AND CatKey = '12' AND PeriodKey = to_date('30/04/10'))If I execute the same request through FDM, I have 0 in the TMP table.
Thanks for your help
Fanny

Similar Messages

  • Loop through result set and delete row

    so here is what I need -
    I have a query that pulls rows from the Database through a stored procedure.(these are properties in an area)
    Before I start looping through the query, I need to check the distance between my current location and the property. If it less than 5 miles, only then should I display that property. The distance in miles will be chosen while submitting the search form.
    So is there a way to delete rows from the result set based on the criteria? Or
    Is there a better way to accomplish this? I am using the the google api to get the latitudes and longitudes. The other issue to keep in mind is the load time.
    Thanks

    You can do this the easy way or the hard way.  Depends on whether your condition that needs to be checked can be expressed in the form of a SQL where clause.  If it can, then do what BKBK suggested, and use a query of query to create a new resultset that only has the rows from the original resultset that don't meet your condition.
    If the calculation of the condition is more complex, then do a CFLOOP over the query and examine each row to see if you want to keep it or toss it.  if you want to toss it, the delete that row - there is a function in CFLIB.ORG called querydeleterow that should help you.  Or, you could just clear out the row's contents and then do the query of query as described in BKBK's post to create a new resultset that doesn't include the blank rows.

  • How to add or delete rows in tablecontrol?

    Hi,
    I am using a tablecontrol to enter data records.
    I want to use 2 buttons, one to insert a row into a tablecontrol and another to delete a selected row of a tablecontrol.
    How do I insert or delete rows of a tablecontrol?
    Thanks.

    Hi Kumar,
    Please look at the below sections......
    ADDING BLANK LINES
    To add blank lines to table control we do not need to change any of the fields of the structure CXTAB_CONTROL simply adding blank lines to the internal table will do.
    INSERT INITIAL LINE INTO itab.
    DELETING SELECTED ROWS
    Deletion of selected rows is simple. To delete selected rows first we will determine the rows which have been selected through selection column .
    FOR SINGLE ROW SELECTION
    IF mark EQ 'X' .             "mark is the name of selection column field
    DELETE itab FROM workarea . 
    ENDIF.
    FOR MULTIPLE ROW SELECTION
    *To deetermine the rows selected we will use the selection column field to loop
    *through the internal table.
    LOOP AT itab WHERE mark EQ 'X'.  "mark is the name of selection column field
    DELETE itab                                    " and is part of the internal table .
    ENDLOOP.
    Thanks,
    Ravi Kanth

  • 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.

  • Table layout w.r.t other tables and text while inserting/deleting rows.

    I have 3 tables in a single page. One is left aligned and other two are right aligned. Then there is some text below the tables. 
    Now when I delete some rows from Table-1 the left aligned one, the Table 2 and text shift up filling the space below Table1.
    Now I don't want the text/table to shift up/down when I add/delete rows from Table1 i.e Table1  should expand/contract in the empty space below it.
    Now If I do the same thing for Table3 (Right aligned one) i.e add/delete rows there is no effect on text as shown :
    All 3 tables are same and have exact positioning and other properties.
    Please suggest any solution as I would be populating the table through word automation service (interop).

    Another approach would be to use nested tables, with your 'outer' table having two columns and the inner tables going into different columns. You can hide the outer table's cell borders so its presence is less apparent. If the Outer table has auto row
    height, it will adjust to accommodate whatever row addition/deletion you do to the inner tables. The only proviso is that the inner tables shouldn't have 'around' text wrapping. The two rhs tables can go into the same cell - all they need is a separating paragraph.
    With this layout, the text will always remain below the outer table.
    Cheers
    Paul Edstein
    [MS MVP - Word]

  • How to invoke delete rows event in ALV_GRID

    I have two screens.
    The first screen 100 have several splitter control ALV grids that display data.
    The second screen 200 is the maintenance of screen on 100 that have two grids side by side need to update simultanously.
    When I update or insert data on the second screen, I refresh data on screen 100 so that when user navigate to screen 100 they can see the updated data.
    For insert rows or modified rows, it works as expected.
    However when I delete rows on screen 200 and click go back to 100, screen 100 still shows the rows that I deleted in screen 200.  I think that I missed something. 
    I debug in even data_changed in cl_gui_alv_grid when I deleted, it did not go through this logic therefore I cannot refresh the other grids on screen 100.
    Here are the events that I defined and registered in the PBO of screen 200.
    class lcl_event_handler definition.
    class-methods:
    on_data_changed FOR EVENT data_changed
               OF cl_gui_alv_grid   IMPORTING er_data_changed e_ucomm,
    on_user_command for event user_command of cl_gui_alv_grid importing e_ucomm.
    endclass.
    set handler:
    lcl_event_handler=>on_data_changed for go_grid,
    lcl_event_handler=>on_user_command for go_grid.
    What did I do wrong?
    Thanks,

    Hi Akinosora,
    >
    Akinosora wrote:
    > When I update or insert data on the second screen, I refresh data on screen 100 so that when user navigate to screen 100 they can see the updated data.
    >
    > For insert rows or modified rows, it works as expected.
    >
    > However when I delete rows on screen 200 and click go back to 100, screen 100 still shows the rows that I deleted in screen 200.  I think that I missed something. 
    Don't you need to do a refresh of the data for a delete action as well?
    Kind regards,
    Robert

  • Function modules for deleting photos in archive

    Hi all,
    I got the requirement to delete the photos which was uploaded through archive link (OAAD).
    Could I know which function modules should I use to delete the link as well as document?
    When I searched in forums I found some function modules:
    ARCHIVE_OBJECT_DELETE
    HRXSS_COD_DELETE_OLDPHOTO
    But these function modules doesnot exists in my client.
    Could you suggest me some other function modules with parametrs passing.
    Also explain me how to pass parameters for SCMS_DOC_DELETE function module.Is this helpful for deleting of photos?
    Thanks in advance.

    Hi Harika,
    you could try using the FM ARCHIV_DELETE_META.
    Also, the FM HRXSS_COD_DELETE_OLDPHOTO appears to have been create for this purpose of deleting employee photos; and only requires the personnel number to be entered.
    KR,
    Karen.

  • Delete row in ALV

    Hi,
    I am working on an interactive ALV list. As per the requirement I have been able to remove the standard delete button through the following technique:
    ls_exclude = cl_gui_alv_grid=>mc_fc_loc_delete_row.
    append ls_exclude to pt_exclude.
    It is working fine and the delete button is removed from the tool bar as required. But it is still possible to delete a row by selecting the row and pressing the 'Delete' key in the key board. Can anyone tell be how to stop this. I have already gone through various SDN postings and "An easy reference for ALV grid control.pdf" but could not find any clue.

    Hi,
    It should work just fine so let me expand a little more.
    STEP 1:
    Your datadeclaration should look something like this:
    TYPES: BEGIN OF TY_OUTTAB.
            INCLUDE STRUCTURE <FILL IN YOUR STRUCTURE>.
    TYPES: CELLTAB TYPE LVC_T_STYL.
    TYPES: END OF TY_OUTTAB.
    TYPES: TT_OUTTAB TYPE TABLE OF TY_OUTTAB.
    DATA: GT_OUTTAB TYPE TABLE OF TY_OUTTAB.
    DATA: GS_OUTTAB TYPE TY_OUTTAB.
    DATA: GS_CELLTAB TYPE LVC_S_STYL.
    DATA: GT_CELLTAB TYPE LVC_T_STYL.
    DATA: L_INDEX TYPE SY-TABIX.
    STEP 2:
    Select wat you want to select and then loop over your itab.
      LOOP AT GT_OUTTAB INTO GS_OUTTAB.
        L_INDEX = SY-TABIX.
        REFRESH GT_CELLTAB.
        CLEAR GS_CELLTAB.
        GS_CELLTAB-STYLE =                                   CL_GUI_ALV_GRID=>MC_STYLE_NO_DELETE_ROW.
        INSERT GS_CELLTAB INTO TABLE GT_CELLTAB.
        INSERT LINES OF GT_CELLTAB INTO TABLE GS_OUTTAB-CELLTAB.
        MODIFY GT_OUTTAB FROM GS_OUTTAB INDEX L_INDEX.
      ENDLOOP.
    STEP 3:
    remember to fill GS_LAYOUT-SYLEFNAME = 'CELLTAB'.
    Did you do all this ?
    Hope it helps.

  • B1SO2B1SO Update Documents scenario. Cannot delete row.

    Hi all,
      I've created an integration scenario that replicate Quotation creation and update from a SAP B1 System to another One.
    The scenario is ok for Document creation and even for updates of header data and update of existing row data. It works fine even for Document_LInes addition but it doesn't work for Document_Lines deletion.
    In detail the scenario doesn't give me any error and the message goes well in success list but the deleted rows in the destination System remains.
    Is it a normal behavior or can it be a Bug, or an error in xsl?
    thank you all for any help.
    Edited by: luca tassi on Dec 14, 2011 10:05 AM

    Seems that no one could help me so I reply to myself....
    I've installed the last version of B1iSN ( 8.8 PL09) and unfortunately for this issue nothing is changed .
    SAP Business one installation  is  still in the version 8.8 PL07: someone knows for certain if this issue exists using a new version of DI api whith B1iSN?

  • Deleting Old Catalogs Archives

    Does anyone know if you can delete old catalog archives. I backup lightroom once a week, but I noticed that the copy each week has a large file size (around 150-200 MB), I have been using the program around 6 months and it is starting to chew up some hard drive space. Are you able to delete any of the older archive backups? Also, if so, does lightroom have an option to do this?
    Thanks,
    brent

    No, there is no option in Lightroom for how many backups of your catalog that you keep; and no button to purge/delete them either.
    In a way Lightroom leads us into expecting this, but I would not be too bothered about it as a feature.
    I would prefer Lighroom to concentrate totally on our needs for photography and not get bloated with file management, that is more easily done outside of the program.
    If every program that we use gave us options to copy/replicate/duplicate files then we would be in big trouble.
    So my 2 cents worth is to know where the files are and get rid of some that are hogging space or are not worth keeping.

  • Deleting rows by key from several tables

    Hello! 
    One of action of my stored procedure is deleting rows from several tables on a key , that I'm getting through statement :
    delete from table3 where key_column in ();
    delete from table4 where key_column in ();
    commit;
    select key_column from Table!
    minus
    select key_column from Table2
    Unfortunately the number of lines mentioned by this statement isn't known in advance .
    How do You think , is better way to
    -- execute select each time for every delete-statement or
    -- create table as select result set and then select again keys for each delete- ststement or
    I'm usung 11.2.0.3
    Thanks and regards,
    Pavel

    By using : 1.trigger 2. on delete cascade you can achieve this.
    OraFAQ Forum: SQL &amp;amp; PL/SQL &amp;raquo; delete rows from multiple tables (more than 2 tables)
    Regards
    Girish Sharma

  • Cannot commit delete row from VO

    I have a VO that I have no problem create new row, update existing row and commit. But I can't commit deleted row to database. no exception or error message etc... and All other VOs are working fine,
    anybody has any idea why? is that an option or something on VO? or is it an BC4J bug?
    Thanks,
    -Ming
    Edited by: user715460 on Oct 16, 2008 3:40 PM

    You are in the wrong forum. Try your question JDeveloper and ADF .
    And please consider this too (copied from this thread Concerned in delayed response
    a) Use a good subject line that briefly describes the issue. This will attract those familiar with that area to come and help.
    b) Tell us what database version you are using. Not just saying e.g. "10g" but more specifically "10.2.0.3"
    c) Describe the issue clearly stating what you have tried, and what you are trying to achieve.
    d) Don't use txt spk because this is a professional forum, not a chat room and not everyone can follow it.
    e) Don't USE CAPITAL LETTERS IN YOUR DESCRIPTION as this is considered shouting and agressive.
    f) Provide sample data for us to use if necessary either with the CREATE TABLE and INSERT statements to create it or providing a WITH clause that we can use. This saves us from having to type in and format the sample data for ourselves and is more likely to attract us to help.
    g) Show the code that you have already tried (if you haven't tried any code yet then why not? have a go yourself and only ask for help when you get stuck).
    h) Show us any error messages you are getting, in full, and with information of the line numbers where the error is occurring
    i) Wherever you provide data or code remember to use the tag before and after or the [code] tag before and the [/code] tag after, so that it keeps it's layout and is clear to read.
    j) Perhaps one of the most important things of all... never suggest that you need a solution "urgently" or that your issue is "urgent". This implies that your issue is somehow more important than the issues posted by other people. Everybody would like an answer to their issue promptly, but it just depends when people are online who can answer the question and nobody is being paid to answer it, so it is arrogant and rude to demand urgent attention to your own. If something is that urgent then you should raise it through oracle metalink as a priority issue or pay for someone with the necessary skills to come and do the work for you.
    Timo                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Add/delete row in JTable

    I went through the tutorial of JDK about how to programming JTable, i can NOT find a way to add/delete row into/from JTable.
    I immagine it would be a difficult task because the data set it takes 'Object data[][]' is NOT dynamically grow/shrinkble.
    Can we make it take ArrayList[] as input dataset so that the dataset can dynamically grow/shrink?
    Any other way around to add/delete row?
    THANKS for your consideration.

    You have to write your own TableModel like extending AbstractTableModel. In that class add custom methods to add and remove rows. From those methods call fireTableRowsDeleted(..) and fireTableRowsInserted(..) to update UI.

  • SELECT call performance increase through archiving...

    Hi all,
    Short description : SELECT call performance increase through archiving records that satisfy a particular criteria like a cut off date. Is there any way i can intercept a select call on the real table and make it return records from the real or archive table based on the criteria (dates) issued in the call.
    Long description:
    I've been given the job of decreasing the execution time of a select statement on a particular database consisting of a few lakh records. the premise is that not all of these records need to be searched through for a normal query. only audit reports need access to the entire table. the additional premise is that the separation of tables should be transparent to the program (no changes can be made to the code). given these premises, i've been toying with some ideas that have not helped me out.
    * Read about Fine Grained Auditing that kind of allow a trigger on select which would change the sql query to select from either the real or archive table( not sure if this will work either). But my production system uses oracle 8i. so no FGA :-(
    * thought of create/replace a view that would restrict the rows based on a cut off date. but this would require code changes to make select calls on the actual table whenever an audit is required.
    Is there any way i can intercept a select call and make it select from one/ both of the tables based on the criteria (dates) issued in the call.
    any other suggestions on this kind off transperant archiving is welcomed.

    Do your queries have a WHERE clause? If so, and the table is partitioned by date, Oracle can implicitly eliminate all the older partitions.
    If your queries are not currently limiting themselves to a particular date range, you could also create a parameterized view with sys_context. Without changing your application, you would need to ensure that there were different users for different roles (i.e. an audit user would have a login trigger that set up a different context than a login trigger for a normal user). If you can make small changes to your application, you could add a call to set the context whenever you want to change roles.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Recover the deleted row

    Hi,
    Os windows xp
    Db 10.2.0.1
    devlopers deleted some rows from the user shcema.the db is running in archive mode.
    how to get the deleted rows.
    is it possible?

    Two options :
    1. FLASHBACK TABLE : http://download.oracle.com/docs/cd/B19306_01/backup.102/b14192/flashptr003.htm#BRBSC01517
    which will flashback the whole table, undoing all changes beyond the flashback time
    2. SELECT ... AS OF ...
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_10002.htm#i2112818
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_10002.htm#i2112847
    to retrieve the deleted row and copy the row back.
    In both cases, you must do so within your UNDO_RETENTION period !
    Hemant K Chitale
    http://hemantoracledba.blogspot.com

Maybe you are looking for

  • Is it possible to change LOV definition using dynamic action?

    Hi, I have a multi-select LOV page item, P27_MULTI_CLASS_CODE, defined as below.  On page load, this list only contains values based on what has been passed to P27_OLO_CODE or P27_OLO_CODE_SW. SELECT DISTINCT c.class_code d, c.class_code r   FROM ORG

  • How to safely unmount a drive from Air?

    Hello, Now that it is possible from Air2 beta2 to detect mount/unmount of drive, I wanted to know if it was possible to unmout propertly the drive that has been mounted. I'm developping a fullscreen Kiosk, where the user can plug his USB key to downl

  • SD file "becoming" anamorphic widescreen...?

    I work at a university and we currently shoot performances in SD and capture to an older G4 with FCP 4.5 (multi-cam through a Grass Valley switcher, converted to firewire for capture through a JVC miniDV deck, if any of that matters). Anyway, I'm usi

  • Moving field object from one section to another programatically

    How do I move text/field objects from one section to another at run time. The ReportObjects collection in the section is readonly and setting the left, top property of the ReportObject only seems to move object within the same section. I'm using Crys

  • Digit not working in WEP key entry mode

    My wep no. requires the digit 1 to sync with my phone . however the digit 1 will not on my phone in wep key enter mode . It also will not work in vertical mode while texting, but will work in horizontal mode while texting only. I have tried resetting