<?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: Modelbuilder workspace problem in ModelBuilder Questions</title>
    <link>https://community.esri.com/t5/modelbuilder-questions/modelbuilder-workspace-problem/m-p/834209#M2733</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again Scott,&lt;/P&gt;&lt;P&gt;I have tried to follow your ideas. The model works perfectly on my machine, but there is still problems when switching to another user.&lt;/P&gt;&lt;P&gt;The scratch for ArcGIS is defined under Geoprocessing / Envrioments... / Workspace:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/309309_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;In my model I call for the scratch geodatabase&amp;nbsp;by using the inline variable %scratchworkspace% or %scratchGDB%. It seems like both variants are accepted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, when the other user tries the same, the model writes scratch data&amp;nbsp;in windows temp directory in Shape format.&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: #1f497d;"&gt;&amp;nbsp;-----&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt 15pt;"&gt;&lt;SPAN style="color: #d70019; font-size: 10pt;"&gt;ERROR &lt;/SPAN&gt;&lt;SPAN style="color: #aa0000; font-size: 10pt;"&gt;000229&lt;/SPAN&gt;&lt;SPAN style="color: #d70019; font-size: 10pt;"&gt;: Cannot open C:\windows\system32\EnskildVag_GrupperaLinjer1.dbf&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt 15pt;"&gt;&lt;SPAN style="color: #d70019; font-size: 10pt;"&gt;Failed to execute (Dissolve).&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt 15pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;Failed at Wed Jan 25 15:10:03 2017 (Elapsed Time: 0,01 seconds)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt 7.5pt;"&gt;&lt;SPAN style="color: #d70019; font-size: 10pt;"&gt;Failed to execute (Model323).&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt 7.5pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;Failed at Wed Jan 25 15:10:03 2017 (Elapsed Time: 30,15 seconds)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt 7.5pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;-----&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;This causes my model to&amp;nbsp;stop functioning&amp;nbsp;in further processing. It seems like it does not find the geodatabase to write in, and therefore writes in Shape format in the windows directory. Why is this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mats&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Jan 2017 13:10:44 GMT</pubDate>
    <dc:creator>MatsNyborg</dc:creator>
    <dc:date>2017-01-26T13:10:44Z</dc:date>
    <item>
      <title>Modelbuilder workspace problem</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/modelbuilder-workspace-problem/m-p/834205#M2729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin: 0cm 0cm 10pt;"&gt;I am trying to run a Modelbuilder model from ArcMap catalogue (ie. not inside Modelbuilder). In the modeI I have defined workspaces for current and scratch workspaces as model parameters (not connected, but as standalone model variables). I call upon these parameters using inline variables (%xxxx%). Also, in the environment for the model I have defined the parameters for current and scratch workspaces as inline variables.&lt;/P&gt;&lt;P style="margin: 0cm 0cm 10pt;"&gt;However, when I run the model from catalogue level,&amp;nbsp;I get error messages in reference to paths to workspace. When&amp;nbsp;opening the model&amp;nbsp;in edit mode, I notice that the defined paths to workspaces has changed. It now contains my default workspace in addtion to my inline variable,&amp;nbsp;as defined&amp;nbsp;for ArcMap.&lt;/P&gt;&lt;P style="margin: 0cm 0cm 10pt;"&gt;I need to have workspaces transparent to&amp;nbsp;the ArcMap installation&amp;nbsp;(the model will need to be&amp;nbsp;run from other ArcMap installations&amp;nbsp; - other users), not needing to go into the model and&amp;nbsp;correct the&amp;nbsp;paths&amp;nbsp;before each execution. I cannot accept having hard coded paths for workspace and scratch.&lt;/P&gt;&lt;P style="margin: 0cm 0cm 10pt;"&gt;How do I configure my model so that my&amp;nbsp;paths not will be changed by ArcMap default configuration?&lt;/P&gt;&lt;P style="margin: 0cm 0cm 10pt;"&gt;I am working on ArcMap 10.3.&lt;/P&gt;&lt;P style="margin: 0cm 0cm 10pt;"&gt;Best regards,&lt;/P&gt;&lt;P style="margin: 0cm 0cm 10pt;"&gt;Mats&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2017 09:31:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/modelbuilder-workspace-problem/m-p/834205#M2729</guid>
      <dc:creator>MatsNyborg</dc:creator>
      <dc:date>2017-01-24T09:31:27Z</dc:date>
    </item>
    <item>
      <title>Re: Modelbuilder workspace problem</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/modelbuilder-workspace-problem/m-p/834206#M2730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;have you set it up to use relative paths?&amp;nbsp;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/latest/analyze/modelbuilder/changing-model-name-and-setting-relative-path.htm" title="http://desktop.arcgis.com/en/arcmap/latest/analyze/modelbuilder/changing-model-name-and-setting-relative-path.htm"&gt;Setting general model properties—Help | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Step 11 in this...&amp;nbsp;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/latest/analyze/modelbuilder/creating-tool-with-modelbuilder-tutorial.htm" title="http://desktop.arcgis.com/en/arcmap/latest/analyze/modelbuilder/creating-tool-with-modelbuilder-tutorial.htm"&gt;Tutorial: Creating tools with ModelBuilder—Help | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;They are pretty well your options relative or hardcoded&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2017 11:26:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/modelbuilder-workspace-problem/m-p/834206#M2730</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-01-24T11:26:15Z</dc:date>
    </item>
    <item>
      <title>Re: Modelbuilder workspace problem</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/modelbuilder-workspace-problem/m-p/834207#M2731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Trying to piece a few of these items together. We use inline variables in over 100 ETL's but we do not define the current workspace or scratch as environment variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If all your users are going to be running this out of some flavor of Arc then because they have Arc installed you should be able to leverage ESRI's scratch space without defining anything on your own. ESRI will recognize and use the same user dependent location when you make use of %scratchWorkspace%\ or %scratchFolder%. You can read up more about it and depending on systems and data size making use of the "in_memory" call might be useful &lt;A href="https://blogs.esri.com/esri/arcgis/2012/10/19/the-new-scratchgdb-and-scratchfolder-environments/"&gt;https://blogs.esri.com/esri/arcgis/2012/10/19/the-new-scratchgdb-and-scratchfolder-environments/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The user based paths will look like this C:\Users\&amp;lt;user_name&amp;gt;\AppData\Local\Temp\5\arcBC74 but the last 2 folders will vary so you may see something like C:\Users\&amp;lt;user_name&amp;gt;\AppData\Local\Temp\2\arcDT51 or C:\Users\&amp;lt;user_name&amp;gt;\AppData\Local\Temp\7\arcFG26&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopefully that can work to resolve your scratch concerns, you can build these directly into the model without needing to define model parameters and it will work for all your users. Moving on to the current workspace need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We essentially define our current workspaces without the use of defining a model parameter but it does mean where/when you need a workspace call that you simply connect it to the tool as an input. We&amp;nbsp;assign a workspace (for us a .sde connection) as a data type = workspace and inline variable name of %TargetWorkspace%. This variable we then map into our tools that call for it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No model level environment variables set:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/307933_pastedImage_108.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Connected use of inline variable for %TargetWorkspace% (would be your current workspace) to 3 tools:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/307937_pastedImage_109.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2017 11:46:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/modelbuilder-workspace-problem/m-p/834207#M2731</guid>
      <dc:creator>ScottFierro2</dc:creator>
      <dc:date>2017-01-24T11:46:35Z</dc:date>
    </item>
    <item>
      <title>Re: Modelbuilder workspace problem</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/modelbuilder-workspace-problem/m-p/834208#M2732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank very much! This was very helpful. I will try this. I might get back to you with more questions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2017 11:56:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/modelbuilder-workspace-problem/m-p/834208#M2732</guid>
      <dc:creator>MatsNyborg</dc:creator>
      <dc:date>2017-01-24T11:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: Modelbuilder workspace problem</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/modelbuilder-workspace-problem/m-p/834209#M2733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again Scott,&lt;/P&gt;&lt;P&gt;I have tried to follow your ideas. The model works perfectly on my machine, but there is still problems when switching to another user.&lt;/P&gt;&lt;P&gt;The scratch for ArcGIS is defined under Geoprocessing / Envrioments... / Workspace:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/309309_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;In my model I call for the scratch geodatabase&amp;nbsp;by using the inline variable %scratchworkspace% or %scratchGDB%. It seems like both variants are accepted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, when the other user tries the same, the model writes scratch data&amp;nbsp;in windows temp directory in Shape format.&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: #1f497d;"&gt;&amp;nbsp;-----&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt 15pt;"&gt;&lt;SPAN style="color: #d70019; font-size: 10pt;"&gt;ERROR &lt;/SPAN&gt;&lt;SPAN style="color: #aa0000; font-size: 10pt;"&gt;000229&lt;/SPAN&gt;&lt;SPAN style="color: #d70019; font-size: 10pt;"&gt;: Cannot open C:\windows\system32\EnskildVag_GrupperaLinjer1.dbf&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt 15pt;"&gt;&lt;SPAN style="color: #d70019; font-size: 10pt;"&gt;Failed to execute (Dissolve).&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt 15pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;Failed at Wed Jan 25 15:10:03 2017 (Elapsed Time: 0,01 seconds)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt 7.5pt;"&gt;&lt;SPAN style="color: #d70019; font-size: 10pt;"&gt;Failed to execute (Model323).&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt 7.5pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;Failed at Wed Jan 25 15:10:03 2017 (Elapsed Time: 30,15 seconds)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt 7.5pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;-----&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;This causes my model to&amp;nbsp;stop functioning&amp;nbsp;in further processing. It seems like it does not find the geodatabase to write in, and therefore writes in Shape format in the windows directory. Why is this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mats&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jan 2017 13:10:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/modelbuilder-workspace-problem/m-p/834209#M2733</guid>
      <dc:creator>MatsNyborg</dc:creator>
      <dc:date>2017-01-26T13:10:44Z</dc:date>
    </item>
    <item>
      <title>Re: Modelbuilder workspace problem</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/modelbuilder-workspace-problem/m-p/834210#M2734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ohhh ok, sorry I see so I gave you details regarding the individual model level but left out overall environment variables, etc. So below is the screen shot from our desktop environment where we leave those blank and that allows ESRI to use the default paths I had given you before for C:\&amp;lt;user name&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/309353_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a screen shot of what the published service looks like from the server and as you can see there is no physical scratch.gdb being used the way that there is an output.gdb which is by design because we run a process to zip the output.gdb and provide it through the front end interface for user downloads.&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/309343_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jan 2017 14:22:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/modelbuilder-workspace-problem/m-p/834210#M2734</guid>
      <dc:creator>ScottFierro2</dc:creator>
      <dc:date>2017-01-26T14:22:14Z</dc:date>
    </item>
  </channel>
</rss>

