Select to view content in your preferred language

Packaging a project requires a developer license?

484
1
04-02-2020 06:44 PM
MattWilkie1
Occasional Contributor III

I'm trying to package a project. In Pro I've run "Package Project" wizard and fixed all the warnings and errors that [Analyze] showed. After pressing [Package] it runs for several minutes and then fails with a generic "General function failure". Here's the contents of the log file (emphasis mine):

E:\Packages\ENV.461\Locale-contours.ppkx 12 ProjectPackage 2020-04-02 17:29:45 Status: InProgress StatusMessage: Successfully wrote sharing info file
E:\Packages\ENV.461\Locale-contours.ppkx 12 ProjectPackage 2020-04-02 17:29:51 Status: InProgress StatusMessage: Creating thumbnail from map
E:\Packages\ENV.461\Locale-contours.ppkx 12 ProjectPackage 2020-04-02 17:29:51 Status: InProgress StatusMessage: About to start the external packaging process
E:\Packages\ENV.461\Locale-contours.ppkx 12 ProjectPackage 2020-04-02 17:29:51 Status: Pending StatusMessage: Sharing process started
E:\Packages\ENV.461\Locale-contours.ppkx 12 ProjectPackage 2020-04-02 17:29:53 Status: InProgress StatusMessage: Sharing process started
E:\Packages\ENV.461\Locale-contours.ppkx 12 ProjectPackage 2020-04-02 17:29:53 Status: InProgress StatusMessage: Successfully obtained a license from the licensing portal
E:\Packages\ENV.461\Locale-contours.ppkx 12 ProjectPackage 2020-04-02 17:30:00 Status: InProgress StatusMessage: Reading thumbnail from file
E:\Packages\ENV.461\Locale-contours.ppkx 12 ProjectPackage 2020-04-02 17:30:00 Status: InProgress StatusMessage: Packaging in progress
E:\Packages\ENV.461\Locale-contours.ppkx 12 ProjectPackage 2020-04-02 17:30:00 Status: InProgress StatusMessage: Creating a project package and saving it locally
E:\Packages\ENV.461\Locale-contours.ppkx 12 ProjectPackage 2020-04-02 17:30:00 Status: InProgress StatusMessage: Compiling packaging parameters
E:\Packages\ENV.461\Locale-contours.ppkx 12 ProjectPackage 2020-04-02 17:30:00 Status: InProgress StatusMessage: Initiating the packager
E:\Packages\ENV.461\Locale-contours.ppkx 12 ProjectPackage 2020-04-02 17:30:00 Status: InProgress StatusMessage: The project package tool has started
E:\Packages\ENV.461\Locale-contours.ppkx 12 ProjectPackage 2020-04-02 17:33:44 Status: Failed StatusMessage: General function failure ErrorMessage: General function failure
E:\Packages\ENV.461\Locale-contours.ppkx 12 ProjectPackage 2020-04-02 17:33:44 Status: Failed StatusMessage: Failed to package. ErrorMessage: Failed to package.

There's an older message here in the forums about packaging maps for ArcMap that said using arcpy sometimes shows more information. Sure enough, that's true here too:

My script:

import os
import arcpy
aprx = r"T:\ENV.461\Locale-contours.aprx"
outdir = r"E:\Packages\ENV.461"
outppk = os.path.join(outdir,
os.path.splitext(os.path.basename(aprx))[0] + '.ppkx')
print(f"Packaging {aprx} into {outppk}")
p = arcpy.mp.ArcGISProject(aprx)
arcpy.PackageProject_management(p.filePath, outppk, 'INTERNAL')
print(arcpy.GetMessages())‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍

and results:

Packaging T:\ENV.461\Locale-contours.aprx into E:\Packages\ENV.461\Locale-contours.ppkx

Licensed For Developer Use Only

Traceback (most recent call last):

File "T:\ENV.461\scripts\package-project-01.py", line 14, in <module>

'INTERNAL')

File "C:\ArcGIS\Pro\Resources\ArcPy\arcpy\management.py", line 10142, in PackageProject

raise e

File "C:\ArcGIS\Pro\Resources\ArcPy\arcpy\management.py", line 10139, in PackageProject

retval = convertArcObjectToPythonObject(gp.PackageProject_management(*gp_fixargs((in_project, output_file, sharing_internal, package_as_template, extent, apply_extent_to_arcsde, additional_files, summary, tags, version, include_toolboxes, include_history_items, read_only, select_related_rows), True)))

File "C:\ArcGIS\Pro\Resources\ArcPy\arcpy\geoprocessing\_base.py", line 511, in <lambda>

return lambda *args: val(*gp_fixargs(args, True))

arcgisscripting.ExecuteError: ERROR 999999: Something unexpected caused the tool to fail. Contact Esri Technical Support (http://esriurl.com/support) to Report a Bug, and refer to the error help for potential solutions or workarounds.

Failed to execute (PackageProject).

The Packaging help page says this tool is available for all license levels. 

Do you one of you wizards know how to find out what's really going on or should I open a support case?

Tags (1)
0 Kudos
1 Reply
DanPatterson_Retired
MVP Emeritus

Maybe the tool in ArcToolbox needs to be used.

Apparently some button doesn't work, maybe scripting has an issue

BUG-000128803: The Share Project Package button consistently fails,.. 

then there are a bunch of others not quite as related I think,... just sort by Newest to Oldest instead of Relevant

https://support.esri.com/en/Search-Results#search?q=Package%20Project&content-type=Bugs

0 Kudos