<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Error 999999 occurred when generating tile map package with arcpy, arcmap? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/error-999999-occurred-when-generating-tile-map/m-p/1245319#M66393</link>
    <description>&lt;P&gt;I know this thread is old but I was having the same issue. My problem was solved by first creating a map tile structure file (&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/generate-tile-cache-tiling-scheme.htm" target="_self"&gt;https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/generate-tile-cache-tiling-scheme.htm&lt;/A&gt;) and then using that as "service parameter" to generate my tile package.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AnneMarieDubois_0-1672848596182.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/59739iA4FA33346DD07839/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AnneMarieDubois_0-1672848596182.png" alt="AnneMarieDubois_0-1672848596182.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 04 Jan 2023 16:11:34 GMT</pubDate>
    <dc:creator>Anne-MarieDubois</dc:creator>
    <dc:date>2023-01-04T16:11:34Z</dc:date>
    <item>
      <title>Error 999999 occurred when generating tile map package with arcpy, arcmap?</title>
      <link>https://community.esri.com/t5/python-questions/error-999999-occurred-when-generating-tile-map/m-p/43790#M3446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am working with arcpy and arcmap tool generating a tile map package with .tpk suffix nowadays.&lt;/P&gt;&lt;P&gt;I have three map services at this time writing,&lt;/P&gt;&lt;P&gt;server tile map service, &lt;BR /&gt; server map service&lt;BR /&gt; local tile map service(.tpk)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;This is my projection information of the area from arcmap information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE class="j-table jiveBorder" style="border: 1px solid #c6c6c6;" width="100%"&gt;&lt;THEAD&gt;&lt;TR style="background-color: #efefef; height: 25px;"&gt;&lt;TH style="height: 25px;"&gt;Projection information of my area&lt;/TH&gt;&lt;/TR&gt;&lt;/THEAD&gt;&lt;TBODY&gt;&lt;TR style="height: 25px;"&gt;&lt;TD style="height: 25px;"&gt;Tokyo_Transverse_Mercator&lt;BR /&gt; Authority: Custom&lt;BR /&gt; &lt;BR /&gt; Projection: Transverse_Mercator&lt;BR /&gt; False_Easting: 200000.0&lt;BR /&gt; False_Northing: 500000.0&lt;BR /&gt; Central_Meridian: 127.0028902777778&lt;BR /&gt; Scale_Factor: 1.0&lt;BR /&gt; Latitude_Of_Origin: 38.0&lt;BR /&gt; Linear Unit: Meter (1.0)&lt;BR /&gt; &lt;BR /&gt; Geographic Coordinate System: GCS_Tokyo&lt;BR /&gt; Angular Unit: Degree (0.0174532925199433)&lt;BR /&gt; Prime Meridian: Greenwich (0.0)&lt;BR /&gt; Datum: D_Tokyo&lt;BR /&gt; Spheroid: Bessel_1841&lt;BR /&gt; Semimajor Axis: 6377397.155&lt;BR /&gt; Semiminor Axis: 6356078.962818189&lt;BR /&gt; Inverse Flattening: 299.1528128&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***Case 1. using arcpy***&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The python code for generating tpk file is below,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE class="j-table jiveBorder" style="border: 1px solid #c6c6c6;" width="100%"&gt;&lt;THEAD&gt;&lt;TR style="background-color: #efefef;"&gt;&lt;TH&gt;arypy function - make a tpk file&lt;/TH&gt;&lt;/TR&gt;&lt;/THEAD&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;def fireTileMapGen(self, iteminfo): &lt;BR /&gt;&amp;nbsp; &amp;nbsp; tpkName = iteminfo[0]&lt;BR /&gt;&amp;nbsp; &amp;nbsp; mxdPath = os.path.abspath(iteminfo[1])&lt;BR /&gt;&amp;nbsp; &amp;nbsp; tpkPath = os.path.abspath(iteminfo[2])&lt;BR /&gt;&amp;nbsp; &amp;nbsp; schemePath = os.path.abspath(iteminfo[3])&lt;BR /&gt;&amp;nbsp; &amp;nbsp; lod = iteminfo[4]&lt;BR /&gt; &lt;BR /&gt;&amp;nbsp; &amp;nbsp; title = "Mobile Map"&lt;BR /&gt;&amp;nbsp; &amp;nbsp; filetype = "PNG8"&lt;BR /&gt; &lt;BR /&gt;&amp;nbsp; &amp;nbsp; env.overwriteOutput = True&lt;BR /&gt; &lt;BR /&gt;&amp;nbsp; &amp;nbsp; try:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; self.tile_gen_status = arcpy.CreateMapTilePackage_management(&lt;BR /&gt; &lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;mxdPath, &lt;BR /&gt; &lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;"EXISTING",&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt; &lt;/SPAN&gt;tpkPath,&lt;BR /&gt; &lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;filetype,&lt;BR /&gt; &lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;lod,&lt;BR /&gt; &lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;schemePath,&lt;BR /&gt; &lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;title, &lt;BR /&gt; &lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;title)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; except Exception as myerr:&lt;BR /&gt; &lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;arcpy.AddMessage(myerr)&lt;BR /&gt; &lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;arcpy.AddMessage("There's a problem with the output.")&lt;BR /&gt; &lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;return False&lt;BR /&gt; &lt;BR /&gt; &lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;return True&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, i always got an error message,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ERROR 999999: Error executing function. Failed to execute (CreateMapTilePackage).&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, i tried another method ,which makes problem clear following by the url of esri.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;A href="http://support.esri.com/en/technical-article/000012213"&gt;http://support.esri.com/en/technical-article/000012213&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It was also interrupted at&amp;nbsp;the middle of processing.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;***Case 2. Using different coordination system***&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The parameters of projection in **Korea_2000_Korea_Central_Belt_2010**&lt;/P&gt;&lt;P&gt;is the same of the error one, so i used this parameter in the sheme file when generating tpk successfully following url.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;A href="https://developers.arcgis.com/net/latest/ios/guide/projected-coordinate-systems-part-2.htm"&gt;https://developers.arcgis.com/net/latest/ios/guide/projected-coordinate-systems-part-2.htm&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but i was not able to make it when displaying server tile and local cache together in my application with internal error message as follows,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;java.lang.RuntimeException: Tiled layer has different spatial reference from the map.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ERROR 999999&amp;nbsp;&lt;/STRONG&gt;wasn't contained enough information to me, so i made my own source code using java to find out what is more information through the logic that is why the above message is that of java's error&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;So here is full source code except accessory class - layermananger that just store actual url and properties. &lt;BR /&gt;And more i've just modified the sample source code from that of esri.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE class="j-table jiveBorder" style="border: 1px solid #c6c6c6;" width="100%"&gt;&lt;THEAD&gt;&lt;TR style="background-color: #efefef;"&gt;&lt;TH&gt;Modified Tile information checking source&amp;nbsp;&lt;/TH&gt;&lt;/TR&gt;&lt;/THEAD&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;/* Copyright 2014 Esri&lt;BR /&gt; &lt;BR /&gt; All rights reserved under the copyright laws of the United States&lt;BR /&gt; and applicable international laws, treaties, and conventions.&lt;BR /&gt; &lt;BR /&gt; You may freely redistribute and use this sample code, with or&lt;BR /&gt; without modification, provided you include the original copyright&lt;BR /&gt; notice and use restrictions.&lt;BR /&gt; &lt;BR /&gt; See the use restrictions.*/&lt;BR /&gt; package com.tobee.esri.client.map;&lt;BR /&gt; &lt;BR /&gt; import java.awt.BorderLayout;&lt;BR /&gt; import java.awt.Color;&lt;BR /&gt; import java.awt.Dimension;&lt;BR /&gt; import java.awt.Font;&lt;BR /&gt; import java.awt.event.ActionEvent;&lt;BR /&gt; import java.awt.event.ActionListener;&lt;BR /&gt; import java.awt.event.WindowAdapter;&lt;BR /&gt; import java.awt.event.WindowEvent;&lt;BR /&gt; import java.util.List;&lt;BR /&gt; &lt;BR /&gt; import javax.swing.Box;&lt;BR /&gt; import javax.swing.BoxLayout;&lt;BR /&gt; import javax.swing.JButton;&lt;BR /&gt; import javax.swing.JComponent;&lt;BR /&gt; import javax.swing.JDialog;&lt;BR /&gt; import javax.swing.JFrame;&lt;BR /&gt; import javax.swing.JLabel;&lt;BR /&gt; import javax.swing.JOptionPane;&lt;BR /&gt; import javax.swing.JPanel;&lt;BR /&gt; import javax.swing.JScrollPane;&lt;BR /&gt; import javax.swing.JTable;&lt;BR /&gt; import javax.swing.JTextField;&lt;BR /&gt; import javax.swing.SwingUtilities;&lt;BR /&gt; import javax.swing.WindowConstants;&lt;BR /&gt; import javax.swing.event.ListSelectionEvent;&lt;BR /&gt; import javax.swing.event.ListSelectionListener;&lt;BR /&gt; import javax.swing.table.DefaultTableModel;&lt;BR /&gt; &lt;BR /&gt; import com.esri.client.local.ArcGISLocalTiledLayer;&lt;BR /&gt; import com.esri.core.geometry.Geometry;&lt;BR /&gt; import com.esri.core.geometry.Geometry.Type;&lt;BR /&gt; import com.esri.core.geometry.GeometryEngine;&lt;BR /&gt; import com.esri.core.geometry.SpatialReference;&lt;BR /&gt; import com.esri.core.map.Graphic;&lt;BR /&gt; import com.esri.core.symbol.SimpleFillSymbol;&lt;BR /&gt; import com.esri.core.symbol.SimpleLineSymbol;&lt;BR /&gt; import com.esri.core.symbol.SimpleMarkerSymbol;&lt;BR /&gt; import com.esri.core.tasks.ags.find.FindParameters;&lt;BR /&gt; import com.esri.core.tasks.ags.find.FindResult;&lt;BR /&gt; import com.esri.core.tasks.ags.find.FindTask;&lt;BR /&gt; import com.esri.map.ArcGISDynamicMapServiceLayer;&lt;BR /&gt; import com.esri.map.ArcGISTiledMapServiceLayer;&lt;BR /&gt; import com.esri.map.GraphicsLayer;&lt;BR /&gt; import com.esri.map.JMap;&lt;BR /&gt; import com.esri.map.LayerInitializeCompleteEvent;&lt;BR /&gt; import com.esri.map.LayerInitializeCompleteListener;&lt;BR /&gt; &lt;BR /&gt; /***&lt;BR /&gt; * This sample demonstrates executing a FindTask, adding the results to a table,&lt;BR /&gt; * and zooming to a selected result.&lt;BR /&gt; */&lt;BR /&gt; public class TSMSGisMapSearch {&lt;BR /&gt; // resources&lt;BR /&gt; final String SEVER_CACHE_SERVICE;&lt;BR /&gt; final String LOCAL_CACHE_SERVICE;&lt;BR /&gt; final String MAP_SERVICE;&lt;BR /&gt; &lt;BR /&gt; // UI related&lt;BR /&gt; JTextField findText = new JTextField("Search word");&lt;BR /&gt; DefaultTableModel tblModelStateInfo;&lt;BR /&gt; &lt;BR /&gt; // JMap&lt;BR /&gt; private JMap map;&lt;BR /&gt; &lt;BR /&gt; // our graphics layer for highlighted geometries&lt;BR /&gt; private GraphicsLayer graphicsLayer;&lt;BR /&gt; &lt;BR /&gt; // for zooming to a buffered geometry&lt;BR /&gt; // private static final double BUFFER_DISTANCE = 500000; // 500 km&lt;BR /&gt; private static final double BUFFER_DISTANCE = 50; // 50 m&lt;BR /&gt; &lt;BR /&gt; // results of the Find task execution&lt;BR /&gt; private List&amp;lt;FindResult&amp;gt; findResults = null;&lt;BR /&gt; private JFrame appWindow;&lt;BR /&gt; private JDialog appDialog;&lt;BR /&gt; // ------------------------------------------------------------------------&lt;BR /&gt; // Constructors&lt;BR /&gt; // ------------------------------------------------------------------------&lt;BR /&gt; public TSMSGisMapSearch(final String title, final TSMSLayerManager layerManager) {&lt;BR /&gt; &lt;BR /&gt; //TSMSLayerManager.activateEsriService();&lt;BR /&gt; SEVER_CACHE_SERVICE = layerManager.getSERVER_CACHE_SERVIC_URL();&lt;BR /&gt; MAP_SERVICE = layerManager.getMAIN_MAP_SERVIC_URL();&lt;BR /&gt; LOCAL_CACHE_SERVICE = layerManager.getLOCAL_MAP_TILE_URL();&lt;BR /&gt; &lt;BR /&gt; SwingUtilities.invokeLater(new Runnable() {&lt;BR /&gt; @Override&lt;BR /&gt; public void run() {&lt;BR /&gt; try {&lt;BR /&gt; // create the UI, including the map, for the application.&lt;BR /&gt; appWindow = createWindow(title);&lt;BR /&gt; appWindow.add(createUI());&lt;BR /&gt; appWindow.setVisible(true);&lt;BR /&gt; //appWindow.addWindowListener(new securityClosing());&lt;BR /&gt; } catch (Exception e) {&lt;BR /&gt; // on any error, display the stack trace.&lt;BR /&gt; e.printStackTrace();&lt;BR /&gt; }&lt;BR /&gt; }&lt;BR /&gt; });&lt;BR /&gt; }&lt;BR /&gt; &lt;BR /&gt; public TSMSGisMapSearch(final JDialog owner, final String title, final TSMSLayerManager layerManager) &lt;BR /&gt; {&lt;BR /&gt; &lt;BR /&gt; //TSMSLayerManager.activateEsriService();&lt;BR /&gt; SEVER_CACHE_SERVICE = layerManager.getSERVER_CACHE_SERVIC_URL();&lt;BR /&gt; MAP_SERVICE = layerManager.getMAIN_MAP_SERVIC_URL();&lt;BR /&gt; LOCAL_CACHE_SERVICE = layerManager.getLOCAL_MAP_TILE_URL();&lt;BR /&gt; &lt;BR /&gt; SwingUtilities.invokeLater(new Runnable() {&lt;BR /&gt; @Override&lt;BR /&gt; public void run() {&lt;BR /&gt; try {&lt;BR /&gt; // create the UI, including the map, for the application.&lt;BR /&gt; appDialog = createDialog(owner, title);&lt;BR /&gt; appDialog.add(createUI());&lt;BR /&gt; appDialog.setVisible(true);&lt;BR /&gt; appDialog.addWindowListener(new securityClosing());&lt;BR /&gt; } catch (Exception e) {&lt;BR /&gt; // on any error, display the stack trace.&lt;BR /&gt; e.printStackTrace();&lt;BR /&gt; }&lt;BR /&gt; }&lt;BR /&gt; });&lt;BR /&gt; }&lt;BR /&gt; &lt;BR /&gt; private class securityClosing extends WindowAdapter {&lt;BR /&gt; public void windowClosing(WindowEvent e) {&lt;BR /&gt; int option = JOptionPane.showOptionDialog(appWindow, "Are you sure you want to leave the program?",&lt;BR /&gt; "close map", JOptionPane.YES_NO_OPTION, JOptionPane.WARNING_MESSAGE, null, null, null);&lt;BR /&gt; &lt;BR /&gt; if (option == JOptionPane.YES_OPTION) {&lt;BR /&gt; // try {&lt;BR /&gt; // if(Controller.dbInterface != null)&lt;BR /&gt; // Controller.dbInterface.removeObserver(Controller.rmiClient);&lt;BR /&gt; // } catch (RemoteException e1) {&lt;BR /&gt; // e1.printStackTrace();&lt;BR /&gt; // }&lt;BR /&gt; // System.exit(0);&lt;BR /&gt; map.dispose();&lt;BR /&gt; &lt;BR /&gt; if(appDialog != null)&lt;BR /&gt; {&lt;BR /&gt; appDialog.setVisible(false);&lt;BR /&gt; appDialog.dispose();&lt;BR /&gt; }&lt;BR /&gt; else&lt;BR /&gt; {&lt;BR /&gt; appWindow.setVisible(false);&lt;BR /&gt; appWindow.dispose();&lt;BR /&gt; }&lt;BR /&gt; &lt;BR /&gt; } else {&lt;BR /&gt; // Abbruch&lt;BR /&gt; if(appDialog != null)&lt;BR /&gt; {&lt;BR /&gt; appDialog.setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE);&lt;BR /&gt; }&lt;BR /&gt; else&lt;BR /&gt; {&lt;BR /&gt; appWindow.setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE);&lt;BR /&gt; }&lt;BR /&gt; &lt;BR /&gt; }&lt;BR /&gt; }&lt;BR /&gt; }&lt;BR /&gt; &lt;BR /&gt; // ------------------------------------------------------------------------&lt;BR /&gt; // Core functionality&lt;BR /&gt; // ------------------------------------------------------------------------&lt;BR /&gt; /**&lt;BR /&gt; * This method creates and executes the FindTask to find the input text&lt;BR /&gt; *&lt;BR /&gt; */&lt;BR /&gt; private void onFind() {&lt;BR /&gt; tblModelStateInfo.setRowCount(0);&lt;BR /&gt; &lt;BR /&gt; // return if input text is not valid&lt;BR /&gt; if (findText.getText() == null || findText.getText().isEmpty()) {&lt;BR /&gt; return;&lt;BR /&gt; }&lt;BR /&gt; &lt;BR /&gt; // -----------------------------------------------------------------------------------------&lt;BR /&gt; // Find task to find the search string specified by the user in all&lt;BR /&gt; // attributes of dynamic&lt;BR /&gt; // service&lt;BR /&gt; // -----------------------------------------------------------------------------------------&lt;BR /&gt; // create a Find task.&lt;BR /&gt; FindParameters params = new FindParameters();&lt;BR /&gt; params.setSearchText(findText.getText());&lt;BR /&gt; params.setLayerIds(new int[] { 20, 21, 22, 88, 98, 152 });&lt;BR /&gt; params.setOutputSpatialRef(map.getSpatialReference());&lt;BR /&gt; &lt;BR /&gt; // execute the find task&lt;BR /&gt; FindTask task = new FindTask(MAP_SERVICE);&lt;BR /&gt; try {&lt;BR /&gt; findResults = task.execute(params);&lt;BR /&gt; &lt;BR /&gt; if (findResults == null) {&lt;BR /&gt; return;&lt;BR /&gt; }&lt;BR /&gt; &lt;BR /&gt; for (FindResult result : findResults) {&lt;BR /&gt; tblModelStateInfo.addRow(new Object[] { result.getAttributes().get(result.getDisplayFieldName()),&lt;BR /&gt; Integer.valueOf(result.getLayerId()), result.getLayerName(), result.getFoundFieldName(),&lt;BR /&gt; result.getValue() });&lt;BR /&gt; }&lt;BR /&gt; } catch (Exception e) {&lt;BR /&gt; e.printStackTrace();&lt;BR /&gt; }&lt;BR /&gt; }&lt;BR /&gt; &lt;BR /&gt; // ------------------------------------------------------------------------&lt;BR /&gt; // Public methods&lt;BR /&gt; // ------------------------------------------------------------------------&lt;BR /&gt; &lt;BR /&gt; /**&lt;BR /&gt; * Creates and displays the UI, including the map, for this application.&lt;BR /&gt; */&lt;BR /&gt; public JComponent createUI() throws Exception {&lt;BR /&gt; &lt;BR /&gt; // content pane&lt;BR /&gt; JComponent contentPane = new JPanel();&lt;BR /&gt; contentPane.setLayout(new BorderLayout(1, 0));&lt;BR /&gt; &lt;BR /&gt; // map&lt;BR /&gt; map = createMap();&lt;BR /&gt; &lt;BR /&gt; // input text and find button&lt;BR /&gt; JLabel findLabel = new JLabel(" ");&lt;BR /&gt; findLabel.setForeground(Color.WHITE);&lt;BR /&gt; findLabel.setFont(new Font(findLabel.getFont().getName(), findLabel.getFont().getStyle(), 14));&lt;BR /&gt; findText.setFont(new Font(findLabel.getFont().getName(), findLabel.getFont().getStyle(), 14));&lt;BR /&gt; findText.setMinimumSize(new Dimension(150, 25));&lt;BR /&gt; findText.setMaximumSize(new Dimension(150, 25));&lt;BR /&gt; findText.setColumns(10);&lt;BR /&gt; JLabel remainderLabel = new JLabel(" 속성을 TSMS Map에서 찾습니다.");&lt;BR /&gt; remainderLabel.setForeground(Color.WHITE);&lt;BR /&gt; remainderLabel.setFont(new Font(findLabel.getFont().getName(), findLabel.getFont().getStyle(), 14));&lt;BR /&gt; JButton findButton = new JButton("Find");&lt;BR /&gt; findButton.setFont(new Font(findLabel.getFont().getName(), findLabel.getFont().getStyle(), 14));&lt;BR /&gt; findButton.addActionListener(new ActionListener() {&lt;BR /&gt; &lt;BR /&gt; @Override&lt;BR /&gt; public void actionPerformed(ActionEvent arg0) {&lt;BR /&gt; onFind();&lt;BR /&gt; }&lt;BR /&gt; });&lt;BR /&gt; &lt;BR /&gt; // scrollable-table to display the FindResult information&lt;BR /&gt; tblModelStateInfo = new DefaultTableModel() {&lt;BR /&gt; private static final long serialVersionUID = 1L;&lt;BR /&gt; &lt;BR /&gt; @Override&lt;BR /&gt; public boolean isCellEditable(int rowIndex, int mColIndex) {&lt;BR /&gt; return false;&lt;BR /&gt; }&lt;BR /&gt; };&lt;BR /&gt; // add the column headers&lt;BR /&gt; tblModelStateInfo.addColumn("Display Field");&lt;BR /&gt; tblModelStateInfo.addColumn("Layer Id");&lt;BR /&gt; tblModelStateInfo.addColumn("Layer Name");&lt;BR /&gt; tblModelStateInfo.addColumn("Found Field");&lt;BR /&gt; tblModelStateInfo.addColumn("Found Field Value");&lt;BR /&gt; &lt;BR /&gt; final JTable stateInfoTable = new JTable(tblModelStateInfo);&lt;BR /&gt; JScrollPane tblStateInfoScrollable = new JScrollPane(stateInfoTable);&lt;BR /&gt; stateInfoTable.getSelectionModel().addListSelectionListener(new ListSelectionListener() {&lt;BR /&gt; @Override&lt;BR /&gt; public void valueChanged(ListSelectionEvent e) {&lt;BR /&gt; int rowId = stateInfoTable.getSelectedRow();&lt;BR /&gt; if (0 &amp;lt;= rowId &amp;amp;&amp;amp; rowId &amp;lt; findResults.size()) {&lt;BR /&gt; highlightGeometry(findResults.get(rowId).getGeometryType(), findResults.get(rowId).getGeometry());&lt;BR /&gt; }&lt;BR /&gt; }&lt;BR /&gt; });&lt;BR /&gt; &lt;BR /&gt; // panels to contain input text and find button&lt;BR /&gt; JPanel topPanel = new JPanel();&lt;BR /&gt; topPanel.setBackground(Color.BLACK);&lt;BR /&gt; topPanel.setLayout(new BoxLayout(topPanel, BoxLayout.X_AXIS));&lt;BR /&gt; topPanel.add(Box.createHorizontalGlue());&lt;BR /&gt; topPanel.add(findLabel);&lt;BR /&gt; topPanel.add(findText);&lt;BR /&gt; topPanel.add(remainderLabel);&lt;BR /&gt; topPanel.add(findButton);&lt;BR /&gt; topPanel.add(Box.createHorizontalGlue());&lt;BR /&gt; &lt;BR /&gt; // panel to contain find results&lt;BR /&gt; JPanel bottomPanel = new JPanel();&lt;BR /&gt; bottomPanel.setLayout(new BorderLayout());&lt;BR /&gt; bottomPanel.add(tblStateInfoScrollable, BorderLayout.CENTER);&lt;BR /&gt; bottomPanel.setPreferredSize(new Dimension(600, 150));&lt;BR /&gt; &lt;BR /&gt; contentPane.add(topPanel, BorderLayout.NORTH);&lt;BR /&gt; contentPane.add(map, BorderLayout.CENTER);&lt;BR /&gt; contentPane.add(bottomPanel, BorderLayout.SOUTH);&lt;BR /&gt; &lt;BR /&gt; return contentPane;&lt;BR /&gt; }&lt;BR /&gt; &lt;BR /&gt; // ------------------------------------------------------------------------&lt;BR /&gt; // Private methods&lt;BR /&gt; // ------------------------------------------------------------------------&lt;BR /&gt; /**&lt;BR /&gt; * Creates a window.&lt;BR /&gt; *&lt;BR /&gt; * @return a window.&lt;BR /&gt; */&lt;BR /&gt; private JFrame createWindow(final String title) {&lt;BR /&gt; JFrame window = new JFrame(title);&lt;BR /&gt; window.setBounds(100, 100, 1000, 700);&lt;BR /&gt; window.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);&lt;BR /&gt; window.getContentPane().setLayout(new BorderLayout(0, 0));&lt;BR /&gt; &lt;BR /&gt; window.addWindowListener(new WindowAdapter() {&lt;BR /&gt; @Override&lt;BR /&gt; public void windowClosing(WindowEvent windowEvent) {&lt;BR /&gt; super.windowClosing(windowEvent);&lt;BR /&gt; map.dispose();&lt;BR /&gt; }&lt;BR /&gt; });&lt;BR /&gt; &lt;BR /&gt; return window;&lt;BR /&gt; }&lt;BR /&gt; &lt;BR /&gt; private JDialog createDialog(final JDialog owner, final String title) {&lt;BR /&gt; JDialog dialog = new JDialog(owner, title);&lt;BR /&gt; dialog.setBounds(100, 100, 1000, 700);&lt;BR /&gt; //window.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);&lt;BR /&gt; dialog.getContentPane().setLayout(new BorderLayout(0, 0));&lt;BR /&gt; /*&lt;BR /&gt; window.addWindowListener(new WindowAdapter() {&lt;BR /&gt; @Override&lt;BR /&gt; public void windowClosing(WindowEvent windowEvent) {&lt;BR /&gt; super.windowClosing(windowEvent);&lt;BR /&gt; map.dispose();&lt;BR /&gt; }&lt;BR /&gt; });&lt;BR /&gt; */&lt;BR /&gt; return dialog;&lt;BR /&gt; }&lt;BR /&gt; &lt;BR /&gt; /**&lt;BR /&gt; * Creates a map.&lt;BR /&gt; *&lt;BR /&gt; * @return a map.&lt;BR /&gt; */&lt;BR /&gt; private JMap createMap() throws Exception {&lt;BR /&gt; final JMap jMap = new JMap();&lt;BR /&gt; &lt;BR /&gt; // -----------------------------------------------------------------------------------------&lt;BR /&gt; // Base Layer - with US topology, focus on U.S by default&lt;BR /&gt; // -----------------------------------------------------------------------------------------&lt;BR /&gt; final ArcGISTiledMapServiceLayer serverCacheLayer = new ArcGISTiledMapServiceLayer(SEVER_CACHE_SERVICE);&lt;BR /&gt; // jMap.setExtent(new Envelope(-15000000, 2000000, -7000000, 8000000));&lt;BR /&gt; //jMap.setExtent(TSMSLayerManager.CURRENT_EXTENT);&lt;BR /&gt; serverCacheLayer.setMinScale(50000);&lt;BR /&gt; serverCacheLayer.setMaxScale(1000);&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; serverCacheLayer.addLayerInitializeCompleteListener(new LayerInitializeCompleteListener(){&lt;BR /&gt; &lt;BR /&gt; @Override&lt;BR /&gt; public void layerInitializeComplete(LayerInitializeCompleteEvent arg0) {&lt;BR /&gt; SpatialReference sp = arg0.getLayer().getSpatialReference();&lt;BR /&gt; &lt;BR /&gt; System.out.println("url &amp;gt;&amp;gt; " + arg0.getLayer().getUrl());&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; System.out.println(sp == null);&lt;BR /&gt; if(sp != null)&lt;BR /&gt; {&lt;BR /&gt; System.out.println(sp.getText());&lt;BR /&gt; }&lt;BR /&gt; &lt;BR /&gt; }});&lt;BR /&gt; &lt;BR /&gt; // -----------------------------------------------------------------------------------------&lt;BR /&gt; // Dynamic Layer - US Cities and States that we will search&lt;BR /&gt; // -----------------------------------------------------------------------------------------&lt;BR /&gt; final ArcGISDynamicMapServiceLayer dynamicLayer = new ArcGISDynamicMapServiceLayer(MAP_SERVICE);&lt;BR /&gt; dynamicLayer.setMinScale(500);&lt;BR /&gt; dynamicLayer.setOpacity(0.6f);&lt;BR /&gt; &lt;BR /&gt; dynamicLayer.addLayerInitializeCompleteListener(new LayerInitializeCompleteListener(){&lt;BR /&gt; &lt;BR /&gt; @Override&lt;BR /&gt; public void layerInitializeComplete(LayerInitializeCompleteEvent arg0) {&lt;BR /&gt; SpatialReference sp = arg0.getLayer().getSpatialReference();&lt;BR /&gt; &lt;BR /&gt; System.out.println("url &amp;gt;&amp;gt; " + arg0.getLayer().getUrl());&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; System.out.println(sp == null);&lt;BR /&gt; if(sp != null)&lt;BR /&gt; {&lt;BR /&gt; System.out.println(sp.getText());&lt;BR /&gt; }&lt;BR /&gt; &lt;BR /&gt; }});&lt;BR /&gt; &lt;BR /&gt; final ArcGISLocalTiledLayer localTileLayer = new ArcGISLocalTiledLayer(LOCAL_CACHE_SERVICE);&lt;BR /&gt; localTileLayer.setMinScale(50000);&lt;BR /&gt; localTileLayer.setMaxScale(1000);&lt;BR /&gt; &lt;BR /&gt; localTileLayer.addLayerInitializeCompleteListener(new LayerInitializeCompleteListener(){&lt;BR /&gt; &lt;BR /&gt; @Override&lt;BR /&gt; public void layerInitializeComplete(LayerInitializeCompleteEvent arg0) {&lt;BR /&gt; SpatialReference sp = arg0.getLayer().getSpatialReference();&lt;BR /&gt; System.out.println(sp == null);&lt;BR /&gt; if(sp != null)&lt;BR /&gt; {&lt;BR /&gt; //System.out.println(sp.getID());&lt;BR /&gt; &lt;BR /&gt; System.out.println(sp.getText());&lt;BR /&gt; }&lt;BR /&gt; &lt;BR /&gt; }});&lt;BR /&gt; &lt;BR /&gt; jMap.getLayers().add(localTileLayer);&lt;BR /&gt; jMap.getLayers().add(serverCacheLayer);&lt;BR /&gt; //jMap.getLayers().add(dynamicLayer);&lt;BR /&gt; &lt;BR /&gt; // -----------------------------------------------------------------------------------------&lt;BR /&gt; // Graphics Layer - to highlight a selected feature&lt;BR /&gt; // -----------------------------------------------------------------------------------------&lt;BR /&gt; graphicsLayer = new GraphicsLayer();&lt;BR /&gt; jMap.getLayers().add(graphicsLayer);&lt;BR /&gt; &lt;BR /&gt; return jMap;&lt;BR /&gt; }&lt;BR /&gt; &lt;BR /&gt; /**&lt;BR /&gt; * Display a geometry on the map for the selected table row&lt;BR /&gt; *&lt;BR /&gt; * @param geometryType&lt;BR /&gt; * @param geometry&lt;BR /&gt; */&lt;BR /&gt; private void highlightGeometry(Type geometryType, Geometry geometry) {&lt;BR /&gt; if (geometryType == null || geometry == null) {&lt;BR /&gt; return;&lt;BR /&gt; }&lt;BR /&gt; &lt;BR /&gt; // -----------------------------------------------------------------------------------------&lt;BR /&gt; // Add a graphic for the selected feature to the graphics layer&lt;BR /&gt; // -----------------------------------------------------------------------------------------&lt;BR /&gt; graphicsLayer.removeAll();&lt;BR /&gt; switch (geometryType) {&lt;BR /&gt; case POINT:&lt;BR /&gt; graphicsLayer.addGraphic(&lt;BR /&gt; new Graphic(geometry, new SimpleMarkerSymbol(Color.BLUE, 8, SimpleMarkerSymbol.Style.DIAMOND)));&lt;BR /&gt; break;&lt;BR /&gt; case POLYLINE:&lt;BR /&gt; graphicsLayer.addGraphic(&lt;BR /&gt; new Graphic(geometry, new SimpleLineSymbol(Color.BLUE, 4, SimpleLineSymbol.Style.SOLID)));&lt;BR /&gt; break;&lt;BR /&gt; case POLYGON:&lt;BR /&gt; graphicsLayer.addGraphic(new Graphic(geometry, new SimpleFillSymbol(Color.BLUE)));&lt;BR /&gt; break;&lt;BR /&gt; default:&lt;BR /&gt; break;&lt;BR /&gt; }&lt;BR /&gt; &lt;BR /&gt; graphicsLayer.setOpacity(0.5f);&lt;BR /&gt; &lt;BR /&gt; // -----------------------------------------------------------------------------------------&lt;BR /&gt; // Zoom to the highlighted graphic&lt;BR /&gt; // -----------------------------------------------------------------------------------------&lt;BR /&gt; Geometry geometryForZoom = GeometryEngine.buffer(geometry, map.getSpatialReference(), BUFFER_DISTANCE,&lt;BR /&gt; map.getSpatialReference().getUnit());&lt;BR /&gt; map.zoomTo(geometryForZoom);&lt;BR /&gt; }&lt;BR /&gt; &lt;BR /&gt; }&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I already have old version of tpk file with&amp;nbsp;the Tokyo projection(bessel 1841 to be exact).&lt;/P&gt;&lt;P&gt;but I can not generate the right tpk file recently with the arcpy function&amp;nbsp;i presented.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The source is quite long but the main consideration part is here&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;jMap.getLayers().add(localTileLayer); //tpk&lt;BR /&gt; jMap.getLayers().add(serverCacheLayer); // server cache&lt;BR /&gt; jMap.getLayers().add(dynamicLayer); // server's map service&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to see if two tpks with different coordination systems which are&amp;nbsp;tokyo datum and korea datum, give me some clue to trace what was wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've finally found the error messages i mentioned before.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;java.lang.RuntimeException: Tiled layer has different spatial reference from the map.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;This is error projection parameters in the scheme file but must be generated while generating tpk is,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE class="j-table jiveBorder" style="border: 1px solid #c6c6c6;" width="100%"&gt;&lt;THEAD&gt;&lt;TR style="background-color: #efefef;"&gt;&lt;TH&gt;Projection in the scheme in xml file&lt;/TH&gt;&lt;/TR&gt;&lt;/THEAD&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;PROJCS["Tokyo_Transverse_Mercator",GEOGCS["GCS_Tokyo",DATUM["D_Tokyo",&lt;BR /&gt; SPHEROID["Bessel_1841",6377397.155,299.1528128]],PRIMEM["Greenwich",0.0],&lt;BR /&gt; UNIT["Degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],&lt;BR /&gt; PARAMETER["False_Easting",200000.0],&lt;BR /&gt; PARAMETER["False_Northing",500000.0],&lt;BR /&gt; PARAMETER["Central_Meridian",127.0028902777778],&lt;BR /&gt; PARAMETER["Scale_Factor",1.0],PARAMETER["Latitude_Of_Origin",38.0],&lt;BR /&gt; UNIT["Meter",1.0]]&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next, this is the projection that i've got a tpk file but diplay-mismatch.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE class="j-table jiveBorder" style="border: 1px solid #c6c6c6;" width="100%"&gt;&lt;THEAD&gt;&lt;TR style="background-color: #efefef;"&gt;&lt;TH&gt;Header 1&lt;/TH&gt;&lt;/TR&gt;&lt;/THEAD&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;PROJCS["Korean_1985_Modified_Korea_Central_Belt",GEOGCS["GCS_Korean_Datum_1985",DATUM["D_Korean_Datum_1985",&lt;BR /&gt; SPHEROID["Bessel_1841",6377397.155,299.1528128]],PRIMEM["Greenwich",0.0],&lt;BR /&gt; UNIT["Degree",0.0174532925199433]],&lt;BR /&gt; PROJECTION["Transverse_Mercator"],&lt;BR /&gt; PARAMETER["False_Easting",200000.0],&lt;BR /&gt; PARAMETER["False_Northing",500000.0],&lt;BR /&gt; PARAMETER["Central_Meridian",127.0028902777778],&lt;BR /&gt; PARAMETER["Scale_Factor",1.0],&lt;BR /&gt; PARAMETER["Latitude_Of_Origin",38.0],UNIT["Meter",1.0]]&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am still digging to solve the problem, but I don't know the missing point.&lt;/P&gt;&lt;P&gt;So I need some useful information to trace my problem more deeper.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestion and help will be appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Sep 2017 01:23:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-999999-occurred-when-generating-tile-map/m-p/43790#M3446</guid>
      <dc:creator>YOUNG_GONBAEK</dc:creator>
      <dc:date>2017-09-12T01:23:58Z</dc:date>
    </item>
    <item>
      <title>Re: Error 999999 occurred when generating tile map package with arcpy, arcmap?</title>
      <link>https://community.esri.com/t5/python-questions/error-999999-occurred-when-generating-tile-map/m-p/1245319#M66393</link>
      <description>&lt;P&gt;I know this thread is old but I was having the same issue. My problem was solved by first creating a map tile structure file (&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/generate-tile-cache-tiling-scheme.htm" target="_self"&gt;https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/generate-tile-cache-tiling-scheme.htm&lt;/A&gt;) and then using that as "service parameter" to generate my tile package.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AnneMarieDubois_0-1672848596182.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/59739iA4FA33346DD07839/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AnneMarieDubois_0-1672848596182.png" alt="AnneMarieDubois_0-1672848596182.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2023 16:11:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-999999-occurred-when-generating-tile-map/m-p/1245319#M66393</guid>
      <dc:creator>Anne-MarieDubois</dc:creator>
      <dc:date>2023-01-04T16:11:34Z</dc:date>
    </item>
  </channel>
</rss>

