locked
an unexpected error when insert entity in CRM RRS feed

  • Question

  • Hi, i want insert to entity use windows form, and i use crmservice.execute(request)

    i got error "0x80040216
      An unexpected error occurred.
      Platform"

    please give me an advice.

    Regards,
    - kamal -
    Thursday, March 11, 2010 1:10 PM

Answers

  • Hi all,

    Ali Khan, i've always use that try catch to get error.

    Thank you for respond, i've been found an error, this is cause wrong data type to insert a customer data type.

    Thank You
    • Marked as answer by MuhammadKamal Monday, March 15, 2010 8:51 AM
    Monday, March 15, 2010 8:51 AM

All replies

  • Have you tried debugging your code? Or tracing the error using the Diagnostic Tool ?
    Friday, March 12, 2010 1:34 PM
  • Hi,
    Can u paste your code here for investigation.
    Also catch the soap exception to see what is the detail error, like this.

    try{

    crmService.Execute(request);
    }
    catch(SoapException ex)
    {
       string detailedException = ex.Detail.ToString();
    }
    Muhammad Ali Khan
    My MS CRM blog
    Friday, March 12, 2010 2:16 PM
  • Hi all,

    Ali Khan, i've always use that try catch to get error.

    Thank you for respond, i've been found an error, this is cause wrong data type to insert a customer data type.

    Thank You
    • Marked as answer by MuhammadKamal Monday, March 15, 2010 8:51 AM
    Monday, March 15, 2010 8:51 AM