ERROR: Created Date in the future

Problem

The user sees a “Created Date in the future” error when syncing any offline created record back to Salesforce.

Example

The error will look something like this:

doSoapRequest: create . . . Error(ERROR TYPE) field (FieldName) description (Create Date(Date) in the future.: Created Date) ----- doCreate response -----
Created Date Error log example Edited.png

Solution

First, the user should try to sync the device time with the server time and then try to generate the Service report again. Follow these steps to sync the device time:

  1. Go into Settings > Time & language > Date & time.

  2. Ensure the toggle for Set time zone automatically is set to On.

  3. Ensure the toggle for Set time automatically is set to On.

  4. Under Additional settings, click the Sync Now button to sync the time settings for the server: time.windows.com.

If that does not work, or the user does not have the option to sync the device time, Salesforce support provides a workaround to solve this issue. The workaround requires disabling the “Set Audit Fields upon Record Creation and Update Records with Inactive Owner’s” User Permissions.

Follow these steps to perform the workaround:

  1. Log into your Salesforce org as an administrator.

  2. Navigate to Setup.

  3. Navigate to User Interface.

  4. Uncheck the box next to Enable “Set Audit Fields upon Record Creation and Update Records with Inactive Owner’s” User Permissions.

  5. Click the Save button.