AnsweredAssumed Answered

Why can't I save a JSON locally with the arcgis python api

Question asked by ANS_pim on Jun 2, 2017
Latest reply on Jun 2, 2017 by ANS_pim

Really strange behaviour. When I create a replica of a file and set as data-format 'filegdb':

replica1 = flc.replicas.create(replica_name = "test", layers='0', data_format='filegdb', out_path='/Users/username/Desktop')
print(replica1)

I get:

 

/Users/...username.../Desktop/b60ff113bc944907bd37ce33ced3f22b.zip

and file appears on Desktop.
However, when I change data_format to 'json' or when I delete the line (since JSON is default) the result is:

 

 

{'transportType': 'esriTransportTypeUrl', 'URL': 'http://services7.arcgis.com/...code.../ArcGIS/rest/services/...name.../FeatureServer/replicafiles/a21d42fdfbd440e698d4646f48442e4a.json'}

And no file appears on Desktop. What can go wrong here? I use the default and follow: Checking out data from feature layers using replicas | ArcGIS for Developers 

 

Extract and Sync are on, I check that beforehand.

Outcomes