RuntimeError: The Field type is invalid or unsupported for the operation.

810
4
Jump to solution
09-17-2019 01:05 AM
LinoSun
New Contributor III

When I use ArcGIS api for Python,there is an error appeared:RuntimeError: The Field type is invalid or unsupported for the operation..Whats wrong? Thanks.

0 Kudos
1 Solution

Accepted Solutions
EarlMedina
Esri Regular Contributor

Hi Lino,

I noticed at least one of those fields contains special characters. If you don't include that column (or any other column with special characters) dose the code run fine? I wonder if the problem is the encoding in the text...

View solution in original post

0 Kudos
4 Replies
EarlMedina
Esri Regular Contributor

Hi Lino,

Can you show us the previous lines that show what col is equal to?

-Earl

0 Kudos
LinoSun
New Contributor III

col = list(sedf.columns)

0 Kudos
EarlMedina
Esri Regular Contributor

Hi Lino,

I noticed at least one of those fields contains special characters. If you don't include that column (or any other column with special characters) dose the code run fine? I wonder if the problem is the encoding in the text...

0 Kudos
LinoSun
New Contributor III

I do not think the problem is the encoding in the text, because the problem is column "SHAPE", bu I do not know why it cause.

0 Kudos