Select to view content in your preferred language

ArcPY Replica

1350
10
Jump to solution
01-29-2018 11:33 AM
MauricioRamirez1
Emerging Contributor

I have two ArcGIS servers running on Linux with and Oracle instance on each.  The GIS servers sit behind a 3rd party hardware load balancer and each server has a feature service layer allowing edits.  Since we're sitting behind the load balancer, we don't know which server we will hit and as such need to replicate the data from one instance to the other.  I can manually push the changes but I need a way to push those changes automatically.  I was thinking an ArcPY script could be helpul so I used the model builder and then exported that to a python script.  The model runs fine, but the script won't run.  I get a runtime error 999999 Error Executing function.  There is a reference to a line in the file 

import arceditor

Also arceditor.py line 18, gp.setProduct("ArcEditor")

Tags (2)
0 Kudos
10 Replies
JakeSkinner
Esri Esteemed Contributor

Hi Mauricio,

I ran into this issue recently working with a customer.  Delete the reference to arceditor.  For example comment or delete the lines:

import arceditor

gp.setProduct("ArcEditor")

You will just need the statement "import arcpy" and the script will most likely work.

0 Kudos