I am trying to import a solution in mscrm 365 (now in the process of upgrading the system) and I get
Import failed: The given key was not present in the dictionary.
The full error is : The import failed. For more information, see the related error messages. : System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary. at System.ThrowHelper.ThrowKeyNotFoundException() at System.Collections.Generic.Dictionary`2.get_Item(TKey key) at Microsoft.Crm.Metadata.GenericReportTableView.GetSecuredFieldDecisionAttribute(MetadataBusinessEntity attribute) at Microsoft.Crm.Metadata.GenericReportTableView.AddSelect(StringBuilder reportView, Guid[] attributesReferencingVE) at Microsoft.Crm.Metadata.GenericReportTableView.CreateReportViewGenerationScript() at Microsoft.Crm.Metadata.ViewGenerator.RegenerateReportViews(Guid[] entityIds, Dictionary`2 viewSet, Boolean grantAccessToReportObjects) at Microsoft.Crm.Metadata.ViewGenerator.RegenerateViews(ViewGenerationInfoDictionary viewGenerationSet, SqlViewTypes viewTypes, Boolean grantDatabaseAccessToReportViews) at Microsoft.Crm.Metadata.MetadataHelper.<RegenerateViews>b__131_0() at Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.Execute(ILogger logger, EventId eventId, ActivityType activityType, Action action, IEnumerable`1 additionalCustomProperties) at Microsoft.Xrm.Telemetry.XrmTelemetryExtensions.Execute(ILogger logger, XrmTelemetryActivityType activityType, Action action) at Microsoft.Crm.Metadata.MetadataHelper.ProcessDatabaseOperationsInternal(CounterList listCounters) at Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.Execute(ILogger logger, EventId eventId, ActivityType activityType, Action action, IEnumerable`1 additionalCustomProperties) at Microsoft.Xrm.Telemetry.XrmTelemetryExtensions.Execute(ILogger logger, XrmTelemetryActivityType activityType, Action action) at Microsoft.Crm.Metadata.MetadataHelper.ProcessDatabaseOperations() at Microsoft.Crm.Tools.ImportExportPublish.ImportStagingEndHandler.ImportItem() at Microsoft.Crm.Tools.ImportExportPublish.ImportHandler.ImportInternal() at Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.Execute(ILogger logger, EventId eventId, ActivityType activityType, Action action, IEnumerable`1 additionalCustomProperties) at Microsoft.Xrm.Telemetry.XrmTelemetryExtensions.Execute(ILogger logger, XrmTelemetryActivityType activityType, Action action) at Microsoft.Crm.Tools.ImportExportPublish.RootImportHandler.ImportAndUpdateProgress(ImportHandler ih) at Microsoft.Crm.Tools.ImportExportPublish.RootImportHandler.ProcessHandlers(String[] ImportEntities, Hashtable ht, String& curPath, ImportHandler& ihForCurrentPath, CounterList listCounters) at Microsoft.Crm.Tools.ImportExportPublish.RootImportHandler.RunImport(String[] ImportEntities)
The solution in managed.
The version is 365 v9.1 on-premise
This error is new to me and I'm not sure what to check or what to change, can someone please guide me, I read online answers but no change.
Hi damka,
This may be due to the custom code used/written in your:
Provide all values of the column that exists in the table for two records and import that file. You will face this issue.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156