Problem
Sometimes a user’s device has a system time which is out of sync with the server time. When this happens, the user will have an error in the log during a create request, such as while syncing a service report.
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 -----
Reason
This support ticket response explains why this happens:
Solution
The solution to this issue is to disable settings on the server and make sure the user’s device time is set automatically.
Salesforce Server Settings Changes
Disable the “Set Audit Fields upon Record Creation and Update Records with Inactive Owner’s” User Permissions by performing the following steps:
Log into your Salesforce org as an administrator.
Navigate to Setup.
Navigate to User Interface.
Uncheck the box next to Enable “Set Audit Fields upon Record Creation and Update Records with Inactive Owner’s” User Permissions.
Click the Save button.
User Device Settings Changes
Ensure the time zone and the time are set automatically and then synced by instructing the user to perform the following steps:
Go into Settings > Time & language > Date & time.
Ensure the toggle for Set time zone automatically is set to On.
Ensure the toggle for Set time automatically is set to On.
Under Additional settings, click the Sync Now button to sync the time settings for the server: time.windows.com.