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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Unanswered

CRM error System.IndexOutOfRangeException

(1) ShareShare
ReportReport
Posted on by
Hi Team,

After I pushed one of the solutions to Production imported successfully without any errors or warnings, however I am facing an issue in CRM and the table is broken fully.
The Opportunity Table/Screen is broken and giving the below error. Tried downgrading the solution but did not work.

The update was having 6 additional fields, 1 Business Rule, 2 Web Resources, a button on ribbon with command for Opportunity table and few other things for Contact and all but only Opportunity is broken.
Removed all the updates from the solution still the same.

Deleted all the customization from PROD environment added from that solution but no luck there as well.



An error has occurred. [object Object]UciError: GetClientMetadata failed due to System.IndexOutOfRangeException: Index was outside the bounds of the array. at Microsoft.Crm.ObjectModel.ConverterUtilities.GetTargetEntityType(IUserAndOrganizationContext context, String fieldName, EntityMetadata primeEntity) at Microsoft.Crm.ObjectModel.ConverterUtilities.GetDatasetsForLookupAbstract(Int32 objectTypeCode, IUserAndOrganizationContext context, Int32 formFactor, XmlNode customControlNode) at Microsoft.Crm.MetadataService.Utility.ClientMetadataHelper.GetClientCustomControlPropertiesAbstract(XmlNode customControlNode, CustomControlDefinition manifest, Int32 formFactor, Int32 objectTypeCode, ExecutionContext context) at Microsoft.Crm.MetadataService.Utility.ClientMetadataHelper.GetCustomControlItemsFromControlDescription(XmlNode controlConfigurationNode, Int32 formType, Int32 primaryEntityTypeCode, Boolean addCustomControlDetails, ExecutionContext context) at Microsoft.Crm.MetadataService.Utility.ClientMetadataHelper.GetCustomControlConfigurationAbstract(XmlDocument controlDescriptionXml, Int32 primaryEntityTypeCode, Int32 formType, Boolean addCustomControlDetails, ExecutionContext context) at Microsoft.Crm.Metadata.Generators.SystemFormGenerator.GetFormDescriptorWithControlProperties(Form formDescriptor, BusinessEntity entity, QueryContext queryContext, ExecutionContext context) at Microsoft.Crm.Metadata.Generators.SystemFormGenerator.GetFormJsonPayload(String formString, BusinessEntity entity, QueryContext queryContext, ExecutionContext context) at Microsoft.Crm.Metadata.Generators.SystemFormGenerator.Generate(CandidateItem itemToGenerator, Dictionary`2 payload, ExecutionContext context) at Microsoft.Crm.Metadata.ClientMetadataService.<>c__DisplayClass31_1.<GenerateMetadata>b__0(Boolean xrmTelemetryEnabled) 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.ClientMetadataService.GenerateMetadata(MetadataSyncEventReporter eventReporter, Dictionary`2 roots, Dictionary`2 internalPayloadRepresentation, MetadataQuery clientMetadataQuery, ExecutionContext executionContext) at Microsoft.Crm.Metadata.ClientMetadataService.<>c__DisplayClass29_0.<AddClientMetadataFromRoots>b__1(Boolean traceEnabled) 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.ClientMetadataService.AddClientMetadata(Dictionary`2 internalPayloadRepresentation, MetadataQuery clientMetadataQuery, ExecutionContext executionContext) at Microsoft.Crm.Metadata.ClientMetadataService.GetClientMetadataInternal(MetadataQuery clientMetadataQuery, ExecutionContext executionContext) at s (https://content.powerapps.com/resource/uci-infra/scripts/app.fe7b91604275f3ccdca2479f872472fe.js:33:916353) at new h (https://content.powerapps.com/resource/uci-infra/scripts/app.fe7b91604275f3ccdca2479f872472fe.js:28:154886) at h.fromLegacyErrorStatus (https://content.powerapps.com/resource/uci-infra/scripts/app.fe7b91604275f3ccdca2479f872472fe.js:28:156913) at _ (https://content.powerapps.com/resource/uci-infra/scripts/app.fe7b91604275f3ccdca2479f872472fe.js:28:159286) at Ta (https://content.powerapps.com/resource/uci-infra/scripts/71.18425f27a8f4ba9b40c7559dc0130947.js:4:42629)
I have the same question (0)

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
ManoVerse Profile Picture

ManoVerse 81 Super User 2026 Season 1

#2
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 69 Most Valuable Professional

#3
11manish Profile Picture

11manish 62

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans