Community
Vault Forum
Welcome to Autodesk’s Vault Forums. Share your knowledge, ask questions, and explore popular Vault topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

"Find Duplicates" from Vault Using WebServices and C#

4 REPLIES 4
Reply
Message 1 of 5
Anonymous
605 Views, 4 Replies

"Find Duplicates" from Vault Using WebServices and C#

To Whomsoever it may concern:

I am trying to Build a small utility to Check in our Vault Server for the status of "Enforce Unique File Names" and to generate a Duplicate Files Report if available.

I have done the first using Document Service and it is working fine. I have found that - to generate Duplicate Files Report, I can use "ItemsAndDups object" in the Item Service. However, as we dont have ProductStream - ItemService.asmx is not working for me.

Please suggest me a best way to complete my task.

Thank you in Advance

Moideen
4 REPLIES 4
Message 2 of 5
Anonymous
in reply to: Anonymous

Try this....
Call FindFilesBySearchConditions in the Document Service. Don't pass in any
'conditions' or 'folderIds', which results in every file in the Vault being
returned. Also set the File Name property as the 'sortCondition'.
When you run this function, it results in an alphabatized list of all files
in the Vault. Now you can simply scan the list. If you find that a file
name matches the name of the previous file in the list, you have a
duplicate.

If you are using a Vault 2008 or earlier, you will not have the ability to
sort on a property, so it's a bit harder. In this case, I suggest scanning
through all the folders and remembering the names of the files that you find
with a Dictionary class or something similar.


Doug Redmond
Software Engineer, Autodesk Inc.
Message 3 of 5
Anonymous
in reply to: Anonymous

Dear Doug,

Thanks for your quick reply.

I will use this method to complete my utility. We are using Vault 2008.


Thanks again!!

Moideen
Message 4 of 5
Anonymous
in reply to: Anonymous

Is there any reason that you don’t use the Find Duplicates feature in
the administration dialog?

Mikel Martin
Autodesk Data Management
Product Design Lead

-----Original Message-----
From: nmoideen [mailto:nmoideen]
Posted At: Thursday, August 06, 2009 8:16 AM
Posted To: autodesk.vault
Conversation: "Find Duplicates" from Vault Using WebServices and C#
Subject: "Find Duplicates" from Vault Using WebServices and C#

To Whomsoever it may concern:

I am trying to Build a small utility to Check in our Vault Server for
the status of "Enforce Unique File Names" and to generate a Duplicate
Files Report if available.

I have done the first using Document Service and it is working fine. I
have found that - to generate Duplicate Files Report, I can use
"ItemsAndDups object" in the Item Service. However, as we dont have
ProductStream - ItemService.asmx is not working for me.

Please suggest me a best way to complete my task.

Thank you in Advance

Moideen
Message 5 of 5
Anonymous
in reply to: Anonymous

Dear Mikel,

We have 38 Vault Servers worldwide and spending almost half a day on beginning of every month to generate the Duplicate files report.

That is why I am trying to Automate some processes by building a small utility.


Thanks

Moideen

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report