Hi all,
We are facing some errors during lifetime deployment between environments, at the "Performing Impact Analysis of module" stage. (on-premise).
---
Error stack shown in deployment log:
An error occurred in task 'Collecting eSpace producers information (eSpace: <espace_name>)':The given key was not present in the dictionary.Details : System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary. at System.Collections.Concurrent.ConcurrentDictionary`2.get_Item(TKey key) at OutSystems.Server.Services.Build.Application.BuildService.SetDirectAndIndirectEspaceProducers(Guid operationId, ObjectKey espace, IDictionary`2 directDependencies, IDictionary`2 indirectDependencies, IMessageBroker broker, IDictionary`2& oldProducersArtifacts) at OutSystems.Server.Services.Build.Application.Tasks.CollectEspaceProducersInformationTask.Execute(CollectEspaceProducersInformationContext input, IMessageBroker messageBroker, CollectEspaceProducersInformationOutput& result) at OutSystems.Server.Infrastructure.Tasks.AbstractTask`1.InnerRun(InputType input, IMessageBroker messageBroker, Func`1 executeAction)
Service Center error detail information:
Source: Infrastructure.
Message: The given key was not present in the dictionary.
Stack: at System.Collections.Concurrent.ConcurrentDictionary`2.get_Item(TKey key)
at OutSystems.Server.Services.Build.Application.BuildService.SetDirectAndIndirectEspaceProducers(Guid operationId, ObjectKey espace, IDictionary`2 directDependencies, IDictionary`2 indirectDependencies, IMessageBroker broker, IDictionary`2& oldProducersArtifacts)
at OutSystems.Server.Services.Build.Application.Tasks.CollectEspaceProducersInformationTask.Execute(CollectEspaceProducersInformationContext input, IMessageBroker messageBroker, CollectEspaceProducersInformationOutput& result)
at OutSystems.Server.Infrastructure.Tasks.AbstractTask`1.InnerRun(InputType input, IMessageBroker messageBroker, Func`1 executeAction)
When the error occurs, we try to run again the deployment and it works fine in the second attempt.
It is not every time this error happens but eventually it comes up again.
If anyone have been through a similar situation, would appreciate any help.
Thanks in advance.
Leandro
Hi @Leandro Neto,
Here are some posts available regarding this issue.
https://www.outsystems.com/forums/discussion/20918/bug-report-and-resolution-for-the-given-key-was-not-present-in-the-dictionary/
https://www.outsystems.com/forums/discussion/46945/the-given-key-was-not-present-in-the-dictionary/
https://www.outsystems.com/forums/discussion/20849/the-given-key-was-not-present-in-the-dictionary/
if nothing works, Please contact OutSystems Support for this.
Hope this will help you
Kind regards,
Sanjay Kushwah
Hi Leandro Neto,
Do you have static entities in an eSpace, if there were some data changes in the previous environment in the static, you could have errors in lifetime.
Workaround is to merge and publish the eSpaces in the target environment before using the lifetime.
Hope that it helps you
Hello @Leandro Neto !
Did you manage to find the solution to this problem? If yes, please share with us, as I have the same error in my environment.
Thanks.
Hello!
Just to update on this issue, we followed the instructions of this article:
https://success.outsystems.com/documentation/11/setup_outsystems_infrastructure_and_platform/setting_up_outsystems/performance_best_practices_for_your_outsystems_infrastructure/#Exclude_some_folders_from_antivirus_scanning.
In our case, it solved most of the error occurrences. I hope it helps anyone else in similar situations.
Thank you everyone!