Hi All,
There is a network dataset (SMP 2025R2) in Enterprise Geodatabase. I execute the script for create a mobile map package.
import arcpy
import datetime
def get_datetime() -> str:
return datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S')
in_project = r'D:\test_0128\mmpk_test.aprx'
aprx = arcpy.mp.ArcGISProject(in_project)
mapx = aprx.listMaps()[0]
print(f'{get_datetime()}\tStart CreateMobileMapPackage.')
try:
arcpy.management.CreateMobileMapPackage(
in_map=mapx,
output_file=r"D:\test_0128\T2\northamerica.mmpk",
in_locator=None,
area_of_interest=None,
extent='-21814765.8637 -9761502.39781242 21960991.6959 25523078.0673124 PROJCS["WGS_1984_Web_Mercator_Auxiliary_Sphere",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Mercator_Auxiliary_Sphere"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",0.0],PARAMETER["Standard_Parallel_1",0.0],PARAMETER["Auxiliary_Sphere_Type",0.0],UNIT["Meter",1.0]]',
clip_features="SELECT",
title="Map",
summary="",
description="",
tags="",
credits="",
use_limitations="",
anonymous_use="STANDARD",
enable_map_expiration="DISABLE_MAP_EXPIRATION",
map_expiration_type="ALLOW_TO_OPEN",
expiration_date=None,
expiration_message="This map is expired. Contact the map publisher for an updated map.",
select_related_rows="KEEP_ALL_RELATED_ROWS",
reference_online_content="EXCLUDE_SERVICE_LAYERS"
)
print(f'{get_datetime()}\tCompleted CreateMobileMapPackage.')
print(arcpy.GetMessages())
finally:
print(get_datetime())
After 2 days, I got the ERROR and the pi (why is pi?).

Could anyone explain the error messages for ERROR 001824? I cannot find the error code in arcgis pro 3.5 Help.

Thanks,
Leo
ArcGIS Pro Version: 3.5.0
ArcGIS Enteprise Geodatabase: SQL Server 2022