Answered by:
\n 0x80040203\n non primary key condition is not supported for customizable entities.\n Platform\n"

Question
-
Hi,
I am getting following error message when I try to update a custom date field in CRM 4 using crm service, I am using crmservice.update.
"\n 0x80040203\n non primary key condition is not supported for customizable entities.\n Platform\n"
Till yesterday this piece of code was working fine, my environment is CRM 4 with Rollup 8 and SQL 2008. Any ideas?Tuesday, February 9, 2010 10:49 AM
Answers
-
Strange behaviour...
Check this thread .
Truth is opened the prepared mind
My blog (english)
Мой блог (русскоязычный)- Marked as answer by Donna EdwardsMVP Monday, February 15, 2010 4:54 PM
Tuesday, February 9, 2010 11:33 AMModerator
All replies
-
Hi, Vaibhav.
Could you paste code you use here?
Truth is opened the prepared mind
My blog (english)
Мой блог (русскоязычный)Tuesday, February 9, 2010 11:09 AMModerator -
Hi Andriy,
Thanks for your interest, Here is the code for your reference:
CRM.contact contact = (from c in Qp.Linq<CRM.contact>() where c.emailaddress1 == email orderby c.createdon ascending select c).ToList()[0];
contact.tc_lastlogindatetime = new CRM.CrmDateTime()
{
Value = DateTime.Now.ToString(DateTimeFormatInfo.InvariantInfo.SortableDateTimePattern, DateTimeFormatInfo.InvariantInfo)
};
contact.ownerid.type = "systemuser";
(new CrmWebService()).Update(contact);- Edited by Vaibhav Tiwari Tuesday, February 9, 2010 11:21 AM a
Tuesday, February 9, 2010 11:19 AM -
Strange behaviour...
Check this thread .
Truth is opened the prepared mind
My blog (english)
Мой блог (русскоязычный)- Marked as answer by Donna EdwardsMVP Monday, February 15, 2010 4:54 PM
Tuesday, February 9, 2010 11:33 AMModerator -
Hi,
Try looking at this answer: http://social.microsoft.com/Forums/en/crmdevelopment/thread/0e8c7194-ec1a-417a-82c6-f824dfd82f0d
Henrik Jensen Instructor / Consultant MCP, MCAD, MCSD, MCTS, MCPD, MCITP, MBSS, MBSP, MCT www.crmblog.dk (Danish only)- Proposed as answer by Carla J Wednesday, February 17, 2010 8:13 AM
Wednesday, February 10, 2010 4:50 PM