web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested Answer

How to solve Import failed: The given key was not present in the dictionary.

(0) ShareShare
ReportReport
Posted on by 120

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.

I have the same question (0)
  • Suggested answer
    Abdul Wahab Profile Picture
    12,119 Moderator on at

    Hi damka,

    This may be due to the custom code used/written in your:

    1. workflow extension
    2. plugin
    3. etc

    Provide all values of the column that exists in the table for two records and import that file. You will face this issue.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 96 Super User 2025 Season 2

#2
Jimmy Passeti Profile Picture

Jimmy Passeti 50 Most Valuable Professional

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 49 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans