You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Unable to cast object of type 'generatedProxy_3' to type 'Microsoft.PowerPlatform.Dataverse.Client.IOrganizationServiceAsync' #219
Using Microsoft.PowerPlatform.Dataverse.Client 0.5.10
I got an Azure function with a Blob trigger that parses the blobs and writes to Dynamics 365 CE. Was working fine until the frequency of Blobs uploaded increased drastically. First I was seeing the error
Unable to cast object of type 'generatedProxy_2' to type 'Microsoft.PowerPlatform.Dataverse.Client.IOrganizationServiceAsync'
We have refactored some of the client code in this upcoming release to see if we can lock this down. or at least give us a better understanding of where the type is getting lost.
MattB (@MattB-msft) I still occasionally got the error "Unable to cast object of type 'generatedProxy_2' to type 'Microsoft.PowerPlatform.Dataverse.Client.IOrganizationServiceAsync'", The version of Microsoft.powerplatform.dataverse.client is 0.6.1. Could you give me some suggestion how to fix this error. Thanks
Activity
Dashulol commentedon Dec 16, 2021
Setting UseWebApi = false drastically reduced the issue, Did not fully resolve, Now I'm seeing generatedProxy_2 again.
MattB-msft commentedon Dec 18, 2021
Sascha (@Dashulol) can you link a repro of your use case? that would help us understand what is happening as it sounds like a threading issue.
MattB-msft commentedon Feb 17, 2022
We have refactored some of the client code in this upcoming release to see if we can lock this down. or at least give us a better understanding of where the type is getting lost.
should be in the next update.
sdhz236 commentedon Mar 26, 2022
MattB (@MattB-msft) I still occasionally got the error "Unable to cast object of type 'generatedProxy_2' to type 'Microsoft.PowerPlatform.Dataverse.Client.IOrganizationServiceAsync'", The version of Microsoft.powerplatform.dataverse.client is 0.6.1. Could you give me some suggestion how to fix this error. Thanks