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)