Hello everyone, I have an error while exporting my layer to ArcGis Online telling that it doesn't contain a required layer type, its a .lyrx, I tried to add another layer with a required type as recommended in the ArcGis manual but it does't work. Can someone explain me how to fix it ? The layer is attached to this message, I'll be gratefull if you share it and send it to me, it is a job to be returned to the university and it is urgent.
Export it to ArcGIS Online? How are you managing that? There are only two ways that I know of to host a feature layer in ArcGIS Online.
1. Choose "hosted" when publishing the feature layer to AGOL as a feature service.
2. Export the feature class to a shapefile, zip up the shapefile contents to a .zip folder, then upload the .zip folder as an item to ArcGIS Online.
I tried the two ways, but the problem is that the layer isn't an shp or a csv or a gpk it's actually a lyrx, I have received it this way so my question is : is it possible to export this kind of data to ArcGIS Online if yes, how? Or, how to convert a lyrx layer to an shp ?
Thank you for your reply
Typically a .lyrx, has source data. After you pull the .lyrx into Pro, try right-clicking on it in the table of contents then choose "Data" then choose "Export Features". In the "Export Features" wizard window, change the "Output Location" to a folder and then the "Output Name" to a .shp (example: <yourfeaturename>.shp), then click "OK". This should export the layer file to a shape file. Make sure you check the newly created shapefile to make sure it has records.
Based on the error report, here is the suggestion:
Try exporting the layer file to a feature class in a file geodatabase then export that feature class as a shapefile.
Alternatively, you can zip up file geodatabases and upload them as hosted features to ArcGIS Online as well. But I prefer the zipped shapefile method.