<?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: Getting KeyError as &amp;quot;assignments&amp;quot; when using workforce with geoprocessing tool. in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/getting-keyerror-as-quot-assignments-quot-when/m-p/1122485#M26020</link>
    <description>&lt;P&gt;Try publishing the assignment layer in your online account.&amp;nbsp; Then build the geoprocessing tool from the published assignment layer.&lt;/P&gt;</description>
    <pubDate>Fri, 03 Dec 2021 13:09:44 GMT</pubDate>
    <dc:creator>ABishop</dc:creator>
    <dc:date>2021-12-03T13:09:44Z</dc:date>
    <item>
      <title>Getting KeyError as "assignments" when using workforce with geoprocessing tool.</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/getting-keyerror-as-quot-assignments-quot-when/m-p/1121588#M26008</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I published a toolbox that works in local server but i could not make it work as a geoprocessing tool.&lt;/P&gt;&lt;P&gt;My idea is that i want to be able to reach to workforce through using ArcGIS API and want to make operations over there by using the tool i created. It works without a problem on the ArcGIS Pro, but when i publish it as a geoprocessing device i get the following error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Traceback (most recent call last): File "&lt;/SPAN&gt;", line 71, in execute File "C:\Program Files\ArcGIS\Server\framework\runtime\ArcGIS\bin\Python\envs\arcgispro-py3\Lib\site-packages\arcgis\apps\workforce\project.py", line 45, in __init__ self._assignment_schema = AssignmentSchema(self.assignments_layer) File "C:\Program Files\ArcGIS\Server\framework\runtime\ArcGIS\bin\Python\envs\arcgispro-py3\Lib\site-packages\arcgis\_impl\common\_utils.py", line 158, in _lazy_property setattr(self, attr_name, fn(self)) File "C:\Program Files\ArcGIS\Server\framework\runtime\ArcGIS\bin\Python\envs\arcgispro-py3\Lib\site-packages\arcgis\apps\workforce\project.py", line 233, in assignments_layer return FeatureLayer(self.assignments_layer_url, self.gis) File "C:\Program Files\ArcGIS\Server\framework\runtime\ArcGIS\bin\Python\envs\arcgispro-py3\Lib\site-packages\arcgis\apps\workforce\project.py", line 183, in assignments_layer_url return self._item_data['assignments']['url'] KeyError: 'assignments' Failed to execute (Tool). Failed to execute (Tool). Failed.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Dec 2021 05:50:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/getting-keyerror-as-quot-assignments-quot-when/m-p/1121588#M26008</guid>
      <dc:creator>UğurcanGül</dc:creator>
      <dc:date>2021-12-01T05:50:33Z</dc:date>
    </item>
    <item>
      <title>Re: Getting KeyError as "assignments" when using workforce with geoprocessing tool.</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/getting-keyerror-as-quot-assignments-quot-when/m-p/1121780#M26009</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Could you try publishing it as a geoprocessing service?&amp;nbsp; Looks like the "assignments" are pointing to the server.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Dec 2021 18:04:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/getting-keyerror-as-quot-assignments-quot-when/m-p/1121780#M26009</guid>
      <dc:creator>ABishop</dc:creator>
      <dc:date>2021-12-01T18:04:40Z</dc:date>
    </item>
    <item>
      <title>Re: Getting KeyError as "assignments" when using workforce with geoprocessing tool.</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/getting-keyerror-as-quot-assignments-quot-when/m-p/1121789#M26010</link>
      <description>&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;I published it as a geoprocessing service. It worked as a tool however when i add the geoprocessing service to a webapp it gives me the error as &lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"C:\Program Files\ArcGIS\Server\framework\runtime\ArcGIS\bin\Python\envs\arcgispro-py3\Lib\site-packages\arcgis\apps\workforce\project.py", line 183, in assignments_layer_url return self._item_data['assignments']['url'] KeyError: 'assignments' Failed to execute (Tool). Failed to execute (Tool). Failed."&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have an enterprise license where i publish the tool but it does not have workforce license in it . I try run the geoprocessing server on the web app on another license which has workforce license. Could that be the reason?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Dec 2021 18:26:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/getting-keyerror-as-quot-assignments-quot-when/m-p/1121789#M26010</guid>
      <dc:creator>UğurcanGül</dc:creator>
      <dc:date>2021-12-01T18:26:52Z</dc:date>
    </item>
    <item>
      <title>Re: Getting KeyError as "assignments" when using workforce with geoprocessing tool.</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/getting-keyerror-as-quot-assignments-quot-when/m-p/1121804#M26011</link>
      <description>&lt;P&gt;I don't think the licensing is an issue, but you could try testing it with another license with workforce.&lt;/P&gt;&lt;P&gt;Another thing to pay attention to is when the geoprocessing tool works... where are you running it from?&amp;nbsp; It could have to do with permissions in the web app using a browser?&lt;/P&gt;</description>
      <pubDate>Wed, 01 Dec 2021 18:48:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/getting-keyerror-as-quot-assignments-quot-when/m-p/1121804#M26011</guid>
      <dc:creator>ABishop</dc:creator>
      <dc:date>2021-12-01T18:48:21Z</dc:date>
    </item>
    <item>
      <title>Re: Getting KeyError as "assignments" when using workforce with geoprocessing tool.</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/getting-keyerror-as-quot-assignments-quot-when/m-p/1122061#M26014</link>
      <description>&lt;P&gt;I use Chrome as my main browser. I tried running it on Mozilla still no luck so far.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Dec 2021 05:50:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/getting-keyerror-as-quot-assignments-quot-when/m-p/1122061#M26014</guid>
      <dc:creator>UğurcanGül</dc:creator>
      <dc:date>2021-12-02T05:50:22Z</dc:date>
    </item>
    <item>
      <title>Re: Getting KeyError as "assignments" when using workforce with geoprocessing tool.</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/getting-keyerror-as-quot-assignments-quot-when/m-p/1122145#M26015</link>
      <description>&lt;P&gt;so when it works you are running it from chrome on your PC with your login?&lt;/P&gt;</description>
      <pubDate>Thu, 02 Dec 2021 13:10:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/getting-keyerror-as-quot-assignments-quot-when/m-p/1122145#M26015</guid>
      <dc:creator>ABishop</dc:creator>
      <dc:date>2021-12-02T13:10:06Z</dc:date>
    </item>
    <item>
      <title>Re: Getting KeyError as "assignments" when using workforce with geoprocessing tool.</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/getting-keyerror-as-quot-assignments-quot-when/m-p/1122439#M26019</link>
      <description>&lt;P&gt;I think i could not make my self clear enough. I run the toolbox from ArcGIS Pro and it works without a problem but if i publish it as a geoprocessing service it does not work. I tried it by using chrome and mozilla but they did not do the trick. I cannot access the assignment layer from online when i run the geoprocessing server.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Dec 2021 07:53:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/getting-keyerror-as-quot-assignments-quot-when/m-p/1122439#M26019</guid>
      <dc:creator>UğurcanGül</dc:creator>
      <dc:date>2021-12-03T07:53:35Z</dc:date>
    </item>
    <item>
      <title>Re: Getting KeyError as "assignments" when using workforce with geoprocessing tool.</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/getting-keyerror-as-quot-assignments-quot-when/m-p/1122485#M26020</link>
      <description>&lt;P&gt;Try publishing the assignment layer in your online account.&amp;nbsp; Then build the geoprocessing tool from the published assignment layer.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Dec 2021 13:09:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/getting-keyerror-as-quot-assignments-quot-when/m-p/1122485#M26020</guid>
      <dc:creator>ABishop</dc:creator>
      <dc:date>2021-12-03T13:09:44Z</dc:date>
    </item>
    <item>
      <title>Re: Getting KeyError as "assignments" when using workforce with geoprocessing tool.</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/getting-keyerror-as-quot-assignments-quot-when/m-p/1122849#M26025</link>
      <description>&lt;P&gt;But it is a workforce project I created in workforce apps. The assignment layer is already inside of the app. It gets created automatically.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Dec 2021 08:31:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/getting-keyerror-as-quot-assignments-quot-when/m-p/1122849#M26025</guid>
      <dc:creator>UğurcanGül</dc:creator>
      <dc:date>2021-12-06T08:31:31Z</dc:date>
    </item>
    <item>
      <title>Re: Getting KeyError as "assignments" when using workforce with geoprocessing tool.</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/getting-keyerror-as-quot-assignments-quot-when/m-p/1123068#M26026</link>
      <description>&lt;P&gt;OK... not sure how that works.&amp;nbsp; It was just a suggestion to see if maybe the issue was from a permissions error with the assignment layer.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Dec 2021 18:16:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/getting-keyerror-as-quot-assignments-quot-when/m-p/1123068#M26026</guid>
      <dc:creator>ABishop</dc:creator>
      <dc:date>2021-12-06T18:16:22Z</dc:date>
    </item>
  </channel>
</rss>

