|
POST
|
I removed one layer at a time and did the create MMPK until it completed without error. It was the "Route_Layer" which is a line feature layer in a file geodatabase. I have no idea what "definition" was needed, so I did follow the advice from the Tech Support AI BOT and exported the layer to a Shapefile. Then I used the Shapefile while creating the MMPK and it completed successfully. Wish I know what "definition" was needed so this layer functioned as expected.
... View more
08-02-2025
04:55 AM
|
0
|
0
|
244
|
|
POST
|
Yes, I enjoyed the "While this error can occur, it occurs so rarely that the typical causes have not been identified so no solution is available at this time." I'll use the feedback form to enter what I was doing. In the meantime, I'll remove one item at a time from the "Map" and try to create the MMPK until it completes and then I'll know the item. What "definition" it wants will be the next question....
... View more
08-01-2025
07:23 AM
|
1
|
0
|
265
|
|
POST
|
I'm using ArcGIS Pro 3.5.2 (and this was occurring at 3.5.1, but not prior version) and when I use the "Create mobile Map Package" I get the error: 160718: The item does not have a definition. The map has a vector tile cache (as a basemap layer), several feature layers, and a network dataset, a 3 tables. How in the world am I to determine which items does not have a "definition"? Also, I removed the network dataset and still got the error.
... View more
07-31-2025
02:03 PM
|
0
|
3
|
321
|
|
IDEA
|
I agree with @TD1 when will a solution be implemented? I used the AI bot in Esri Tech support yesterday, and it provided two solutions, both of which were incorrect. First, it said I can include an extent in my input, this is clearly false and is not value (I tried it of course). "Extent" is not valid for arcpy.management.CreateVectorTilePackage arcpy.management.CreateVectorTilePackage( input_map="Map", output_file="output.vtpk", service_type="ONLINE", extent="xmin ymin xmax ymax" # Specify extent here ) Second, it said I could update the map's extent property, this does not work either as I tried it. import arcpy # Reference the current ArcGIS Pro project aprx = arcpy.mp.ArcGISProject("CURRENT") # Access the first map in the project map_obj = aprx.listMaps("Map")[0] # Get the layer named "insert layer name" aoi_layer = map_obj.listLayers("Routing2")[0] # Retrieve the extent of the layer layer_extent = arcpy.Describe(aoi_layer).extent # Convert the extent object to a string extent_string = f"{layer_extent.XMin} {layer_extent.YMin} {layer_extent.XMax} {layer_extent.YMax}" print(extent_string) # Get the map's CIM definition map_cim = map_obj.getDefinition('V3') # Set the layer's extent as the map's default extent map_cim.defaultExtent = { "xmin": layer_extent.XMin, "ymin": layer_extent.YMin, "xmax": layer_extent.XMax, "ymax": layer_extent.YMax, "spatialReference": { "wkid": layer_extent.spatialReference.factoryCode } } # Apply the new definition to the map and save the project map_obj.setDefinition(map_cim) aprx.save() print("The map's default extent has been updated to match 'aoi_layer'.") Anyone have a workable solution??
... View more
07-13-2025
07:49 AM
|
0
|
0
|
1187
|
|
POST
|
No, I have not. I'm now at ArcGIS Pro 3.4 and thought perhaps a solution would be at this version. But I have not found one yet. Any luck on your end?
... View more
12-19-2024
06:51 AM
|
0
|
0
|
1325
|
|
IDEA
|
Why is this a problem??? Unless I am missing something, I need to set the "Extent" property of the map and save the project it before running a vector tile cache on it. It seems all suggested python code always errors. I need to set this via Python: Here is the python I am using: import arcpy # Reference the current project and map aprx = arcpy.mp.ArcGISProject("CURRENT") m = aprx.listMaps("Households Analysis")[0] # Replace "Map" with the name of your map # Get the AOI layer and its extent aoi_layer = m.listLayers("SchoolDistricts")[0] # Replace "AOI" with the name of your layer aoi_extent = aoi_layer.getExtent() # Set the map's extent to the AOI layer's extent m.defaultCamera.setExtent(aoi_extent) # Save the project if needed aprx.save() Below is the error I get, what am I missing?
... View more
12-18-2024
01:33 PM
|
0
|
0
|
2443
|
|
POST
|
I have adjusted the number of suggestions in the performance and getting more results. I am running ArcGIS Pro 3.03.
... View more
07-24-2024
07:30 AM
|
0
|
0
|
1219
|
|
POST
|
I was having difficulty getting units to work for an address search. The documentation does mention about having something like an existing or base feature (address). It does seem you must have one address point without the units info. But not only that, it must be the first record in the series for that address. If the "base" feature point is below (a higher value) then the others, in regards to ObjectID, it does not work at all. In order for units, etc. to display as a suggestion, you must configure suggestions for subunits: I have set this up for another area and not all candidates display. I think ArcGIS Pro locator only shows 5 suggestions. So, I am working thru that. But thought this would be more rock solid, and easy to implement, than it is.
... View more
07-22-2024
04:38 PM
|
0
|
2
|
1238
|
|
POST
|
OK, I believe this to be an ArcGIS Pro 3.x bug. If a line symbol has multiple layers and one of the layers is turned off, that feature does not render in the output tile cache (OR, the symbol layer turned off is white, and does render, but since it's white, it is not visible on a white background... I did not test this possibility). Once I delete the disabled symbol layer, the vector tile cache output rendered properly.
... View more
04-15-2023
05:01 AM
|
0
|
0
|
1598
|
|
POST
|
I have been using ArcGIS Pro to create vector tile caches for some time. A python script is copy/pasted to run the "create vector tile cache" for different subject areas. I have not changed the "map" I use to create the tile cache, but this week different feature not longer are being output into the cache. I have a roads layer and have different symbology based on road class....and also have alternative symbols based on scale. This is all in one layer. Now many of the features do not display as you zoom out. It's almost as if the alternate symbols by scale isn't working....but it is for some classes of roads. So, I split the layer into 3 layer (copy/paste) and remove the alternate symbols by scale and added a display scale to the layer. This still does not work. Just some notes...I was running v3.1 and upgraded to 3.1.1...so I uninstalled and reinstalled 3.1 and got the same results. What has broken???? My hunch is a data problem, but ran the isvalid command in SQL Server and all is fine. Note, the layers are native SQL Server spatial layers, NOT SDE. This is the "after" image where the ramp not longer display. The local roads (while fill) also disappear after zooming out a little more when they change to a single line. This is from a cache this week. AFTER: the ramps are missing This is the "before" image where the ramps are displaying. This is from a cache I built in early march. BEFORE: the ramps display Command in Python (varaibles are set earlier) and this does NOT error: arcpy.management.CreateVectorTilePackage(in_map=Input_Map, output_file=basemap_vtpk, service_type="ONLINE", tiling_scheme="", tile_structure="INDEXED", min_cached_scale=9244648.868618, max_cached_scale=564.248588, index_polygons="", summary="", tags="") Thanks!
... View more
04-14-2023
07:59 AM
|
0
|
1
|
1634
|
|
POST
|
I do have a question for you. In my layers list, I also need to include a network dataset. It's in the same FGDB. The feature dataset is "My_Network" and the network dataset is "My_Network_ND". I can't seem to figure out how to include this feature in my loop.
... View more
01-20-2023
01:01 PM
|
0
|
0
|
2313
|
|
POST
|
Dan, I thought I did try it without success. But I just tried it and it works! Thank you. I did: aprx = arcpy.mp.ArcGISProject("CURRENT")
m = aprx.listMaps("MMPK Output*")[0]
aoi = "PA_SCENTRAL"
LayerPath = ("D:\\Mobile Map Package Creator\\DEPLOYMENT_DATA_PACKAGES\\" + aoi + "\\map_data.gdb\\")
LayerList = ("COMPLEXES", "MILEMARKERS", "Zones", "ROAD_NAMES")
for Layer in LayerList:
AddStatus = m.addDataFromPath(LayerPath + Layer)
... View more
01-20-2023
12:41 PM
|
0
|
0
|
2315
|
|
POST
|
I'm running ArcGIS Pro 3.x and trying to add a list of layers to a map. My guess is I'm not getting the python correct for the path to the feature classes in a FGDB. Here's my python: import arcpy
aprx = arcpy.mp.ArcGISProject("CURRENT")
m = aprx.listMaps("MMPK Output*")[0]
aoi = "PA_SCENTRAL"
LayerPath = ("D:\\Mobile Map Package Creator\\DEPLOYMENT_DATA_PACKAGES\\" + aoi + "\\map_data.gdb\\")
LayerList = ("COMPLEXES", "MILEMARKERS", "Zones", "ROAD_NAMES")
for Layer in LayerList:
Layer2Add = (LayerPath + Layer )
AddStatus = m.addLayer(Layer2Add) And here the error message I get back: Traceback (most recent call last): File "<string>", line 14, in <module> File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\utils.py", line 191, in fn_ return fn(*args, **kw) File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\_mp.py", line 2217, in addLayer return convertArcObjectToPythonObject(self._arc_object.addLayer(*gp_fixargs((add_layer_or_layerfile, add_position), True))) ValueError: D:\Mobile Map Package Creator\DEPLOYMENT_DATA_PACKAGES\PA_SCENTRAL\map_data.gdb\COMPLEXES
... View more
01-20-2023
07:56 AM
|
0
|
3
|
2335
|
|
POST
|
David, I have tried this method, it does update the extent on the screen. But CreateTilePackage does not use this extent or respect the extent in the environment. It only seems to use the extent as set as a property of the map. You see this in the UX by double clicking the "map" in the Content panel-> Extent. Thanks.
... View more
09-22-2022
12:39 PM
|
0
|
2
|
3373
|
|
POST
|
in ArcGIS Pro 2.6.2 I have a map named "VTPK Output" and I want to set the map's extent to the extent of a layer called "PACKAGE_AREA" in a python script. There are other maps in my project. The layer has a definition query that is set to a particular area. I will then change the query and run my script for another area, but it needs to set the map extent property. As you can image, the script is creating a vector tile cache. I've written some python scripts, but I'm between novice and rookie.... Thanks for your help in advance. John
... View more
12-01-2020
01:01 PM
|
0
|
4
|
4156
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 08-01-2025 07:23 AM | |
| 1 | 08-16-2020 05:03 PM | |
| 1 | 01-06-2020 09:05 AM | |
| 1 | 12-27-2019 09:45 AM | |
| 2 | 03-05-2019 08:40 AM |
| Online Status |
Offline
|
| Date Last Visited |
a month ago
|