laptop and a wrench

Erro

The error message, "The given key was not present in the dictionary" is returned when adding a new ArcGIS Pro ProWindow item in a sub-folder of an ArcGIS Pro Add-In C# Project in Visual Studio 2019.

Última Publicação: March 21, 2020 ArcGIS Pro SDK for .NET
Número de ID do Erro BUG-000128235
EnviadoJanuary 29, 2020
Última ModificaçãoJuly 20, 2025
Aplica-se àArcGIS Pro SDK for .NET
Versão encontrada2.4.3
Sistema OperacionalWindows OS
Versão do Sistema OperacionalN/A
Versão Fixa2.6
StatusFixed

Solução Provisória

For the workaround, there are two options:

  • Add the ProWindow item directly in the Project main folder, or
  • Use the workflow described in the Steps to Reproduce, ignore the error, then manually add the DAML code associated with the ProWindow item into the config.daml.

 

Adding the ProWindow item directly in the Project folder

 

Create a new C# ArcGIS Pro Add-in project, then add a ProWindow item, for example, right-click ProAddModule7 > Add > New Item > ArcGIS Pro ProWindow.2020-03-04_9-40-49.png

 

This correctly adds the ProWindow Item DAML code and other files (e.g button images) as shown in the figure below.

2020-03-04_9-43-08.png

 

Executing the project produces the correct results as shown in the figure below.

2020-03-04_9-51-19.png

Etapas para Reproduzir

ID do Erro: BUG-000128235

Software:

  • ArcGIS Pro SDK for .NET

Seja notificado quando o status de um erro mudar

Baixe o Aplicativo de Suporte da Esri

Descubra mais sobre este tema

Obtenha ajuda de especialistas do ArcGIS

Entre em contato com Suporte Técnico

Baixe o Aplicativo de Suporte da Esri

Ir para as opções de download