Issue
Sometimes one source container might be mapped by an accident to multiple targets of the same type, like multiple EV targets. If not many mappings are affected, this operation can be done manually. If more (several hundred or thousands) mappings are affected following guidance using SQL query will help to sort it out. The SQL script below assigns all duplicate mappings to the TARGET Tag (source Tag cannot be used as source containers are equal to each other).
How to do it
In the Archive Shuttle user interface, go to tag management and create a new tag. Always create a new tag, rather than using an existing one. Here’s how to do it:
Examples
Now you should be able to filter duplicates and do whatever you want using the TARGET tag (not the SOURCE tag), the recommendation is just to disable Migration and Item collection not deletion on all affected mappings.
SQL to use
--change tag for dups (TARGET tag) insert into [ArchiveShuttleDirectory].[dbo].[ContainerToContainerTag] (ContainerId, ContainerTagId) select c.targetcont, 100 from --100 replace by your tag id (select a.sourcecontainerid as sourcecont, a.targetcontainerid as targetcont, a.stage2finished as stage2finished, b.cntTotal as cntTotal, ROW_NUMBER() OVER(PARTITION by a.sourcecontainerid ORDER BY a.stage2finished DESC) cntObso from [ArchiveShuttleDirectory].[dbo].[Stage1View] a left outer join (SELECT sourcecontainerid, count(targetcontainerid) as cntTotal FROM [ArchiveShuttleDirectory].[dbo].[Stage1View] group by sourcecontainerid having count(targetcontainerid) > 1) b ON a.sourcecontainerid = b.sourcecontainerid where b.cntTotal > 1) c where c.cntObso > 1
© ALL RIGHTS RESERVED. Terms of Use Privacy Cookie Preference Center