Skip to main content

Notifications

Announcements

No record found.

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)

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,494 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,305 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans