Loxy
2009-02-24 06:47:00 UTC
Hi,
I am facing a issue when creating a record of case(incident) entity?
error : 0x80040265 The given key was not present in the dictionary
the following is shown the simple code:
protected Guid CreateCaseRecord(CrmService crmService)
{
incident inc = new incident();
inc.description = " the description content";
inc.title = "ABC testing by 00012222";
inc.caseorigincode = new Picklist();
inc.caseorigincode.Value = 2;
inc.customerid = new Customer();
inc.customerid.type = EntityName.account.ToString();
inc.customerid.Value = new
Guid("80450C5E-7701-DE11-BC6D-0003FF4F593C");
Guid incGuid = crmService.Create(inc);
return incGuid;
}
but i have some times to create the record correctly, i am at a loss why it
failed.
I am facing a issue when creating a record of case(incident) entity?
error : 0x80040265 The given key was not present in the dictionary
the following is shown the simple code:
protected Guid CreateCaseRecord(CrmService crmService)
{
incident inc = new incident();
inc.description = " the description content";
inc.title = "ABC testing by 00012222";
inc.caseorigincode = new Picklist();
inc.caseorigincode.Value = 2;
inc.customerid = new Customer();
inc.customerid.type = EntityName.account.ToString();
inc.customerid.Value = new
Guid("80450C5E-7701-DE11-BC6D-0003FF4F593C");
Guid incGuid = crmService.Create(inc);
return incGuid;
}
but i have some times to create the record correctly, i am at a loss why it
failed.