<?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 Strange results from Workforce Module in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/strange-results-from-workforce-module/m-p/1577983#M11077</link>
    <description>&lt;P&gt;Hey all,&lt;/P&gt;&lt;P&gt;Enterprise 11.2&lt;/P&gt;&lt;P&gt;Having a strange thing happening with Workforce, when creating the Workforce assignment and appending it to a list, the assignments all turn into &amp;lt;Assignment None&amp;gt;.&lt;/P&gt;&lt;P&gt;When attempting to batch_add said list of assignments, I get an error stating that 'NoneType' object has no 'properties', here is my setup:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;            NewLocates.append(
                workforce.Assignment(
                    project,
                    geometry=pt,
                    location=Location,
                    description=x,
                    priority=int(Priority),
                    work_order_id=Record["CaseNumber"],
                    assignment_type=TicketType,
                    status="unassigned",
                    due_date=TicketInfo['DueDate']
                )
            )
    print(NewLocates)
    project.assignments.batch_add(NewLocates)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea what could be happening here? I've attempted to batch add a single item in a list, and attempted to use just add, neither worked. I've also checked that every item inside of the Assignment function is valid, well valid to my mind.&lt;/P&gt;&lt;P&gt;What should I do next?&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
    <pubDate>Wed, 22 Jan 2025 21:21:09 GMT</pubDate>
    <dc:creator>CodyPatterson</dc:creator>
    <dc:date>2025-01-22T21:21:09Z</dc:date>
    <item>
      <title>Strange results from Workforce Module</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/strange-results-from-workforce-module/m-p/1577983#M11077</link>
      <description>&lt;P&gt;Hey all,&lt;/P&gt;&lt;P&gt;Enterprise 11.2&lt;/P&gt;&lt;P&gt;Having a strange thing happening with Workforce, when creating the Workforce assignment and appending it to a list, the assignments all turn into &amp;lt;Assignment None&amp;gt;.&lt;/P&gt;&lt;P&gt;When attempting to batch_add said list of assignments, I get an error stating that 'NoneType' object has no 'properties', here is my setup:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;            NewLocates.append(
                workforce.Assignment(
                    project,
                    geometry=pt,
                    location=Location,
                    description=x,
                    priority=int(Priority),
                    work_order_id=Record["CaseNumber"],
                    assignment_type=TicketType,
                    status="unassigned",
                    due_date=TicketInfo['DueDate']
                )
            )
    print(NewLocates)
    project.assignments.batch_add(NewLocates)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea what could be happening here? I've attempted to batch add a single item in a list, and attempted to use just add, neither worked. I've also checked that every item inside of the Assignment function is valid, well valid to my mind.&lt;/P&gt;&lt;P&gt;What should I do next?&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jan 2025 21:21:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/strange-results-from-workforce-module/m-p/1577983#M11077</guid>
      <dc:creator>CodyPatterson</dc:creator>
      <dc:date>2025-01-22T21:21:09Z</dc:date>
    </item>
    <item>
      <title>Re: Strange results from Workforce Module</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/strange-results-from-workforce-module/m-p/1578301#M11078</link>
      <description>&lt;P&gt;Hey All,&lt;/P&gt;&lt;P&gt;Update, looks like there was a bug: &lt;A href="https://support.esri.com/en-us/bug/the-following-error-message-typeerror-object-of-type-fe-bug-000170045" target="_blank"&gt;https://support.esri.com/en-us/bug/the-following-error-message-typeerror-object-of-type-fe-bug-000170045&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This bug was about ArcGIS version 2.3, and when moving up to 2.4, it worked without most issues. I'm still having one or two, but nothing crazy.&lt;/P&gt;&lt;P&gt;Cody&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2025 17:04:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/strange-results-from-workforce-module/m-p/1578301#M11078</guid>
      <dc:creator>CodyPatterson</dc:creator>
      <dc:date>2025-01-23T17:04:17Z</dc:date>
    </item>
  </channel>
</rss>

