<?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: Invalid assignment type with ArcGIS Notebook in ArcGIS Workforce Questions</title>
    <link>https://community.esri.com/t5/arcgis-workforce-questions/invalid-assignment-type-with-arcgis-notebook/m-p/1204061#M2477</link>
    <description>&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;I think with new workforce projects the api requires the assignment description not the globalid (the first workforce version was the id number). Hopefully the Description column in your df is the correct description for your workforce project making your fix pretty simple change row["assignment_type"] to row["Description"], otherwise you can get the assignment description text from the assignment table.&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;Cheers, Graeme&lt;/P&gt;</description>
    <pubDate>Thu, 18 Aug 2022 05:04:02 GMT</pubDate>
    <dc:creator>graeme_hill</dc:creator>
    <dc:date>2022-08-18T05:04:02Z</dc:date>
    <item>
      <title>Invalid assignment type with ArcGIS Notebook</title>
      <link>https://community.esri.com/t5/arcgis-workforce-questions/invalid-assignment-type-with-arcgis-notebook/m-p/1203984#M2476</link>
      <description>&lt;P&gt;Why am I receiving the invalid assignment type error?&lt;/P&gt;&lt;P&gt;I am using the ArcGIS Notebooks supplied on GitHub to add assignments to a Workforce project via CSV.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used the sample csv and added a field called assignment_type to store the GUID for each assignment.&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I upload the CSV, I received&lt;FONT color="#FF0000"&gt; ValidationError:&lt;/FONT&gt; &lt;STRONG&gt;Invalid Assignment Type&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The CSV successfully loads&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CSVLoaded.png" style="width: 988px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/48866i6FB79134E7ECBD56/image-size/large?v=v2&amp;amp;px=999" role="button" title="CSVLoaded.png" alt="CSVLoaded.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I've updated the Notebook to retrieve the assignment_type just like the other columns.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ErrorMessage.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/48867iE1556C6F39B5D834/image-size/large?v=v2&amp;amp;px=999" role="button" title="ErrorMessage.png" alt="ErrorMessage.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I've even tried assignmenttype (which is the actual field name in the assignments layer)&lt;/P&gt;&lt;P&gt;Thanks for your help.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Aug 2022 21:43:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-workforce-questions/invalid-assignment-type-with-arcgis-notebook/m-p/1203984#M2476</guid>
      <dc:creator>David</dc:creator>
      <dc:date>2022-08-17T21:43:26Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid assignment type with ArcGIS Notebook</title>
      <link>https://community.esri.com/t5/arcgis-workforce-questions/invalid-assignment-type-with-arcgis-notebook/m-p/1204061#M2477</link>
      <description>&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;I think with new workforce projects the api requires the assignment description not the globalid (the first workforce version was the id number). Hopefully the Description column in your df is the correct description for your workforce project making your fix pretty simple change row["assignment_type"] to row["Description"], otherwise you can get the assignment description text from the assignment table.&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;Cheers, Graeme&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2022 05:04:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-workforce-questions/invalid-assignment-type-with-arcgis-notebook/m-p/1204061#M2477</guid>
      <dc:creator>graeme_hill</dc:creator>
      <dc:date>2022-08-18T05:04:02Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid assignment type with ArcGIS Notebook</title>
      <link>https://community.esri.com/t5/arcgis-workforce-questions/invalid-assignment-type-with-arcgis-notebook/m-p/1204184#M2482</link>
      <description>&lt;P&gt;&lt;STRONG&gt;That was it!&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I thought since the assignment_type field stored the GUID that I had to feed it the actual GUID. Using&amp;nbsp; assignment_type=row["Description"] worked! Thank you very much.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2022 14:24:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-workforce-questions/invalid-assignment-type-with-arcgis-notebook/m-p/1204184#M2482</guid>
      <dc:creator>David</dc:creator>
      <dc:date>2022-08-18T14:24:17Z</dc:date>
    </item>
  </channel>
</rss>

