AnsweredAssumed Answered

Get data sources that are used by ArcGIS Server map services with Python (Alex Tereshenkov)

Question asked by KevinBellSLC on Dec 1, 2016
Latest reply on Dec 5, 2016 by JQuinn-esristaff

Paging Alex Tereshenkov!  I'm trying to run your script located here:

Get data sources that are used by ArcGIS Server map services with Python | Tereshenkov's Blog 

 

but I'm getting an error when I get to here:

 

def get_connection(data):
    '''return database connection string for the service'''
    return data['SVCManifest']['Databases']['SVCDatabase']['OnPremiseConnectionString']

 

Error:

TypeError: list indices must be integers, not str

 

Any ideas?  This looks very useful!

Outcomes