AnsweredAssumed Answered

ArcGIS Python API not showing private layer

Question asked by j.buchtaesri-de-esridist Employee on Sep 13, 2016
Latest reply on Sep 15, 2016 by bixb0012

I'm trying to display data of a private Feature Service, I acutally just created right before. The data is not shown on the map. If I change the Feature Service to be public, the data displays just fine.

Anyone experienced the same behavior?


Kind Regards



import getpass
pw = getpass.getpass()
from arcgis.gis import *
gis = GIS('', 'MyUsername', pw)
csvitem = gis.content.add({}, 'Fluege.csv')
csvlyr = csvitem.publish(None, {'City':'Ort'})
map ='Deutschland', zoomlevel=5)
# CSV Data not shown yet..

# CSV Data shown..