I am following this course https://www.esri.com/training/Engine/defaultui/player/modern.html?configuration=ReturnUrl%7C&preventRightClick=False&cc=en-US&ieCompatibilityMode=none&cache=20.1.10.206&playerConfUrl=%2Ftraining%2FEngine%2FPlayerConfiguration.aspx®istration=InstanceId%7C0%21LearningObjectId%7C5ea8aaf023e3e30f8d209960-107113%21UserId%7CHamzaM_ITECHS&package=LearningObjectId%7C5ea8aaf023e3e30f8d209960-107113%21VersionId%7C5&tracking=True&forceReview=False on esri academy in the Data Engineering section at the last part time stamped 12:46 which is to convert the data to a spatial feature class to be able to visualize it on the map on arcgis pro i get this error.
@JayantaPoddar @DanPatterson @DavidPike @jcarlson @DanLee @JoshuaBixby @Scott_Harris @TomBole
Thank you. We are investigating a change to the ArcGIS API for Python's to_featureclass function that might have resulted in an issue with this workflow.
The problem is that null rows in the spatially-enabled dataframe are not being processed. An intermediate workaround is to drop rows with null values:
out_2016_fc = data_2016_df.dropna().spatial.to_featureclass(os.path.join(fgdb, out_2016_fc_name))
Hey @AlbertoNieto1, is there an update on a fix for this? My current work-around is to supply dummy values where a [SHAPE] is null.
Hello Alberto,
- What version of ArcGIS Pro are you using?
2.8.1
- What version of the ArcGIS API for Python do you have installed in ArcGIS Pro?
1.8.5
Did you install the ArcGIS API for Python separately from ArcGIS Pro?
I created a clone environment the installed it using python cmd with this code:
conda install -c esri arcgis
Hi HamzaM,
Sorry to hear about the problem. I was able to reproduce the error on my side, and we are working on a solution to the problem.
To help us confirm some details, could you please let me know:
(to check, select the "Project" menu at the top-left corner of ArcGIS Pro...
... then check the Python option, select Installed Packages, then select arcgis:
- Did you install the ArcGIS API for Python separately from ArcGIS Pro?
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.