Auto-update map service in ArcGIS 10.1

1901
3
Jump to solution
05-14-2013 01:33 AM
SunilPalkar
Occasional Contributor
Hello All,

I just want to know that is it possible to publish service from certain interval (say 2 hour)

Reason: I am using ArcGIS Server & DT 10.1 and Sql Server 2008 R 2. My data base is updating hourly and I am unable to view updated points in my map (those points are coming in.mxd but after overwriting service I am able to view those points on map)

It is impossible to overwrite service every hour. I researched on Google and Web help (I have seen ArcGIS ADMIN API + ArcPy+FAQ) but unable to find solution for this problem even ESRI support people closed my ticket 😞

Therefore, any help will be great!

Thanks in advance : )
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
divyamgulati1
New Contributor III
Hi Sunil

Anthony is right. Changes to your data should be automatically reflected to your service. Anyway what you can do is publish .mxd which references the data in SDE using a python script. You can run the overwrite map service py script.
Refer this url:
http://resources.arcgis.com/en/help/main/10.1/index.html#//00540000001r000000

You can automate the running of this script in every 2 hours using windows task scheduler.

View solution in original post

0 Kudos
3 Replies
AnthonyGiles
Frequent Contributor
Sunil,

Could you explain in more detail why you need to overwrite your map service to see changes made to the data in the database. Changes to your data should be automatically reflected in your web applications.

Regards

Anthony
0 Kudos
divyamgulati1
New Contributor III
Hi Sunil

Anthony is right. Changes to your data should be automatically reflected to your service. Anyway what you can do is publish .mxd which references the data in SDE using a python script. You can run the overwrite map service py script.
Refer this url:
http://resources.arcgis.com/en/help/main/10.1/index.html#//00540000001r000000

You can automate the running of this script in every 2 hours using windows task scheduler.
0 Kudos
SunilPalkar
Occasional Contributor
@divyamg  Thanks for your link. My problem is resolved : ) .

Sorry for my late reply.. thanks once again : )

Hi Sunil

Anthony is right. Changes to your data should be automatically reflected to your service. Anyway what you can do is publish .mxd which references the data in SDE using a python script. You can run the overwrite map service py script.
Refer this url:
http://resources.arcgis.com/en/help/main/10.1/index.html#//00540000001r000000

You can automate the running of this script in every 2 hours using windows task scheduler.
0 Kudos