I have a hosted feature layer in AGO with 53 sub-layers that was published from ArcGIS Pro 3.1. After publishing, I changed some of the field aliases in Pro, then overwrote the hosted feature layer from the same Map and aprx project. Now all of the sublayers show "No Data Found" when I try to view the data in AGO of any of the sub-layers.
If I publish the layer as a new item in AGO, all is normal for all of the sublayers with data showing properly. This seems to be an issue with overwriting an existing hosted feature layer.
Has anyone experienced this when overwriting a hosted feature layer ?
Solved! Go to Solution.
I resolved this by deleting the feature layer from AGO, and re-publishing from Pro. Now when I subsequently overwrite the feature layer, all of the data in the sublayers appears to remain intact. I'm guessing there was something corrupted with the original item in AGO.
Did you remember to enable the "Allow assignment of unique numeric IDs for sharing we layers" first?
If not, and anything changed, the layers could all have new id's, and existing maps will try to load this by the id. If not the same, can get the No Data Found errors.
R_
Thank you for the suggestion. Yes, the "Allow assignment of unique numeric IDs" option was checked, and all the layer IDs remained the same.
I resolved this by deleting the feature layer from AGO, and re-publishing from Pro. Now when I subsequently overwrite the feature layer, all of the data in the sublayers appears to remain intact. I'm guessing there was something corrupted with the original item in AGO.
This happens eventually to all of the hosted feature layers I publish that have relationship classes. It's very frustrating. And unfortunately I do not want to delete the item and then republish because I don't want to alter the item ID in AGOL. Many maps and apps reference this item. Any suggestions?
I resolved this without having to publish an entirely new item by doing the following steps: