<ErrorCode>-2147220960</ErrorCode>
<ErrorDetails xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
<Message>Principal user (Id=fc3a7e74-b2b9-e511-93f5-00155d04942f, type=8) is missing prvOverrideCreatedOnCreatedBy privilege (Id=d48cf22f-f8c2-4e16-89eb-49f8281de4ea)</Message>
<Timestamp>2016-06-21T06:42:53.2293492Z</Timestamp>
<InnerFault i:nil="true" />
<TraceText>
An error occurred while copying the entity in the previous period.
But do not want to assign permissions, and finally found a property in debugging: Overriddencreatedon
If you remove it, you will not get an error.
retrieve.Attributes.Remove("overriddencreatedon");
retrieve["ownerid"] = new EntityReference("systemuser", context.UserId);
//Remove the parent record id of the retrieved associated record
retrieve.Attributes.Remove(childEntity.ParentFieldName);
retrieve.Attributes.Add(childEntity.ParentFieldName, cloneCourseEntity.ToEntityReference());
TracingService.Trace("create the cloned record" +childEntity.EntityName);
retrieve.Id = service.Create(retrieve);
[Dynamic Crm] missing prvoverridecreatedoncreatedby privilege