Home > Forum > Known bugs > Error at changing environments

Error at changing environments

Hello,

we've just updated our WebCon from version 2023.1.2.44 to 2026.1.4.125.
Every time I switch between our portals (dev/test/prod environments) WebCon Designer crashes when I save the process.
Afterwards I can reopen the designer and saving works fine.

I check the newer releases for this error but could find a hint that this problem has been resolved.

Thanks for your help!

Best regards,
Balint





Type: System.AggregateException
-------------------------------------------------------

Message: A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread.
-------------------------------------------------------

CallStack
-------------------------------------------------------

-------------------------------------------------------


*******************************************************
Internal error (ArgumentException)
*******************************************************

Type: System.ArgumentException
-------------------------------------------------------

Message: Cannot add to index of type WFEnvironmentGlobalVariables entry with ID 1
Parameter name: row
-------------------------------------------------------

CallStack
-------------------------------------------------------
at WebCon.WorkFlow.BusinessLogic.ImportExport.Mapping.MappingList.IncludeInIndexes(MappingListRow row, Boolean addIfNotContains)
at WebCon.WorkFlow.BusinessLogic.ImportExport.Mapping.MappingList.AddOrUpdate(MappingListRow row)
at WebCon.WorkFlow.Module.IntegrityInspection.Core.IntegrityInspection.IntegrityCheckModel.AddIfNotContains(MappingListRow row)
at WebCon.WorkFlow.Module.IntegrityInspection.Core.IntegrityInspection.IntegrityModelUpdater.PrepareCollectionsForMappingRows(IEnumerable`1 rows)
at WebCon.WorkFlow.Module.IntegrityInspection.Core.IntegrityInspection.IntegrityModelUpdater.UpdateModel(IEnumerable`1 entities)
at WebCon.WorkFlow.Module.IntegrityInspection.Core.IntegrityInspection.IntegrityInspector.UpdateSpecificEntities(IEnumerable`1 entities)
at WebCon.WorkFlow.Studio.Logic.IntegrationInspection.StudioIntegrityInspector.<UpdateEntities>b__20_0()
at System.Threading.Tasks.Task.Execute()
-------------------------------------------------------


*******************************************************
Internal error (ArgumentException)
*******************************************************

Type: System.ArgumentException
-------------------------------------------------------

Message: An item with the same key has already been added.
-------------------------------------------------------

CallStack
-------------------------------------------------------
at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
at WebCon.WorkFlow.BusinessLogic.ImportExport.Mapping.MappingList.IncludeInIndexes(MappingListRow row, Boolean addIfNotContains)
-------------------------------------------------------

MVP

Hi Balint,

while I can't help you with this. You could create different Designer Studio shortcuts for each environment:

WEBCON Designer Studio.exe" -protocol "webcon://https://YourBPSPortalAddress/&amp;parameters=" _iedebug _admin

There's also an option to "install" different Designer Studios on one machine:
https://daniels-notes.de/posts/2022/open-designer-studio-in-a-specifc-version

While neither of these help with the issue, I would just prefer closing the Designer Studio and open another one with a single click then entering the URL.

If you have multiple databases, you could also add define database, if I remember correctl.y

Best regards,
Daniel