AleksandrRogov / DynamicsWebApi

DynamicsWebApi is a Microsoft Dataverse Web API helper library for JavaScript & TypeScript
MIT License
268 stars 58 forks source link

Expand property is not working on updateRequest operation #122

Closed sriharikrishna33 closed 1 year ago

sriharikrishna33 commented 1 year ago

Hello Team, I am doing updateRequest with expanding some properties but it is throwing error please check below error

The entity with a name = '****' with namemapping = 'Logical' was not found in the MetadataCache. MetadataCacheDetails: ProviderType=Dynamic, StandardCache=True, IsLoadedInStagedContext = False, Timestamp=11033226, MinActiveRowVersion=11033226, MetadataInstanceId=11762011, LastUpdated=2022-10-16 07:39:30.047, OrgId=10469e7d-10dd-4474-911d-26b3845f06ac

AleksandrRogov commented 1 year ago

@sriharikrishna33 looks like you specified an incorrect entity name somewhere in the request and Dynamics 365 cannot find it.

sriharikrishna33 commented 1 year ago

Dear @AleksandrRogov I added correct entityName it is working for createRequest but not working with updateRequest

AleksandrRogov commented 1 year ago

Both createRequest and updateRequest have the same underlying function that is making a call to Dynamics 365, plus the error message is coming from Dynamics 365 and not from the library. Thus, there must be something wrong in your particular request.

If you could share some code of both createRequest and updateRequest, I would take a look and try to help you.

AleksandrRogov commented 1 year ago

Closing due to inactivity.