Finding Duplicated Unique Variables

All,

  I am beginning to have a real problem with EPDM.  Our Vault is old, dating back to the Conisio days.  When we implemented there was no filename uniqueness check.  Instead what you had to do was assign a variable, which would hold the filename and check against that.  This is how our Vault is configured.  To make matters worse we have two different departments that each have their own filename variable, so we can have legitmate duplicates as long as they use different filename variables.

  My question is this, does anyone have an SQL query to find duplicate variables?  I often find files which are firing the unique variable check, and when I attempt to use the complete search to find the variable it is useless, even when logged in as Admin so I can see private state files. 

   Any help would be appreciated.  I am leaning towards the issue being the system is flagging false positives but since there is no feedback about which variable on which file is the issue, its frustrating.  This is something Solidworks could easily fix.

Regards,

Corey Vantilborg

SolidworksSolidworks Pdm enterprise Pdm
Answers 4
CV
CV 2011-10-21 Best Answer

I have come up with a rough query to solve this.  It could be optimized further to present a few bits in a more clear way:

SELECT [VariableID]

      ,Vault.dbo.VariableValue.DocumentID

      ,vault.dbo.VariableValue.ProjectID

      ,Vault.dbo.Documents.Filename

      ,Vault.dbo.Documents.LockPath

      ,[RevisionNo]

      ,[ConfigurationID]

      ,[ValueText]

      ,[ValueInt]

      ,[ValueFloat]

      ,[ValueDate]

      ,[ValueCache]

      ,[IsLongText]

  FROM [Vault].[dbo].[VariableValue]

 

  inner join Vault.dbo.Documents

on Vault.dbo.VariableValue.DocumentID = Vault.dbo.Documents.DocumentID

where vault.dbo.variablevalue.VariableID like 'variablewhichisduplicate' and Vault.dbo.VariableValue.ValueCache like 'duplicatevariablevalue'

Note that 'vault' is the name of the file vault.  

Corey V

AS
AS 2016-05-18

Hi,

I just tumbled upon the same problem, but I'm not able to transform your query to a .crp file to use the report generator tool. would you mind sharing your code with me?

Greetings

JG
JG 2016-05-18

Hello, I would recommend searching the Knowledge Base - try solution S-033897 or S-063649. Regards, Joy

AS
AS 2016-05-19

Thanks Joy, S-033897 worked perfectly fine for me!