Arcpy PackageMap_management Not Outputting Same File Size as ArcGIS Desktop Share As Map Package

59
1
07-22-2020 10:49 AM
JeffPickles2
New Contributor

Friendly GeoNet, 

I have an Arcpy script that creates an MXD and subsequently exports that MXD as an MPK. When I run the script, the output MPK file is 8 MB in size. 

If I open that same MXD in ArcGIS Desktop and package the map manually using the defaults. the output MPK file is 2 MB. 

The code I am using to package is: 

arcpy.PackageMap_management(mpktarget, output, 'PRESERVE', 'PRESERVE_ARCSDE', 'DISPLAY')

My question is: What are the best settings to use in Arcpy to replicate the Share As Map Package manual tool in ArcGIS Desktop? 

If my code above is indeed the correct settings, where should I look to trim that additional 6 MB from the script output? 

0 Kudos
1 Reply
DanPatterson
MVP Notable Contributor

Package Map—Data Management toolbox | Documentation 

any reason you don't want things save to a gdb? how much sde stuff?

and some of the other options.... do things need to be saved for all version? or just the current?

There are loads of options and comparing to arcmap may not be the fairest or easiest comparison since Pro has a lot of differences and your desired content may not be treated equally between the platforms  


... sort of retired...
0 Kudos