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
AlexPHPAlexPHP 

How to get "org replication enabled date"

I must be specifying a startDate for my replication functional call that's earlier than the enabled date and am getting this error:

  

INVALID_REPLICATION_DATE: startDate before org replication enabled date

  

How can I obtain the "org replication enabled date"?

Message Edited by AlexPHP on 03-05-2010 05:06 PM
Ajay K DubediAjay K Dubedi
Hi Alex,
When running the synchronization, Skyvia queries deleted data from Salesforce using the getDeleted() method. We pass the date and time of the previous synchronization to Salesforce to get data, deleted since this time. Salesforce allows getting the deleted data not older than 30 days from the current date. So, in case there were no previous synchronizations in this package or its LastSyncTime parameter is reset, we use the value of 30 days before the current date. However, if you created your org recently (e.g. 10 days ago), this causes an error, because the 'start date' cannot be older than the date of org creation. 
The recommended option is to wait when the 30 day period from the day of the creation of your Salesforce org ends and the problem will be solved by itself. 

and you can also refer to these links:

https://support.skyvia.com/thread/invalid_replication_date-startdate-before-org-replication-enabled-date/
https://github.com/jsforce/jsforce/issues/406
https://developer.salesforce.com/forums/?id=906F00000008kwpIAA
https://developer.salesforce.com/forums/?id=906F00000008nXQIAY


I hope this solution will help you. Mark, it as best answers if it helps.
Thanks.
Ajay Dubedi