laptop and a wrench

漏洞

Metadata fields such as Summary and Tags specified in the Create Map Tile Package tool are not written to the output .tpkx package.

ArcGIS Pro
漏洞 ID 编号 BUG-000175450
已提交March 31, 2025
上次修改时间June 24, 2025
适用范围ArcGIS Pro
找到的版本3.4.2
操作系统Windows OS
操作系统版本10.0 64 Bit
状态In Review

解决办法

Tested a Python Notebook workaround that creates the .tpkx and immediately adds metadata via arcpy.metadata.Metadata().

  1. In ArcGIS Pro, on the Analysis tab, click Python.
  2. A new notebook opens. In the first cell, paste and run:
    1. import arcpy
    2. import os
  3. In the next cell, paste the script below, adjusting the paths and metadata values where applicable:

map_path = r"C:\Path\To\Your\Project.aprx" 

map_name = "Map"  

output_tpkx = r"C:\Path\To\Output\MyTilePackage.tpkx"

summary = "Summary"

tags = "tag, test, bug"

title = "Title For Map"

description = "This is a tile package"

 

aprx = arcpy.mp.ArcGISProject(map_path)

map_obj = aprx.listMaps(map_name)[0]

arcpy.management.CreateMapTilePackage(map_obj, "ONLINE", output_tpkx, summary=summary, tags=tags)

 

if arcpy.Exists(output_tpkx):

  metadata = arcpy.metadata.Metadata(output_tpkx)

  metadata.title = title

  metadata.summary = summary

  metadata.tags = tags

  metadata.description = description

  metadata.save()

  print(f"Tile Package created and metadata added: {output_tpkx}")

else:

  print("Failed to create tile package.")

重现步骤

漏洞 ID: BUG-000175450

软件:

  • ArcGIS Pro

当漏洞状态发生变化时获得通知

下载 Esri 支持应用程序

发现关于本主题的更多内容

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项