After much frustration reading vague documentation and getting obscure errors I managed to create a GeoPackage using ArcMap v10.6.1 and import features into it.
I was very happy until I discovered that no metadata is being imported along with the features. The GeoPackage is meant to be a modern replacement for shapefiles, but without metadata I can't use it.
Does anyone know how to get the metadata to transfer along with the features?
The procedure I use at the moment is:
Create an empty .gpkg file using ArcToolbox > Data Management Tools > Workspace > Create SQLite Database, and selecting Spatial Type = GEOPACKAGE. This only needs to be done once as a copy of the empty .gpkg file can be made outside of ArcGIS whenever one is needed.
Open the layer you want to convert to a GeoPackage
In the catalog window, navigate to the .gpkg file, right-click, and select Import > Feature Class (single)..., which opens a dialog box.
In the Input Features field, select the layer you want to convert. The Output Location field should already be populated with the still-empty .gpkg file. Enter an arbitrary name in the Output Feature Class field. Then click OK. A new window should appear showing the progress of the copy operation.
If you get an unhelpful error saying it didn't succeed, check that you have at least standard (ArcEditor) licence activated. It doesn't work with the basic (ArcView) licence.
Click the Close button once the operation is complete. Note that ArcMap keeps a lock on the .gpkg file meaning you can't move or do many other things with it until you close the ArcGIS application completely.
Now when I right-click the freshly created layer under the .gpgk file and select Item Description, I get an error saying "The item's XML contains errors" where the metadata should be.