It's all about the answers!

Ask a question

How can I find duplicate artifacts in a module?


David Clark (214531) | asked Oct 23 '18, 1:22 p.m.

 Does anyone have a tip for finding a duplicate artifact in a module? We have discovered that a couple of artifacts have been included twice in the same module and would like to clean these out.


Comments
David Clark commented Oct 23 '18, 1:23 p.m.

 We can manually look for them,, we can export to excel and filter for them, but is there a way within DNG or RPE to generate a query that will highlight these duplicates?

One answer



permanent link
Subramanya Prasad Pilar (4.3k14) | answered Oct 24 '18, 8:38 a.m.
edited Oct 24 '18, 8:44 a.m.
If you just want to find the duplicate artifact (ID)s, you can do so using a simple RPE template.
You can generate document by setting data source URI to
https://<server>:9443/rm/publish/resources?moduleURI=<UUID>
so that the output will contain only the duplicate IDs (dataSource/artifact/identifier).

Better way is to store all IDs in an array and find the duplicates as explained in below links:

Your answer


Register or to post your answer.