- Instead of going through a server to publish an arcgis web service hosted layer, I want to go right from my local machine to AGOL so that my server is NEVER exposed.
- I want to eventually put this File GDB into Collector.
- I have credits to use, but not many.
I zipped the .gdb and uploaded it to my content. I then want to publish it, but before I do this how many credits will it use and will it reuse credits everytime I overwrite? What is the best way to manage a GDB (I need to coded value domains) in AGOL so I can access it on Collector, WITHOUT using a server?
Best Answer
My original question stemmed from my trials and errors. I wanted to know the credit usage because I tried to publish the FGDB one way and CVDs were not transferring for some reason. I have since found the reason that the CVDs did not publish (a bug of course). I have also found a solution. I have also found that this whole process is costing me essentially no credits (less than one).
a. ArcMap 10.2 has a bug. There are multiple ways to publish an entire database as a hosted service from the desktop to AGOL, however you have to do it one specific way in order for the coded value domains to upload properly. The steps are as follows:
i. Add all data to be published to ArcMap, remove all data that should not be published from ArcMap
ii. Symbolize everything appropriately
iii. BEFORE YOU PUBLISH: follow best practice for publishing and sharing on AGOL http://video.esri.com/watch/1702/arcgis-online-best-practices-for-publishing-and-sharing Some key points include:
Finalize schema
Make sure data is in Web Mercator Auxiliary Sphere projection
Be sure to include robust metadata
iv. Sign into AGOL from ArcMap: File> Sign In
v. Share as a service: File> Share As > Service
vi. Follow instructions in box depending on the database requirements
vii. From AGOL, sign in and navigate to the feature service in Content
viii. Edit the feature service to allow editing, delete protection, sync, and any other custom options necessary.
ix. Add feature service to map
Test to be sure that all CVDs work and that the feature service handles edits properly.
The feature service hosted on AGOL is now a separate entity from the database it was published from. In order to edit the feature service on AGOL, follow these steps:
a. Sign into AGOL from ArcMap: File> Sign In
b. Open the Catalog and navigate to My Hosted Feature Services
c. Add feature service to map
d. List the table of contents by drawing order
e. Right-click on the feature service name > Edit Features > Create Local Copy for Editing
f. Edit Features