none
Error: Could not complete the operation due to error 80020101

    Question

  • When I am trying to create a new record through ISV Button it is giving following error

    Error: Could not complete the operation due to error 80020101

     

    Previous to this I am getting following error

    null is! null is not an object and then

    Object doesn't support this property or method

     

    Thanks,

    Rajeev.

     

    Thursday, September 01, 2011 2:40 PM

Answers

  • Thanks every one,

     

    I could see the problem here, actually I were assigning the null values to field before update which resulted in this error

    You can see the condition for checking the null.

    var

    entityToUpd = new BusinessEntity("EntityName");

    if

     

    (fieldLogicalName!=null

    )

    {

    entityToUpd.attributes[

    "LogicalName"

    ] = fieldLogicalName;

    }

    service.Update(entityToUpd);

     
    • Marked as answer by CRM Rajeev Tuesday, September 06, 2011 9:02 PM
    Tuesday, September 06, 2011 9:02 PM

All replies