C# Code · D365 Error · Dynamics Plugins

{Dynamics CRM Error} The formatter threw an exception while trying to deserialize the message

Today while working on one of the queryexpression code in my project I faced this issue. Error Details Message=The formatter threw an exception while trying to deserialize the message: There was an error while trying to deserialize parameter http://schemas.microsoft.com/xrm/2011/Contracts/Services:request. The InnerException message was ‘Error in line 1 position 1836. Element ‘http://schemas.microsoft.com/2003/10/Serialization/Arrays:anyType’ contains data from a…… Continue reading {Dynamics CRM Error} The formatter threw an exception while trying to deserialize the message

Advertisement

Customization and Configuration · D365 Error

{Dynamics 365} Minimum privilege required for Lead qualification

In this blog I will discuss about the minimum privilege required for Lead Qualification. As we already know when we qualify a Lead record Opportunity, Account and Contacts gets created in system. We have different scenarios which will be applicable for any project requirement when we talk about Lead qualification The lead is owned by…… Continue reading {Dynamics 365} Minimum privilege required for Lead qualification

D365 Error · Dynamics 365 WEB API

{Dynamics 365 WEB API} Can’t query date values bug fixed

Microsoft Dynamics 365 Web API Limitations This issue was not actually limitation, just a syntax issue. Don’t use single quotes when specifying a date as value for a filter. When querying a date property, such as the birthdate of a contact, the following query syntax works. /contacts?$select=fullname,birthdate&$filter=birthdate eq 1990-01-01 Microsoft Dynamics 365 Web API Limitations…… Continue reading {Dynamics 365 WEB API} Can’t query date values bug fixed

D365 Error · Dynamics CRM Javascript · Javascript

Dynamics CRM Javascript Error Cannot read property ‘getFormContext’ of undefined

If you are getting “Cannot read property ‘getFormContext’ of undefined” error, please make sure that you check “Pass execution context as first parameter” checkbox in the event handler properties. Random Javascript code to Hide Quote sungrid on Oppotunity based on Two option field Requirement Forum link – https://community.dynamics.com/365/sales/f/dynamics-365-for-sales-forum/394826/locking-ability-to-create-quote-until-required-approvals-met/1065876#1065876 function HideQuoteTab(executionContext) { alert(“Triggered”); var _formContext=executionContext.getFormContext(); if(_formContext.getAttribute(“new_approved”).getValue()…… Continue reading Dynamics CRM Javascript Error Cannot read property ‘getFormContext’ of undefined

D365 Error · Dynamics 365 WEB API

{Alternate Key Limitation}Performing updates using alternate key in Dynamics 365 WebAPI

While updating CRM record using alternate key from Web API which has unicode character in field data, It throws Bad request exception. new_ANGLESector@odata.bind”: “/new_anglesectors(new_name=’Water Auth/Company’)”, Exception message”: “Bad Request – Error in query syntax.”, “type”: “Microsoft.OData.ODataException”, “stacktrace”: ” at Microsoft.OData.UriParser.ODataPathParser.ExtractSegmentIdentifierAndParenthesisExpression(String segmentText, String& identifier, String& parenthesisExpression) Unicode characters in key value If the data within a…… Continue reading {Alternate Key Limitation}Performing updates using alternate key in Dynamics 365 WebAPI

C# Code · D365 Error · Dynamics 365 WEB API

{Dynamics CRM WEB API C#} Parse Error Code and Message from HttpResponse

While I was working on Web API C# code, I found that many calls to CRM web api was failing and I could only see status code and reason phrase which was not much helpful. I knew that CRM web api returns the exact error message in response and verified that too from postman. I…… Continue reading {Dynamics CRM WEB API C#} Parse Error Code and Message from HttpResponse

D365 Error · Dynamics 365 WEB API · Dynamics CRM Javascript · Javascript

Dynamics CRM 365 WEB API Common Errors and Resolution

While working with Dynamics CRM web api we may get different exceptions. I have compiled list of common error and their resolution based on my experience working on recent projects Error – An error occurred while validating input parameters: Microsoft.OData.ODataException: Does not support untyped value in non-open type. POST – https://CRMORG.api.crm.dynamics.com/api/data/v9.1/leads { “firstname”: “Jenny”, “lastname”:…… Continue reading Dynamics CRM 365 WEB API Common Errors and Resolution

D365 Error

Dynamics 365 Error #2 Object reference not set to an instance of an object

As Microsoft Dynamics developer, We came across this error regularly in our day to day life. Problem Description:-  “Object reference not set to an instance of an object” There could be multiple reason we come across this issue. However below are few things which can be looked at to fix this issue and save your…… Continue reading Dynamics 365 Error #2 Object reference not set to an instance of an object

D365 Error

Dynamics CRM 365 Error ‘The Given Key is not present in dictionary’

As a Dynamics CRM developer we always come across the error saying that ‘The Given Key is not present in dictionary’. The reason we receive this error message because of below issues:- When we try to get the attribute value from Entity object without checking the attribute. String AccountNumber=objAccount[“accountnumber”];   The above line will throw error…… Continue reading Dynamics CRM 365 Error ‘The Given Key is not present in dictionary’