Message 1 of 9
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Dim mSearchParams As New System.Collections.Generic.Dictionary(Of String, String) mSearchParams.Add("File Name", "ENG0000024.iam") mSearchParams.Add("File Name", "ENG0000025.iam") mSearchParams.Add("File Name", "ENG0000079.iam") mSearchParams.Add("File Name", "ENG0000097.iam") mSearchParams.Add("File Name", "ENG0000100.iam") Dim mVaultFiles As List(Of String) mVaultFiles = iLogicVault.GetFilesBySearchCriteria(mSearchParams, False, False)
I'm testing this rule, but when I run it it returns me the error
Errore alla riga 4 nella regola: GetLatestVersion_1, nel documento: Parte1
An item with the same key has already been added. Key: File Name
Can't understand why. The hint when you insert the function says:
'Build one to many name/value pairs of Property/Value as search criteria;
Dim mSearchParams As New System.Collections.Generic.Dictionary(Of String, String) 'add UDP.DisplayName, Value Pairs
mSearchParams.Add("Part Number", "00100*") 'applies to files from 001000 to 001009
'...add as many as required to enable a unique search result
'the list of downloaded files
Dim mVaultFiles As List(Of String)
Solved! Go to Solution.