I'm having real trouble with getting a script to run in notebook to simply remove spaces from a field.
item=gis.content.get('528e3960da004561999c50dcaa52a781')
l=item.layers[0]
print(l.calculate(where="OBJECTID > 0",
calc_expression={"field": "test2", "sqlExpression": "Replace(test2," ","")"}))
This fails and upon further investigation the REPLACE SQL function is not supported. So I need a python script to run and remove spaces in a hosted feature layer's field. The reason why is a long story but this has to be running at least every 30 minutes 24/7, for the extent of COVID.. The field I am trying to remove spaces from is called test2. If I can get something to work then ill use the code on the actual feature layer.
I pretty much have no idea what I am doing with notebook.