Q

Delete duplicate documents in database

I have to delete the duplicate documents in a database. I saw the default agent that comes in the catalog(R5.0)(template or database). I don't know where to change in order to run it for my view. Please help me on this asap(as soon as possible). I need it early because the task is already beyond schedule (the task given to me to write the script to delete the duplicate documents).


You need to copy the agent to the file you want to use it in. You need to create a view where the first column is a key value that determines that the documents are duplicates ( i.e. an account number, transaction identifier, a concatenation of Last and First Names, etc). In the agents code, you will find the following line:

    Set view = db.getView( "($ReplicaID)")

This agent uses the Replica ID field in the documents to determine duplicates. Change the name in quotation marks to the name of your view. The rest should then function to delete duplicate documents.


This was first published in October 2001

Dig deeper on Lotus Notes Domino Administration Tools

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

-ADS BY GOOGLE

SearchWindowsServer

Search400

  • iSeries tutorials

    Search400.com's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...

SearchEnterpriseLinux

SearchDataCenter

SearchExchange

SearchContentManagement

Close