Publishing Spatially Enabled Dataframe using the to_featurelayer() Method Fails with a generic "job failed" error at 960 columns. We have tried running the same script with just the 960th column to rule that out, and the script ran successfully and produced no error. In AGOL, a shapefile and HFL are created, but when we click on the HFL, we get error "there was an error publishing this service."
Based on this, we believe that the error is occurring when the shp is being promoted to a HFL. We tested reimporting the generated shp to our AGOL contents and promoted it to a HFL by hand, and we got the same error. We can narrow down our script to this error. This is not a customization case, we need help identifying why this error is happening in our line of code. It could be a bug because it happens outside of the script as well.
Here is the line of code: sdf_buildings_merged.spatial.to_featurelayer('layername')
For your background, this is the last step of a workflow that involved merging non spatial data into this spatially enabled dataframe before publishing to AGOL.
@JamesCrandall @Kepa any insights would be appreciated 🙂