Precisely Enterworks

 View Only
  • 1.  Unlinking and Promotions

    Posted 11-12-2020 15:15
    Hi all. Here's another interesting situation we've run into. We have a Product repo which is linked to an author repo. In the product record linked section, we've enabled the "Add link" and "remove link" buttons:
    If you click the "Add link", it automatically creates a record in the link table that connects products to authors. And if you click the "unlink" button, it deletes the link record. So far so good! Here's the issue:
    1) You link product P1 to Author A1
    2) The link record gets promoted from Staging to Production 
    3) You remove the link between P1 and A1
    4) The link record gets deleted in Staging but STILL exists in production.

    We have multiple such scenarios (product to contacts, product to price, product to collateral, etc.) which all suffer from this issue. How have your teams worked around this problem? Any help would be appreciated!

    ------------------------------
    Sidd Shenoy | Senior Director Enterprise Master Data
    Thomson Reuters | 6465402371
    ------------------------------


  • 2.  RE: Unlinking and Promotions

    Posted 12-04-2020 16:05
    Hi Sidd. I will run this past some folks on the team. It appears as though the promotion up to production is smooth but there needs to be a bit of a process to ensure deleted links triger a deletion in production as well. Are you using a physically deleting the  'linked' record, just breaking the link between it and a parent, correct?

    @Najmul Hasan, @Daniel Okine, @John Jones, any thoughts on what Sidd might review on this?

    ------------------------------
    David Howard | Solution Engineer
    Winshuttle North America | 240-534-3511
    ------------------------------



  • 3.  RE: Unlinking and Promotions

    Posted 12-04-2020 16:09

    Thanks Howard. Yes just breaking the link between parent and child, which in turn automatically deletes the link record connecting the 2.

     

    Best,

    Sidd

     






  • 4.  RE: Unlinking and Promotions

    Employee
    Posted 12-06-2020 23:27
    Sidd,

    Generally speaking, the auto-deletion of Production records due to the deletion of the corresponding Staging records is not directly supported by the EnterWorks platform.  It's necessary to either implement a trigger that acts on the deletion action on the Staging repository, or set up a Scheduled Export that invokes a stored procedure that cleans up orphaned Production repository records.

    The reason the deletion is not automatic is that in most scenarios, records are not deleted but rendered inactive/disabled via changing attribute(s) so that those changes can be promoted and then syndicated to downstream systems.  If the record is deleted from Production, there's no way to convey that deletion in syndications other that an implied deletion if the syndication is always a full export.

    The cleanup by trigger would require  implementing some Java code that would need to be compiled into a JAR file that would need to be deployed to each of the EnableServer services.  The advantage of the trigger solution is that it it's immediate.

    The cleanup by stored procedure invoked by Scheduled Export doesn't require any coding/deployment but just the creation of the Scheduled Export that invokes the already-existing stored procedure: 

    -- Cleanup Orphaned records from Production repository that have been deleted from Staging before the cutoff time
    -- CleanupOrphanedRecordsForRepository <productionRepositoryName>,<stagingRepositoryName>,<numberOfMinutes>,<displayAttributes>
    --
    -- <productionRepositoryName> - name of production repository in which to find orphaned records
    -- <stagingRepositoryName> - name of staging repository for <productionRepositoryName>
    -- <numberOfMinutes> - number of minutes an orphaned record had to have been deleted from Staging to be cleaned up
    -- <displayAttributes> - comma-delimited list of attributes to display for orphaned records. No details displayed if null
    --

    -- Example call: CleanupOrphanedRecordsForRepository N'PIM_Product_Production','PIM_Product_Staging',30,'SKU Group,SKU Group Auto-Id'

    -Brian


    ------------------------------
    Brian Zupke | Senior Technical Support Engineer
    Winshuttle North America | 9099009179
    ------------------------------



  • 5.  RE: Unlinking and Promotions

    Posted 12-07-2020 22:14
    Thanks Brian! Appreciate the detailed response.

    ------------------------------
    Sidd Shenoy | Senior Director Enterprise Master Data
    Thomson Reuters | 6465402371
    ------------------------------



  • 6.  RE: Unlinking and Promotions

    Posted 12-19-2020 12:04

    Brian,

    We have run into the same issue under two different scenarios:

    1. If we delete an image from DAM Master, the DAM Link record remains. Is there a similar method for deleting all DAM Link records linked to that file name when that file is deleted?

    2. More related to Sidd's initial query, we have the same problem with Hierarchy Catalog. When we need to remove something from a node, our current process is to not use the unlink button but simply delete the records in HC Staging and HC Production. Will your solution work for this or is there an easier way?



    ------------------------------
    Jonathan Varo | PIM Lead
    Fender Musical Instruments | 480-845-5823
    ------------------------------



  • 7.  RE: Unlinking and Promotions

    Employee
    Posted 01-16-2021 01:56
    Jon/Sidd,

    A new option with the pending 2021-01-17 release of the Services Framework is the ability to perform Change Notification operations on Delete events as well as delete records as part of the processing for a Change Notification event.  This would allow Ui-based configuration to specify any type of cleanup that is needed based on Delete (as well as Create or Update) operations.  Jon, this is being made available only for EnterWorks 10.x, so you'd need to upgrade to be able to leverage the new functionality.

    -Brian

    ------------------------------
    Brian Zupke | Senior Technical Support Engineer
    Winshuttle North America | 9099009179
    ------------------------------