So I think I have found a bug or issue with ArcGIS Pro 1.2. I was trying to create a layer package using a layer which contains a definition query. The Create Layer Package tool generates a General Function Error every time and so does the create Map Package tool. All the required metadata is entered for the layer and the analysis tool does not indicate a problem. If I export the layer with the definition query to a new feature class/layer that contains only the features that displayed using the definition query (basically removing the need for the definition query but now having two feature classes), the Layer Package is successful.
So is this a bug, the way it is suppose to work or me doing something wrong?
Can you provide a bit more information about your datasets? I was just able to apply a definition query to a feature class in a file geodatabase and export a layer package without any errors.
All data is stored in a File Geodatabase located on one of my local drives. The definition query is a bit complex. It includes multiple and statements with some grouped.
I do have ArcMap 10.3.1 installed on my computer. I have not tried to convert this particular layer to a layer package in ArcMap. However I created several layer packages last week using ArcMap without any issues.
Maybe you're right that there might be a big in ArcGIS Pro. Would it be worth uninstalling and reinstalling Pro? Or maybe performing a 'repair' install to see if that fixes the issue?