CRM 2015 SDK : The deserializer has no knowledge of any type that maps to this name

一世执手 提交于 2019-12-05 23:33:56

Not 100% what the issue is but I would suggest trying the following to see if it helps.

  1. Regenerate your proxy, it might be a case that your proxy is out of date which is why the deserializer has no knowledge of any type that maps to this name.

  2. Try using late bound just to see if that works, help to narrow things down if there is a problem in the early bound code. For example:

Entity account = new Entity("account"); account.Id = new Guid(""); account["new_link"] = "your value"; service.Update(account);

  1. Break point the code and see what values are being updated on the account objects, e.g. make sure another attribute doesn't have an odd value.

Also the problem might be unknown types. It's important to enable proxy types on OrganizationServiceProxy. It solved my issue with similar error

using (OrganizationServiceProxy proxy = new OrganizationServiceProxy(organizationUri, null, credentials, null))
{
   proxy.EnableProxyTypes();
}

I will share my solution to this problem, when using own created WCF services, which are using generated models from CRM.
When referencing the WCF service in other project using VS 2017, there are some options in the Add Service Reference window: press "Advanced..." and uncheck Reuse types in referenced assemblies

Hope it helps someone.

I have solved this problem by updating the referece Microsoft.Xrm.Tooling.Connector It turned out that I was using an older version which did not match with others SDK references, but it did not crash when building the program.

You can use NuGet to get that assembly. This is the project's URL: https://docs.microsoft.com/es-es/dotnet/api/microsoft.xrm.tooling.connector?view=dynamics-xrmtooling-ce-9

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!