Hello @Diana_Muresan I saw the blog One-way feature service-to-feature service sync and do the following workflow. However, The replica ID from the source service not same as replica ID with target service.
I have published source and target service however, I don't see the property of "supportRegisterReplicaForServer : true" as you show in the blog, In my service show the SyncCapability shown below
And I try to create Replica for both source and target service using registerReplicaForServer, however the Replica ID of source and target does not MATCH
The config of create replica for my source service as below
The Replica with source ID is D97CA10C-E80C-4931-8627-51E27F6D7EE4
The config of create replica for target source service as below. which I put the Replica Source ID to target also
Ensure My config feature service with source and target show as below
So the questions is
Thank you,
Mike
Solved! Go to Solution.
Hi @midmike,
The first thing I want to confirm is that the source and the target feature classes are stored in two different enterprise geodatabases. This is a necessary requirement for this workflow.
From the screenshots you provided there seem to be a couple issues with the functions syntax, that might cause the replica pair to be created.
You can use any online tool to generate the UNIX epoch time in milliseconds, then add the value for the ServerGen parameter.
A clear indicator that the operation was successful is that in the response, you will get a URL to a json file that stores all the replica information. Here is an example of a correct response: "https://.....esri.com/server/rest/directories/arcgisoutput/MapServer/_ags_fs24fff2cba933432d96a9bcdcdac16860.json"
Additional resources:
I would recommend to check out the ArcGIS Enterprise: Feature Service Sync Workflows technical session. If you jump to minute 42, it takes you directly to a step-by-step demo on creating replicas using the Rest API. This will bring more clarity into the syntax format you need use.
Here is the Create Replica and Synchronize Replica ArcGIS REST APIs documentation.
In the One-way feature service-to-feature service sync blog I added a copy of a sample script that goes through the entire workflow automatically. Add into the script your feature services then run the script. The script creates a replica pair then synchronizes any changes. This is a much faster and efficient way to do this workflow.
Best,
Diana
Hi @midmike,
The first thing I want to confirm is that the source and the target feature classes are stored in two different enterprise geodatabases. This is a necessary requirement for this workflow.
From the screenshots you provided there seem to be a couple issues with the functions syntax, that might cause the replica pair to be created.
You can use any online tool to generate the UNIX epoch time in milliseconds, then add the value for the ServerGen parameter.
A clear indicator that the operation was successful is that in the response, you will get a URL to a json file that stores all the replica information. Here is an example of a correct response: "https://.....esri.com/server/rest/directories/arcgisoutput/MapServer/_ags_fs24fff2cba933432d96a9bcdcdac16860.json"
Additional resources:
I would recommend to check out the ArcGIS Enterprise: Feature Service Sync Workflows technical session. If you jump to minute 42, it takes you directly to a step-by-step demo on creating replicas using the Rest API. This will bring more clarity into the syntax format you need use.
Here is the Create Replica and Synchronize Replica ArcGIS REST APIs documentation.
In the One-way feature service-to-feature service sync blog I added a copy of a sample script that goes through the entire workflow automatically. Add into the script your feature services then run the script. The script creates a replica pair then synchronizes any changes. This is a much faster and efficient way to do this workflow.
Best,
Diana