Convert MPK to MMPK

101
5
2 weeks ago
Highlighted
New Contributor II

Hi

I Need to convert existing MPK file to MMPK.

when i try to importDocument i get OSError.

this is the script:

p = arcpy.mp.ArcGISProject(r"path to aprx")
p.importDocument(r"Path to mpk")

 

is this correct?

 

Edit: I've tried using CreateMobileMapPackage directly, it worked but only part of the mpk was converted to mmpk with the script:

arcpy.management.CreateMobileMapPackage([mpkFileInputPath], mmpkOutputFilePath)

whats the right way converting mpk to mmpk?

 

any advice will be appreciated

Reply
0 Kudos
5 Replies
Highlighted
MVP Regular Contributor

Under the Useage section of create-mobile-map-package , there are some listed limitations.  Do any apply to you?


... sort of retired...
Reply
0 Kudos
Highlighted
New Contributor II

well after few tries in arcgis pro, i found the problem is the default extent, 

even when i configure the extent as Union of inputs it wont fix the problem, 

the only thing that helped is configuring the extent manually,

any idea why?

Reply
0 Kudos
Highlighted
MVP Regular Contributor

Were the data all in the same coordinate system to begin with?


... sort of retired...
Reply
0 Kudos
Highlighted
New Contributor II

yep, its  mpk with 12 layers of a city, with WGS 1984 coordinate system

Reply
0 Kudos
Highlighted
MVP Regular Contributor

No reported bugs... one of life's mysteries then


... sort of retired...
Reply
0 Kudos