New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FeatureLayerCollectionManager insert_layer() fails with unknown error #1814
Comments
@knoopum The goal is to take the hosted feature layer and append it to your empty service and then remove that hosted service so you are left with the correct result. What seems to be happening in the code is that when the Thanks for reporting |
@knoopum |
@nanaeaubry correct, the feature class in file geodatabase is empty. I was trying to say that the file geodatabase contains a single feature class, which is of type point, rather than one point's worth of data in the feature class :) |
@knoopum Ok cool I didn't read that correctly my bad :) But we put in a small fix for the insert layer but the error remains and I wonder if it's because the file geodatabase is empty? When I try with a fgdb that has data in the same workflow as above (create empty feature service first), I don't get the error. |
@knoopum is this on online or enterprise? If enterprise, what version? |
@achapkowski this is ArcGIS Online |
@knoopum so it's not a Python API issue, it's actually an AGO Rest issue. We can get the same behavior from the GUI. Can you please open a support case? |
@achapkowski to verify for the support case, what is the error I should be reporting for AGO? If I use the zipped file geodatabase attached to this thread, and go to my Content --> New item --> uploaded the zip file from my computer --> change the File type to File geodatabase --> add and create hosted feature layer, then I do not observe an error in the GUI. The end result is as expected, a hosted feature layer containing a point layer, and the latter has the desired fields, editor tracking and attachments enabled, and no data, as expected. |
@knoopum |
I have successfully created an empty feature service with create_empty_service(). When attempting to add a layer to it with insert_layer, using a file geodatabase containing a single point feature class, it returns "Exception: Unknown Error (Error Code: 500)".
Inspecting the uploaded File Geodatabase and its resulting feature layer (hosted), they both look fine. And, when I examine the empty feature service, it does now have the expected layer in it. If I add it to map and add some points, it appears to be behaving correctly.
So I'm wondering what the error is about, and wether I should trust the feature service is correctly functional.
I've attached a zipped Notebook and File Geodatabase which can be used to reproduce the issue:
This is with ArcGIS API for Python version: 2.2.0.1
The text was updated successfully, but these errors were encountered: