<?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: Create Map Cache - error 000683 in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/create-map-cache-error-000683/m-p/76439#M6201</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Solved. Simply didn't have the directory name included in the object name correctly.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Mar 2011 15:26:50 GMT</pubDate>
    <dc:creator>JonathanCox</dc:creator>
    <dc:date>2011-03-17T15:26:50Z</dc:date>
    <item>
      <title>Create Map Cache - error 000683</title>
      <link>https://community.esri.com/t5/python-questions/create-map-cache-error-000683/m-p/76438#M6200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Howdy,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; I'm having trouble using the basic script for creating a map cache. When I run the code below, I get the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ExecuteError: Failed to execute. Parameters are not valid.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ERROR 000683: Could not create a server context.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Failed to execute (CreateMapServerCache).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; I'm pretty sure I'm talking the server successfully, because when I change the server_name variable it gives me a different complaint about not being able to connect to the server. I've confirmed that I have an existing map service named "Tex2test" and its data frame is named "Layers." Could someone tell me what invalid parameter it is complaining about?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Many Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;jonathan&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My Code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;import arcpy&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;curroverqritesetting=arcpy.env.overwriteOutput&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.env.overwriteOutput="True"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;InServer="localhost"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;InMap="Tex2test"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;InDataFrame="Layers"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;OutFolder="C:\\arcgisserver\\arcgiscache\\"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;TilingSchemeType="NEW"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ScalesType="STANDARD"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;NumScales="3"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;MapOrLayers="FUSED"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.CreateMapServerCache_server(server_name=InServer,object_name=InMap, data_frame=InDataFrame, out_folder=OutFolder, tiling_scheme_type=TilingSchemeType, scales_type=ScalesType, num_of_scales=NumScales, map_or_layers=MapOrLayers)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.env.overwriteOutput=curroverqritesetting&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Mar 2011 20:21:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/create-map-cache-error-000683/m-p/76438#M6200</guid>
      <dc:creator>JonathanCox</dc:creator>
      <dc:date>2011-03-14T20:21:53Z</dc:date>
    </item>
    <item>
      <title>Re: Create Map Cache - error 000683</title>
      <link>https://community.esri.com/t5/python-questions/create-map-cache-error-000683/m-p/76439#M6201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Solved. Simply didn't have the directory name included in the object name correctly.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Mar 2011 15:26:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/create-map-cache-error-000683/m-p/76439#M6201</guid>
      <dc:creator>JonathanCox</dc:creator>
      <dc:date>2011-03-17T15:26:50Z</dc:date>
    </item>
  </channel>
</rss>

