<?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: Publish agol feature service from a JSON featurecollection in ArcGIS Online Developers Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-developers-questions/publish-agol-feature-service-from-a-json/m-p/395661#M474</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems I actually did have a problem with the featureCollection JSON. I was missing the OBJECTID field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The service is now created, but, as i said before, there are two Feature Services created, one with the layer I specified in my featurecollection JSON, and another that contains no layers. Just an empty FeatureService.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea why this might be?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Jul 2014 00:54:39 GMT</pubDate>
    <dc:creator>jamieeyre</dc:creator>
    <dc:date>2014-07-30T00:54:39Z</dc:date>
    <item>
      <title>Publish agol feature service from a JSON featurecollection</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/publish-agol-feature-service-from-a-json/m-p/395659#M472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to publish a feature service to agol over the rest api (java command line application) using the "publish" end point. I am using a JSON featurecollection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I make the call to publish, the result in agol is two feature services with the same name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One of the feature services has a layer, and this layer is always inaccessible, and the other featureservice has no layer and is just broken. I have checked the featurecollection json, and it looks fine. I do not get any error back from the rest response. Is there anyway i can look at some log files from agol to see what is going wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, is this the wrong approach? I was thinking that maybe I should use the createService end point, and then maybe the addFeatures end point, but i don't see an endpoint for creating a layer in the service.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Jamie &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2014 15:28:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/publish-agol-feature-service-from-a-json/m-p/395659#M472</guid>
      <dc:creator>jamieeyre</dc:creator>
      <dc:date>2014-07-29T15:28:04Z</dc:date>
    </item>
    <item>
      <title>Re: Publish agol feature service from a JSON featurecollection</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/publish-agol-feature-service-from-a-json/m-p/395660#M473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I try to access the created featurelayer, I get the following error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ffaaaa; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 14px;"&gt;Layer 'xxxxxxx' does not exist or is inaccessible.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2014 15:45:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/publish-agol-feature-service-from-a-json/m-p/395660#M473</guid>
      <dc:creator>jamieeyre</dc:creator>
      <dc:date>2014-07-29T15:45:30Z</dc:date>
    </item>
    <item>
      <title>Re: Publish agol feature service from a JSON featurecollection</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/publish-agol-feature-service-from-a-json/m-p/395661#M474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems I actually did have a problem with the featureCollection JSON. I was missing the OBJECTID field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The service is now created, but, as i said before, there are two Feature Services created, one with the layer I specified in my featurecollection JSON, and another that contains no layers. Just an empty FeatureService.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea why this might be?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2014 00:54:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/publish-agol-feature-service-from-a-json/m-p/395661#M474</guid>
      <dc:creator>jamieeyre</dc:creator>
      <dc:date>2014-07-30T00:54:39Z</dc:date>
    </item>
  </channel>
</rss>

