System.Collections.Generic.KeyNotFoundExceptio
System.Collections.Generic.KeyNotFoundExceptio
Hello,
We have a problem...
without any adaptation to the files or the system, we suddenly get the following remark.
Propfrex versionV4.2.0.4 - 64 bit enterprise edition
6/06/2020 7:24:27: Processing Script-Line 1 (Retries=600): 1 Cartwall : Tijdsein TOTH (Filter=, Options=SuppressHistoryCheck, ForceLibraryHistoryCheck)
6/06/2020 7:24:27: System.Collections.Generic.KeyNotFoundException
The given key was not present in the dictionary.
at cV.AO.X8SQ(Object , FirstChanceExceptionEventArgs )
at System.ThrowHelper.ThrowKeyNotFoundException()
at System.Collections.Generic.SortedDictionary`2.get_Item(TKey key)
at ProppFrexx.PFRestriction.GetRuleSet(String name)
at ProppFrexx.PFRestriction.Matches(DateTime dateTime, MediaEntry entry, Boolean isRuleSet)
at ProppFrexx.ScriptLibrary.GetNextTracks(Object prog, DateTime lastScheduleTime, DateTime nextScheduleTime, Int32 scriptLine)
at ProppFrexx.ScriptTester.Owr.egIk()
at System.Threading.Tasks.Task.Execute()
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
at System.Threading.Tasks.Task.ExecuteEntry(Boolean bPreventDoubleExecution)
at System.Threading.ThreadPoolWorkQueue.Dispatch()
6/06/2020 7:24:27: GetNextTracks processed, 1 script result entries returned (File=M:\CARTWALL\Tijdsein\Tijdsein 00-23\avond 21 uur.mp3).T
>>>>>>>the result is that the system no longer takes the rulessetting into account in the script.
We have a problem...
without any adaptation to the files or the system, we suddenly get the following remark.
Propfrex versionV4.2.0.4 - 64 bit enterprise edition
6/06/2020 7:24:27: Processing Script-Line 1 (Retries=600): 1 Cartwall : Tijdsein TOTH (Filter=, Options=SuppressHistoryCheck, ForceLibraryHistoryCheck)
6/06/2020 7:24:27: System.Collections.Generic.KeyNotFoundException
The given key was not present in the dictionary.
at cV.AO.X8SQ(Object , FirstChanceExceptionEventArgs )
at System.ThrowHelper.ThrowKeyNotFoundException()
at System.Collections.Generic.SortedDictionary`2.get_Item(TKey key)
at ProppFrexx.PFRestriction.GetRuleSet(String name)
at ProppFrexx.PFRestriction.Matches(DateTime dateTime, MediaEntry entry, Boolean isRuleSet)
at ProppFrexx.ScriptLibrary.GetNextTracks(Object prog, DateTime lastScheduleTime, DateTime nextScheduleTime, Int32 scriptLine)
at ProppFrexx.ScriptTester.Owr.egIk()
at System.Threading.Tasks.Task.Execute()
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
at System.Threading.Tasks.Task.ExecuteEntry(Boolean bPreventDoubleExecution)
at System.Threading.ThreadPoolWorkQueue.Dispatch()
6/06/2020 7:24:27: GetNextTracks processed, 1 script result entries returned (File=M:\CARTWALL\Tijdsein\Tijdsein 00-23\avond 21 uur.mp3).T
>>>>>>>the result is that the system no longer takes the rulessetting into account in the script.
Re: System.Collections.Generic.KeyNotFoundExceptio
From which version are you upgrading?
Actually there was recently nothing changed from the previous versions.
So I assume the issue existed for longer. Maybe a tagging issue? I’ll need to investigate.
Can you send me your Restriction settings.
Plus the related audio file where it fails?!
Actually there was recently nothing changed from the previous versions.
So I assume the issue existed for longer. Maybe a tagging issue? I’ll need to investigate.
Can you send me your Restriction settings.
Plus the related audio file where it fails?!
Bernd - radio42
ProppFrexx ONAIR - The Playout and Broadcast Automation Solution
ProppFrexx ONAIR - The Playout and Broadcast Automation Solution
Re: System.Collections.Generic.KeyNotFoundExceptio
Looks like you have assigned a "RuleSet" (see general settings) to a track, which now doesn’t exist anymore, because you deleted that rule set (or it was for whatever reason not loaded; check the file "ProppFrexx ONAIR.rulesets" in your ProppFrexx AppUserData folder)?
As the assigned (to a track) RuleSet doesn't exist anymore, the given 'FirstChanceException' is a totally normal behavior.
The exception is thrown gracefully, and is exactly designed for the above reason - in case the RuleSet doesn't exist anymore.
As such, the RuleSet can not be evaluated anymore - as you already recognized!
As the assigned (to a track) RuleSet doesn't exist anymore, the given 'FirstChanceException' is a totally normal behavior.
The exception is thrown gracefully, and is exactly designed for the above reason - in case the RuleSet doesn't exist anymore.
As such, the RuleSet can not be evaluated anymore - as you already recognized!
Bernd - radio42
ProppFrexx ONAIR - The Playout and Broadcast Automation Solution
ProppFrexx ONAIR - The Playout and Broadcast Automation Solution