I have a python script that was adapted from update-hosted-feature-service/update.py at master · arcpy/update-hosted-feature-service · GitHub that uses an oracle table instead of the ini file to loop through AGOL updates. The table has the AGOL name, the mxd name, tags etc.that is updates but. It works fine when there are no spaces on the AGOL side but fails in the def publish(self) section on line 230 when there are spaces in AGOL. So for example if I have Bike Racks as BikeRacks on AGOL, it will run. I am pretty sure it is a simple error but I can seem to see it.
Line 230: return jsonResponse['services'][0]['serviceItemId']
---------------------------
Error
---------------------------
KeyError: 'services'
---------------------------
OK
---------------------------
Oracle table:

AGOL:
