Error while retrive service call. RRS feed

  • Question

  • Hi I am trying to make service.Retrive() call on case entity. we are using MS CRM 2015 On-Premsie. plugin is  registered on SandBox  and it's on post update message

    I get this below error message.

    incident With Id = 677f1a2d-d557-e611-80f1-005056a65615 Does Not Exist.

    I validated, the case with this GUID does exist..

    it's simple retrieve call !!

    Entity currentCase = service.Retrieve(case.LogicalName, case.Id, new ColumnSet(true));

    Tuesday, October 25, 2016 9:01 AM

All replies

  • Hello,

        Have you verified that your service variable is pointed and connected to the correct CRM environment? How is it doing that? If that is verified, try turning on plugin tracing (I'm assuming this is a plugin) and adding some trace calls in your code to see what is happening and what values are being set.

    Tuesday, October 25, 2016 8:28 PM
  • Yes.. Service variable is pointed to right CRM environment. I could debug the plugin I get the error when debugger hits Service.Retrieve(),  Just out of curiosity, I commented out everything form the plugin except for this  one retrieve call, still I got the same error. 
    Wednesday, October 26, 2016 3:25 AM
  • Are you using the correct GUID ?

    Try the following: open the case record then view the GUID within the url. 

    Are they the same ? If not check your code.

    Wednesday, October 26, 2016 11:53 AM
  • yes they are same !!! I checked the GUID  of the record manually and while debuging in the code both are same.. not sure what's really happening..
    Wednesday, October 26, 2016 12:18 PM
  • I am just wondering is the case object referring your plugin context target entity? See the case.LogicalName on debug.
    Thursday, October 27, 2016 11:29 AM