Arcgis Online python api featureset export issue

1072
1
Jump to solution
02-20-2020 07:15 AM
OisinSlevin
New Contributor III

Hi guys, 

I'm having an issue with converting a result of a query to  arcgis online to an sdf

it responds with this error :

Exception: An error occurred with exporting the FeatureSet with message: 'NoneType' object has no attribute 'update'

 

current code - :

query_result=a_feature_layer.query(where="some query")

sdf_object=query_result.sdf

Ive looked at the features in the query and geometries and fields look fine 

any suggestions?

0 Kudos
1 Solution

Accepted Solutions
OisinSlevin
New Contributor III

Solution used as_df=True in the query to get an sdf directly from arc instead of converting

query_result=a_feature_layer.query(where="some query",as_df=True)

View solution in original post

0 Kudos
1 Reply
OisinSlevin
New Contributor III

Solution used as_df=True in the query to get an sdf directly from arc instead of converting

query_result=a_feature_layer.query(where="some query",as_df=True)

0 Kudos