75
Views
4
Comments
Deployment between environments - "The given key was not present in the dictionary."
Application Type
Traditional Web

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


UserImage.jpg
Alexandre Yip

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 

2026-03-04 12-08-39
Luiz Henrique Stanqueviski

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.

UserImage.jpg
Leandro Neto

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! 

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.