Hi Loretta,
It's a little hard to debug with just the error you provided; given the line number, it's the statement:
outRow = jRow["attributes"]
If that's the case, it sounds like the the previous line has not created an object from the data part of the row stored as a string. Line 19 should be
jRow = json.loads(json.loads(row[1]))
you might try wrapping another json.loads() around. One way to find if you're on the right track is to do a
print jRow statement and observe what it looks like
Below are examples of what the print statement returns as the program converts the data into into an object; it needs to look like the last one :
row[1]:
"{\"attributes\":{\"note1\":\"6\",\"stationid\":\"31003\",\"numbikes\":\"6\",\"bikesreported\":5,\"numbroken\":3},\"geometry\":{\"spatialReference\":{\"wkid\":4326},\"x\":-77.049593,\"y\":38.86017,\"z\":null}}"
-----------------
json.loads(row[1]):
{"attributes":{"note1":"6","stationid":"31003","numbikes":"6","bikesreported":5,"numbroken":3},"geometry":{"spatialReference":{"wkid":4326},"x":-77.049593,"y":38.86017,"z":null}}
-----------------
json.loads(json.loads(row[1])):
{u'geometry': {u'y': 38.86017, u'x': -77.049593, u'z': None, u'spatialReference': {u'wkid': 4326}}, u'attributes': {u'note1': u'6', u'stationid': u'31003', u'numbroken': 3, u'bikesreported': 5, u'numbikes': u'6'}}
If you further assistance debugging, I'd suggest opening a technical support case- it would be a bit easier than to debug remotely via GeoNet.