<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: ArcPy vs ArcGIS Python API for uploading data to local ArcGIS Server? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/arcpy-vs-arcgis-python-api-for-uploading-data-to/m-p/7959#M658</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Might be a terminology thing, but can you explain what you mean by syncing data to the ArcGIS Server?&amp;nbsp; I assume you mean you're interseted in syncing data to a file geodatabase or somewhere else on the ArcGIS Server machine, and that data is then published to Server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Personally, I'd say that the arcpy module is best suited for that, as you can take advantage of GP tools to sync such as &lt;A href="http://desktop.arcgis.com/en/arcmap/latest/tools/data-management-toolbox/truncatetable.htm"&gt;truncate&lt;/A&gt; and &lt;A href="http://desktop.arcgis.com/en/arcmap/latest/tools/data-management-toolbox/append.htm"&gt;append&lt;/A&gt;, or using the &lt;A href="http://desktop.arcgis.com/en/arcmap/latest/tools/data-management-toolbox/an-overview-of-the-distributed-geodatabase-toolset.htm"&gt;Distributed Geodatabase toolset.&lt;/A&gt; I don't think the Python API allows you to do that, but I may be wrong.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Jan 2018 21:36:44 GMT</pubDate>
    <dc:creator>JonathanQuinn</dc:creator>
    <dc:date>2018-01-24T21:36:44Z</dc:date>
    <item>
      <title>ArcPy vs ArcGIS Python API for uploading data to local ArcGIS Server?</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-vs-arcgis-python-api-for-uploading-data-to/m-p/7957#M656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am tasked with&amp;nbsp;integrating information from a different data collection system&amp;nbsp;into a client's existing ArcGIS Server (local server running version 10.2). Eventually, I will rewrite the data collection system to directly use the ArcGIS Server as a backend, but for now I am writing a Python script that will run every night and sync the data to the ArcGIS Server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm a bit stuck on the difference between using ArcPy or the ArcGIS Python API tool available from Esri. Which one is better suited for my task at hand?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Sanders&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jan 2018 20:32:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-vs-arcgis-python-api-for-uploading-data-to/m-p/7957#M656</guid>
      <dc:creator>MatthewSanders1</dc:creator>
      <dc:date>2018-01-24T20:32:00Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy vs ArcGIS Python API for uploading data to local ArcGIS Server?</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-vs-arcgis-python-api-for-uploading-data-to/m-p/7958#M657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Matthew,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What type of data are you working with?&amp;nbsp; If possible, you can simply update the feature class the service is created from.&amp;nbsp; As long as the database this feature class is stored in is registered with ArcGIS Server you won't have to do anything.&amp;nbsp; The service will update automatically.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jan 2018 21:35:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-vs-arcgis-python-api-for-uploading-data-to/m-p/7958#M657</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2018-01-24T21:35:18Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy vs ArcGIS Python API for uploading data to local ArcGIS Server?</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-vs-arcgis-python-api-for-uploading-data-to/m-p/7959#M658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Might be a terminology thing, but can you explain what you mean by syncing data to the ArcGIS Server?&amp;nbsp; I assume you mean you're interseted in syncing data to a file geodatabase or somewhere else on the ArcGIS Server machine, and that data is then published to Server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Personally, I'd say that the arcpy module is best suited for that, as you can take advantage of GP tools to sync such as &lt;A href="http://desktop.arcgis.com/en/arcmap/latest/tools/data-management-toolbox/truncatetable.htm"&gt;truncate&lt;/A&gt; and &lt;A href="http://desktop.arcgis.com/en/arcmap/latest/tools/data-management-toolbox/append.htm"&gt;append&lt;/A&gt;, or using the &lt;A href="http://desktop.arcgis.com/en/arcmap/latest/tools/data-management-toolbox/an-overview-of-the-distributed-geodatabase-toolset.htm"&gt;Distributed Geodatabase toolset.&lt;/A&gt; I don't think the Python API allows you to do that, but I may be wrong.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jan 2018 21:36:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-vs-arcgis-python-api-for-uploading-data-to/m-p/7959#M658</guid>
      <dc:creator>JonathanQuinn</dc:creator>
      <dc:date>2018-01-24T21:36:44Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy vs ArcGIS Python API for uploading data to local ArcGIS Server?</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-vs-arcgis-python-api-for-uploading-data-to/m-p/7960#M659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Matthew,&lt;/P&gt;&lt;P&gt;You didn't indicate whether you had trolled through the&lt;STRONG&gt;&lt;A href="http://esri.github.io/arcgis-python-api/apidoc/html/"&gt; API Reference for the ArcGIS API for Python&lt;/A&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;As Jonathan indicated, if it isn't there, you will have to examine your Arctoolbox Tool useage&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jan 2018 22:32:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-vs-arcgis-python-api-for-uploading-data-to/m-p/7960#M659</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-01-24T22:32:02Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy vs ArcGIS Python API for uploading data to local ArcGIS Server?</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-vs-arcgis-python-api-for-uploading-data-to/m-p/7961#M660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your reply! I was brought on near the end of a project that revolves around ArcGIS. Unfortunately, I have no experience with, or prior knowledge of, GIS, ArcGIS, or any of its components. Being new to the subject, I don't fully understand the terminology, so I apologize for the confusion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was given the task of taking information from our proprietary data collection system&amp;nbsp;and 'exporting' it to a client's existing ArcGIS Server (their server is running ArcGIS v10.2). So basically, I am pulling data from our database and adding it to the client's ArcGIS database. It seems like a relatively simple goal, but&amp;nbsp;learning&amp;nbsp;my way around&amp;nbsp;ArcGIS in a short period of time&amp;nbsp;is a heck of a pill to swallow and I am left with many questions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let's say their server has a service called "roads" and it has a feature layer called "signs" which holds the geolocation and information about every road sign in the state.&amp;nbsp;I need to write a python script which can accept new data and enter it into the client's ArcGIS server. I thought it would be simple, but I am out of my element and could use a point in the right direction. It seems like some people use arcpy, but the website makes ArcGIS API for Python look like the recommended option.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jan 2018 23:27:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-vs-arcgis-python-api-for-uploading-data-to/m-p/7961#M660</guid>
      <dc:creator>MatthewSanders1</dc:creator>
      <dc:date>2018-01-25T23:27:03Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy vs ArcGIS Python API for uploading data to local ArcGIS Server?</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-vs-arcgis-python-api-for-uploading-data-to/m-p/7962#M661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I second&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/16548"&gt;Jonathan Quinn&lt;/A&gt;&amp;nbsp; suggestions of sticking with arcpy for this and to use the database tools and append. &amp;nbsp;You may need to do some prep work from the collection table to get it to be in the right format to append. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do you know what database is being used for the ArcGIS Server service? (Sorry if you mentioned it and I missed it)&lt;/P&gt;&lt;P&gt;i like to use file geodatabases (fgdb) v's an enterprise database (e.g. ArcSDE for SQL or Oracle). &amp;nbsp;Even if you are updating a "master" database using an enterprise, you can export to a fgdb and run the service using that. &amp;nbsp;I recommend stopping the service, updating the file and restarting the service, although there are other ways to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i would first take a copy of the target file and get the appending of new data figured out. &amp;nbsp;If you have issues with the arcpy syntax, make sure to pull and &amp;lt;passwords&amp;gt; or other secure items out, and post the code using &lt;A href="https://community.esri.com/people/curtvprice/blog/2014/09/25/posting-code-blocks-in-the-new-geonet?sr=search&amp;amp;searchId=8411050e-9e9c-49af-8fa5-2bcd107d823a&amp;amp;searchIndex=6"&gt;https://community.esri.com/people/curtvprice/blog/2014/09/25/posting-code-blocks-in-the-new-geonet?sr=search&amp;amp;searchId=8411050e-9e9c-49af-8fa5-2bcd107d823a&amp;amp;searchIndex=6&lt;/A&gt;‌ so others can help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jan 2018 01:06:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-vs-arcgis-python-api-for-uploading-data-to/m-p/7962#M661</guid>
      <dc:creator>RebeccaStrauch__GISP</dc:creator>
      <dc:date>2018-01-26T01:06:49Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy vs ArcGIS Python API for uploading data to local ArcGIS Server?</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-vs-arcgis-python-api-for-uploading-data-to/m-p/7963#M662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not positive what database is being used for the ArcGIS Server service, but I will check.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a question which may clear up some of my confusion:&lt;/P&gt;&lt;P&gt;Do I add data to the server via the ArcGIS Server's API, or do I have to add data directly to the database?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my experience with other systems, the server has an API which accepts the data, cleans/processes it, and then adds it to the database - you never directly touch the database yourself. Is this how ArcGIS works? Or do I need to access the database and add the data that way?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jan 2018 16:39:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-vs-arcgis-python-api-for-uploading-data-to/m-p/7963#M662</guid>
      <dc:creator>MatthewSanders1</dc:creator>
      <dc:date>2018-01-26T16:39:18Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy vs ArcGIS Python API for uploading data to local ArcGIS Server?</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-vs-arcgis-python-api-for-uploading-data-to/m-p/7964#M663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply! I have a question that may help clear up my confusion...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To add data to the ArcGIS Server, do I use an ArcGIS API, or do I add directly to the database it reads from? As I explained in another comment, my past experience is dealing with systems that have an API which accepts the data and then adds it to the database for you - you never directly touch the database yourself. Although now I'm starting to think with ArcGIS I need to add the data to the ArcGIS database itself and not go through ArcGIS Server's API.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To be more clear, let's say I have 3 servers, "MyDatabaseServer", "ArcGISDatabaseServer", and "ArcGISServer"&lt;/P&gt;&lt;P&gt;My original understanding is that I would pull data from MyDatabaseServer, give it to ArcGISServer, and ArcGISServer would push the data to ArcGISDatabaseServer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But now I'm wondering if I was looking at it wrong, and that I actually need to pull data from MyDatabaseServer and manually add it to the database on ArcGISDatabaseServer, and that ArcGISServer will update itself using the data I added to the ArcGISDatabaseServer database. Is that correct?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jan 2018 16:50:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-vs-arcgis-python-api-for-uploading-data-to/m-p/7964#M663</guid>
      <dc:creator>MatthewSanders1</dc:creator>
      <dc:date>2018-01-26T16:50:11Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy vs ArcGIS Python API for uploading data to local ArcGIS Server?</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-vs-arcgis-python-api-for-uploading-data-to/m-p/7965#M664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Generally, an organization will have a database that is hosted on a separate machine from their ArcGIS Server instance. That database will be &lt;A href="http://enterprise.arcgis.com/en/server/latest/publish-services/windows/overview-register-data-with-arcgis-server.htm"&gt;registered to ArcGIS Server as a data store&lt;/A&gt; and you'll build map documents using the data.&amp;nbsp; Then, you'll &lt;A href="http://enterprise.arcgis.com/en/server/latest/publish-services/windows/how-to-publish-a-service.htm"&gt;publish the map document to ArcGIS Server&lt;/A&gt; and the Server will simply retrieve data from the database directly to respond to any requests for the service. If data is being used in a service and it's updated within the database, those changes will be honored within the service.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jan 2018 17:56:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-vs-arcgis-python-api-for-uploading-data-to/m-p/7965#M664</guid>
      <dc:creator>JonathanQuinn</dc:creator>
      <dc:date>2018-01-26T17:56:39Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy vs ArcGIS Python API for uploading data to local ArcGIS Server?</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-vs-arcgis-python-api-for-uploading-data-to/m-p/7966#M665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, that's exactly what I needed to know, thank you. So I need to be connecting to the organization's database server and adding information directly to their database. That clears up a whole lot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in theory, if my database's data is already formatted correctly for the client's database, I wouldn't even need arcpy or ArcGIS API for Python, I'd just need to insert it into the database?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jan 2018 18:59:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-vs-arcgis-python-api-for-uploading-data-to/m-p/7966#M665</guid>
      <dc:creator>MatthewSanders1</dc:creator>
      <dc:date>2018-01-26T18:59:33Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy vs ArcGIS Python API for uploading data to local ArcGIS Server?</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-vs-arcgis-python-api-for-uploading-data-to/m-p/7967#M666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, keep things simple. If your clients database is accessible to ArcGIS Server, simply register the database as a data store and publish maps using data from the database.&amp;nbsp; If your clients database is not accessible to ArcGIS Server, (different network, etc), then you may have to think about replication techniques like replicas or truncating and appending data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jan 2018 19:54:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-vs-arcgis-python-api-for-uploading-data-to/m-p/7967#M666</guid>
      <dc:creator>JonathanQuinn</dc:creator>
      <dc:date>2018-01-26T19:54:29Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy vs ArcGIS Python API for uploading data to local ArcGIS Server?</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-vs-arcgis-python-api-for-uploading-data-to/m-p/7968#M667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That sounds like how they currently have it set up. Before adding to their database, do I need to stop the MapService then start it back once the data transfer is done? Or is that unnecessary?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for the help, it is greatly appreciated!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jan 2018 21:04:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-vs-arcgis-python-api-for-uploading-data-to/m-p/7968#M667</guid>
      <dc:creator>MatthewSanders1</dc:creator>
      <dc:date>2018-01-26T21:04:28Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy vs ArcGIS Python API for uploading data to local ArcGIS Server?</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-vs-arcgis-python-api-for-uploading-data-to/m-p/7969#M668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As long as you use a method that doesn't affect the schema of the data, (update fields, add domains/subtypes, etc), there's no need to stop and start the service after updating the data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jan 2018 21:17:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-vs-arcgis-python-api-for-uploading-data-to/m-p/7969#M668</guid>
      <dc:creator>JonathanQuinn</dc:creator>
      <dc:date>2018-01-26T21:17:24Z</dc:date>
    </item>
  </channel>
</rss>

