Archive for August 1, 2011

“$ is undefined” error while calling OData Service using JQuery & CRM 2011

August 1, 2011 1 comment


In CRM 2011, you might have experienced “$ is undefined” error, while calling OData Service using JQuery.

Reason’s: –

  • JQuery native support is not available in Microsoft CRM 2011.
  • This was the exact reason why the Javascript was unable to recognize ‘$’ symbol.


The easiest way to get this working is by creating a new “Webresource”  and adding “Jquery min” file to it.

Steps to follow :-

  1. Go to and then to Download the Jquery file  (i.e., jquery-1.6.2.min.js)
  2. find the latest Jquery min (select the minified version, at the time of writing ‘jquery-1.6.2.min.js‘ was the latest)
  3. Now go to CRM 2011 and create a web resource
  4. Add the new Web resource by name JQueryMin1.6.2 (JQuryMin<Verion>)
  5. Upload the Downloaded file to JQuery to this web resource.
  6. Now add this web resource to which ever form you want to use JQuery API

Hope this helps 🙂

[Async_ExceptionOccurred] error with “CRM 2011 OData Query Designer”

ODataQueryDesinger_Async Issue

   When you try to run “CRM 2011 OData Query Designer” tool, you may come up with the “Asynchronous Error” as above.

Reason: –

  • This is the Silver light Cross – Domain issue (Since, OData Query Designer built using Silver Light)
Fix: –
  • Instead of using “http://localhost/org_name/main.aspx” to browse the CRM application,
  • Browse with “Computer Name” i.e., “http://computername/org_name/main.aspx”
Hope it Helps 🙂