jsn

How to remove spaces with Calculate field in ArcCatalog Model

Discussion created by jsn on Dec 1, 2010
Latest reply on Dec 2, 2010 by negeise
Hi all

I am trying to remove spaces from a string using model builder in ArcCatalog and I wrote the following in the Calculate Field, field experssion:  !W.TCIS_GIS.PREM_TYPE!.strip()


It shows the following error message:


Executing (Calculate Field): CalculateField PremisePoints_Layer PremisePoints.PREMTYPE " !WASD.TCIS_GIS.PREM_TYPE!.strip() " PYTHON # PremisePoints_Layer
Start Time: Wed Dec 01 15:37:55 2010
ERROR 000539: Error running expression:  "TWNHOUSE".strip()  <type 'exceptions.IndentationError'>: unexpected indent (<string>, line 1)
Item not found in this collection.
Failed to execute (Calculate Field).
End Time: Wed Dec 01 15:38:00 2010 (Elapsed Time: 5.00 seconds)

Outcomes