locked
Unable to cast object of type Miscrosoft.crm.sdk.Lookup to type Miscrosoft.crm.sdk.key in MS CRM 2011 RRS feed

  • Question

  • Hi friends,

    I have updagrated the plug-in from MS CRM 4.0 to MS CRM 2011, I am getting the below error message.

    Unable to cast object of type Miscrosoft.crm.sdk.Lookup to type Miscrosoft.crm.sdk.key.

    Any help greatly appriciated!!

    Thanks,

    Srikanth Reddy

    Wednesday, September 26, 2012 4:19 PM

All replies

  • Hello Srikanth,

    the error itself seems quite self-explaining. It looks like you are trying to cast a Lookup field to a Unique-Identifier field in your code. But the only way to find the exact problem would be for you to post part of your plugin code here.

    Greetings,

    Pavlos


    Please mark this reply as answer if it helps you find a resolution to your problem.

    Sunday, October 7, 2012 11:30 AM