English
Bug Number BUG-000100491
Submitted Oct 31, 2016
Modified Jun 11, 2020
Severity Medium
Applies To ArcGIS Pro
Version Found No Version Found
Prog Language N/A
Server Platform N/A
Client Platform N/A
Database N/A
Locale N/A
Status Implemented
Version Fixed 2.2
SP Fixed N/A

Bug BUG-000100491

Synopsis

In the Create Vector Tile Package tool documentation, the 'CURRENT' keyword in CreateVectorTilePackage example 1 is not a valid input map.


Additional Information

N/A


Alternate Solution

The following code works:


p = <a href="http://arcpy.mp" target="_blank">arcpy.mp</a>.ArcGISProject("CURRENT")

m = p.listMaps("MAP_NAME")[0]

arcpy.CreateVectorTilePackage_management(<a href="http://m.name" target="_blank">m.name</a>, <a href="http://m.name" target="_blank">m.name</a> + '.vtpk', "ONLINE")


This code uses ArcGISProject to access the current project with the CURRENT keyword, and then use listMaps to call the map within the project.


Please refer to BUG-000098329 for more information regarding using map name instead of map as in_map parameter of the CreateVectorTilePackage function.