
We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.
The OwnerId field is used to associate an Event with a public calendar in Salesforce. It is not currently possible to move an Event from one public calendar to another public calendar by updating OwnerId via Data Loader.
Attempting to update an existing Event's OwnerId from one calendar to another results in the error: "invalid cross reference id" or "INVALID_CROSS_REFERENCE_KEY".
As a workaround, export the existing Events, update the OwnerId in the export file to the new calendar's Id, reinsert the Events as new records, and then delete the original Events.
To transfer Events between public calendars in Salesforce, you cannot directly update the OwnerId field via Data Loader. Instead, follow this four-step process: export the existing Events, update the OwnerId to the new calendar's ID, insert them as new records, and delete the originals.
Using Data Loader 45 or above, export from the Calendar object to gather a list of Public Calendar IDs.
Example export query: SELECT Id, Name FROM Calendar WHERE Type = 'Public' AND IsActive = True
Note: As a best practice, perform at least one full export including all fields to retain a backup of the original Event records.
Important: Use Insert — not Update or Upsert — as Update will result in the 'invalid cross reference id' error.
Once the new Event records are confirmed in the target calendar, delete the original Events to avoid duplicates.
000387135