1
Vote

error 0x80040265 during create Account entity

description

Weird - the account is created in the CRM systen / CRMDiagtool shows successfully created:
 
SOAP Request completed successfully:
Url:http://localhost:5555/MSCrmServices/2007/CrmService.asmx
MethodName:Create
.
 
XrmHelpers.cs
 
        //Create
        entityId = service.Create(de);
 
"\n 0x80040265\n The Owner id does not exist\n Platform\n"
 
My Code:
 
[XrmEntity("account")]
public class Client : IXrmEntity
{
// [XrmFieldMapping("accountid", CrmType = AttributeType.PrimaryKey)]
    public Guid Id { get; set; }
 
// [XrmFieldMapping("ownerid", CrmType = AttributeType.Owner)]
// public Guid OwnerId { get; set; }
 
    [XrmFieldMapping("name")]
    public string Name { get; set; }
 
Here is the Save:
 
                Guid AccountId = crmService.Save(new Client()
                {
                    Name = dr["Name"].ToString(),
                    Description = dr["Client_id"].ToString(),
                    Telephone = dr["Phone_1"].ToString(),
 
Can you Help ?

comments