The entity with ObjectTypeCode = 0 was not found in the MetadataCache

Pramod, Akhil (Contractor) 1 Reputation point
2022-03-31T15:41:29.39+00:00

I am using SSIS to load data into CRM . i am using a 3rd party Connector for that , which is "Zappysys" .
I am getting this error and i am unable to figure what this issue is. i am unable to resolve it.

Below is the detailed error :

Error: System.Exception: System.Exception: The entity with ObjectTypeCode = 0 was not found in the MetadataCache. MetadataCacheDetails: ProviderType=Dynamic, StandardCache=True, IsLoadedInStagedContext = False, Timestamp=518982341, MinActiveRowVersion=518982341, MetadataInstanceId=48123903, LastUpdated=2022-03-27 05:26:28.890
Error Details:
ApiExceptionSourceKey=Plugin/Microsoft.Crm.Extensibility.UpsertProcessor

ApiSourceActivityKey=

ApiExceptionOwnerKey=OwnershipNotFoundInExceptionOwnerSettings

ApiOriginalExceptionKey=Microsoft.Crm.Metadata.EntityMetadataNotFoundException: The entity with ObjectTypeCode = 0 was not found in the MetadataCache. MetadataCacheDetails: ProviderType=Dynamic, StandardCache=True, IsLoadedInStagedContext = False, Timestamp=518982341, MinActiveRowVersion=518982341, MetadataInstanceId=48123903, LastUpdated=2022-03-27 05:26:28.890 ---> Microsoft.Crm.Metadata.EntityMetadataNotFoundException: The entity with ObjectTypeCode = 0 was not found in the MetadataCache. MetadataCacheDetails: ProviderType=Dynamic, StandardCache=True, IsLoadedInStagedContext = False, Timestamp=518982341, MinActiveRowVersion=518982341, MetadataInstanceId=48123903, LastUpdated=2022-03-27 05:26:28.890
at Microsoft.Crm.Metadata.DynamicMetadataCache.GetEntity(Int32 entityCode)
at Microsoft.Crm.Extensibility.ParameterValidator.ConvertEntityToQuery(Guid id, String logicalName, KeyAttributeCollection keyAttributes, ExecutionContext context, KeyAttributeCollection& convertedKeyAttributeCollection)
at Microsoft.Crm.Extensibility.ParameterValidator.RetrieveRecord(Entity entity, ExecutionContext context, KeyAttributeCollection& convertedKeyAttributes)
at Microsoft.Crm.Extensibility.UpsertProcessor.RetrieveThenCreateOrUpdate(ExecutionContext context, Entity entity, Boolean& recordCreated, EntityReference& entityReference, Dictionary2 optionalParameters, KeyValuePair2[] attributeCopy)
at Microsoft.Crm.Extensibility.UpsertProcessor.Upsert(ExecutionContext context, Entity entity, Boolean& recordCreated, Nullable`1 returnRowVersion)
--- End of inner exception stack trace ---
at Microsoft.Crm.Extensibility.VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context)
at Microsoft.Crm.Extensibility.PipelineInstrumentationHelper.Execute(Boolean instrumentationEnabled, String stopwatchName, ExecuteWithInstrumentation action, PipelineExecutionContext context)
at Microsoft.Crm.Extensibility.Pipeline.<>c__DisplayClass3_0.<RunStep>b__0()

SQL Server Integration Services
SQL Server Integration Services
A Microsoft platform for building enterprise-level data integration and data transformations solutions.
2,490 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. ZoeHui-MSFT 34,581 Reputation points
    2022-04-01T01:54:43.817+00:00

    Hi @Pramod, Akhil (Contractor) ,

    As you are using 3rd party Connector Zappysys, I'd suggest that you may raise the issue to that side for more professional advice.

    Zappysys support

    Regards,

    Zoe


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.