This is the error that I'm getting when I try to update a record. I can insert records ok.
System.Data.UpdateException: An error occurred while updating the entries. See the inner exception for details. ---> System.InvalidOperationException: A dependent property in a ReferentialConstraint is mapped to a store-generated column. Column: 'CreatedById'.
Error when updating a record
Re: Error when updating a record
1. Are you using plain ADO.NET or Entity Framework?
2. Please specify your update command (a small test project would be appreciated). If it envolves talking to non-default database objects, please describe the objects so that we can recreate them in our test schema. If necessary, our contact form is here: http://www.devart.com/company/contact.html.
3. Tell us the exact version (x.x.xxx) of your dotConnect for Salesforce.
2. Please specify your update command (a small test project would be appreciated). If it envolves talking to non-default database objects, please describe the objects so that we can recreate them in our test schema. If necessary, our contact form is here: http://www.devart.com/company/contact.html.
3. Tell us the exact version (x.x.xxx) of your dotConnect for Salesforce.
Re: Error when updating a record
Hello All,
Did anything ever come of this?
I'm getting the same error and am lost
Cheers,
Marty.
PS
Yes I have logged a call with support.
Did anything ever come of this?
I'm getting the same error and am lost
Cheers,
Marty.
PS
Yes I have logged a call with support.
Re: Error when updating a record
The Store Generated Pattern value for the OwnerId field should be 'Identity' because OwnerId is generated only on insert. Make sure that this setting is made in the Store (SSDL) part of the model.
The 'Computed' value means that the value will be generated on insert and modified on update. This is not the case for OwnerId.
The 'Computed' value means that the value will be generated on insert and modified on update. This is not the case for OwnerId.