<?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 How to copy assignments to another feature class with Python script? in ArcGIS Workforce Questions</title>
    <link>https://community.esri.com/t5/arcgis-workforce-questions/how-to-copy-assignments-to-another-feature-class/m-p/772400#M250</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm attempting to use the copy_assignment_to_fc.py script found on GitHub to copy assignments earlier than a certain date to a separate feature class. The script keeps getting hung up on the "-where" parameter.&amp;nbsp; So I keep getting errors saying it cannot perform query. Invalid query parameters.&amp;nbsp; I need some direction on the format of that portion I guess. Below is what I've tried without success. &lt;A href="https://community.esri.com/migrated-users/248893"&gt;Aaron Pulver&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;-where "completedDate &amp;lt;= DATE '02/01/2019'"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;SPAN&gt;-where "1=1"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;The attached screenshot is of the Python Command Prompt using the "1=1" argument.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 31 May 2019 20:56:24 GMT</pubDate>
    <dc:creator>LaneHartman</dc:creator>
    <dc:date>2019-05-31T20:56:24Z</dc:date>
    <item>
      <title>How to copy assignments to another feature class with Python script?</title>
      <link>https://community.esri.com/t5/arcgis-workforce-questions/how-to-copy-assignments-to-another-feature-class/m-p/772400#M250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm attempting to use the copy_assignment_to_fc.py script found on GitHub to copy assignments earlier than a certain date to a separate feature class. The script keeps getting hung up on the "-where" parameter.&amp;nbsp; So I keep getting errors saying it cannot perform query. Invalid query parameters.&amp;nbsp; I need some direction on the format of that portion I guess. Below is what I've tried without success. &lt;A href="https://community.esri.com/migrated-users/248893"&gt;Aaron Pulver&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;-where "completedDate &amp;lt;= DATE '02/01/2019'"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;SPAN&gt;-where "1=1"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;The attached screenshot is of the Python Command Prompt using the "1=1" argument.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 May 2019 20:56:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-workforce-questions/how-to-copy-assignments-to-another-feature-class/m-p/772400#M250</guid>
      <dc:creator>LaneHartman</dc:creator>
      <dc:date>2019-05-31T20:56:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to copy assignments to another feature class with Python script?</title>
      <link>https://community.esri.com/t5/arcgis-workforce-questions/how-to-copy-assignments-to-another-feature-class/m-p/772401#M251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It looks like it's actually failing to query the target features. If you look at the script it's calling&lt;/P&gt;&lt;PRE style="color: #a9b7c6; background-color: #2b2b2b; font-size: 9.0pt;"&gt;target_fl.query(&lt;SPAN style="color: #aa4926;"&gt;out_fields&lt;/SPAN&gt;=field_mappings[project._assignment_schema.global_id])&lt;/PRE&gt;&lt;P&gt;You may want to check your field mappings to make sure it's correct. It queries to get all of the global ids (so it doesn't duplicate any features).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jun 2019 00:33:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-workforce-questions/how-to-copy-assignments-to-another-feature-class/m-p/772401#M251</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2019-06-04T00:33:45Z</dc:date>
    </item>
  </channel>
</rss>

