function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Shruti Sharan GShruti Sharan G 

Getting Error while inserting Records from List

Can anyone Help in Removing below error:
INVALID_FIELD_FOR_INSERT_UPDATE, cannot specify Id in an insert call:
andresperezandresperez

The ID field for an sObject is generated by the system. You should not assign a value to it when inserting a row. 



Message Edited by andresperez on 01-16-2009 01:41 PM