<?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 NumPyArrayToTable returning RuntimeError: create table in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/numpyarraytotable-returning-runtimeerror-create/m-p/1160784#M64272</link>
    <description>&lt;P&gt;One of my scripts uses arcpy.da.NumPyArrayToTable. I ran this script about 2 years ago without incident. Now, it is throwing the error:&lt;/P&gt;&lt;P&gt;RuntimeError: create table&lt;/P&gt;&lt;P&gt;This is the output of the print statement of my array that I'm trying to copy over to a table:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;array([('S1', 'G5', 3778,  14702, 'PDSAL02240', 'Salix pedicellaris', 'Bog Willow', None, None, 'Y', None, 'N', 'PE', None, None, None, None, 'N', 'EXCLUDE from ER per DCNR 2019-01-02 (P19BOW01).', None, None, None, None, None, '28-Feb-22', 'G5', 'S1', 'in biotics', 'G5', 'S1', 0.6, 0.008, 0.33333333),
       ('S1', 'G3G5', 7384, 478722, 'NBMUS1A1B0', 'Ptychostomum cernuum', None, None, None, 'Y', None, None, None, None, None, None, None, 'N', None, None, None, None, None, None, '28-Feb-22', 'G4', 'S1', None, 'G4', 'S1', 0.7, 0.   ,        nan),
       ...,
       ('SX', 'G4G5', 4113,  15067, 'PMCYP036C0', 'Carex hyalinolepis', 'Shore-line Sedge', None, None, 'Y', None, 'PX', 'PX', None, None, None, None, 'N', None, None, None, None, None, None, '28-Feb-22', 'G4', 'SX', 'in biotics', 'G4', 'SX', 0. , 0.   ,        nan),
      dtype=(numpy.record, [('SRANK', '&amp;lt;U4'), ('GRANK', '&amp;lt;U9'), ('OBJECTID', '&amp;lt;i4'), ('ELSUBID', '&amp;lt;i4'), ('ELCODE', '&amp;lt;U10'), ('SNAME', '&amp;lt;U46'), ('SCOMNAME', 'O'), ('SRANK_CHGD', 'O'), ('SRANK_RVWD', 'O'), ('EO_TRACK', 'O'), ('USESA', 'O'), ('SPROT', 'O'), ('PBSSTATUS', 'O'), ('PBSDATE', 'O'), ('PBSQUAL', 'O'), ('SGCN', 'O'), ('SGCN_COM', 'O'), ('SENSITV_SP', '&amp;lt;U1'), ('ER_RULE', 'O'), ('MOD_BY', 'O'), ('MOD_DATE', 'O'), ('CHG_TYPE', 'O'), ('CHG_INFO', 'O'), ('CHG_SRC', 'O'), ('EXPT_DATE', '&amp;lt;U9'), ('Rounded_GRANK', 'O'), ('Rounded_SRANK', '&amp;lt;U3'), ('temp_taxostatus', 'O'), ('GRANK_rounded', '&amp;lt;U3'), ('SRANK_rounded', '&amp;lt;U3'), ('rank_score', '&amp;lt;f8'), ('resp_score', '&amp;lt;f8'), ('rarity_score', '&amp;lt;f8')]))&lt;/LI-CODE&gt;&lt;P&gt;Just checking to see if anyone can see any issues in the array that might be throwing this error or if anyone has any other ideas about what I can try to do to fix the issue. Thanks!&lt;/P&gt;</description>
    <pubDate>Mon, 04 Apr 2022 15:07:08 GMT</pubDate>
    <dc:creator>MollyMoore</dc:creator>
    <dc:date>2022-04-04T15:07:08Z</dc:date>
    <item>
      <title>NumPyArrayToTable returning RuntimeError: create table</title>
      <link>https://community.esri.com/t5/python-questions/numpyarraytotable-returning-runtimeerror-create/m-p/1160784#M64272</link>
      <description>&lt;P&gt;One of my scripts uses arcpy.da.NumPyArrayToTable. I ran this script about 2 years ago without incident. Now, it is throwing the error:&lt;/P&gt;&lt;P&gt;RuntimeError: create table&lt;/P&gt;&lt;P&gt;This is the output of the print statement of my array that I'm trying to copy over to a table:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;array([('S1', 'G5', 3778,  14702, 'PDSAL02240', 'Salix pedicellaris', 'Bog Willow', None, None, 'Y', None, 'N', 'PE', None, None, None, None, 'N', 'EXCLUDE from ER per DCNR 2019-01-02 (P19BOW01).', None, None, None, None, None, '28-Feb-22', 'G5', 'S1', 'in biotics', 'G5', 'S1', 0.6, 0.008, 0.33333333),
       ('S1', 'G3G5', 7384, 478722, 'NBMUS1A1B0', 'Ptychostomum cernuum', None, None, None, 'Y', None, None, None, None, None, None, None, 'N', None, None, None, None, None, None, '28-Feb-22', 'G4', 'S1', None, 'G4', 'S1', 0.7, 0.   ,        nan),
       ...,
       ('SX', 'G4G5', 4113,  15067, 'PMCYP036C0', 'Carex hyalinolepis', 'Shore-line Sedge', None, None, 'Y', None, 'PX', 'PX', None, None, None, None, 'N', None, None, None, None, None, None, '28-Feb-22', 'G4', 'SX', 'in biotics', 'G4', 'SX', 0. , 0.   ,        nan),
      dtype=(numpy.record, [('SRANK', '&amp;lt;U4'), ('GRANK', '&amp;lt;U9'), ('OBJECTID', '&amp;lt;i4'), ('ELSUBID', '&amp;lt;i4'), ('ELCODE', '&amp;lt;U10'), ('SNAME', '&amp;lt;U46'), ('SCOMNAME', 'O'), ('SRANK_CHGD', 'O'), ('SRANK_RVWD', 'O'), ('EO_TRACK', 'O'), ('USESA', 'O'), ('SPROT', 'O'), ('PBSSTATUS', 'O'), ('PBSDATE', 'O'), ('PBSQUAL', 'O'), ('SGCN', 'O'), ('SGCN_COM', 'O'), ('SENSITV_SP', '&amp;lt;U1'), ('ER_RULE', 'O'), ('MOD_BY', 'O'), ('MOD_DATE', 'O'), ('CHG_TYPE', 'O'), ('CHG_INFO', 'O'), ('CHG_SRC', 'O'), ('EXPT_DATE', '&amp;lt;U9'), ('Rounded_GRANK', 'O'), ('Rounded_SRANK', '&amp;lt;U3'), ('temp_taxostatus', 'O'), ('GRANK_rounded', '&amp;lt;U3'), ('SRANK_rounded', '&amp;lt;U3'), ('rank_score', '&amp;lt;f8'), ('resp_score', '&amp;lt;f8'), ('rarity_score', '&amp;lt;f8')]))&lt;/LI-CODE&gt;&lt;P&gt;Just checking to see if anyone can see any issues in the array that might be throwing this error or if anyone has any other ideas about what I can try to do to fix the issue. Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 04 Apr 2022 15:07:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/numpyarraytotable-returning-runtimeerror-create/m-p/1160784#M64272</guid>
      <dc:creator>MollyMoore</dc:creator>
      <dc:date>2022-04-04T15:07:08Z</dc:date>
    </item>
    <item>
      <title>Re: NumPyArrayToTable returning RuntimeError: create table</title>
      <link>https://community.esri.com/t5/python-questions/numpyarraytotable-returning-runtimeerror-create/m-p/1160858#M64273</link>
      <description>&lt;P&gt;Hello Molly,&lt;/P&gt;&lt;P&gt;I am no expert in arrays, but I found this thread that may offer some help for your issue.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/python-questions/arcpy-da-numpyarraytotable-returns-quot/m-p/756281#M58335" target="_blank"&gt;https://community.esri.com/t5/python-questions/arcpy-da-numpyarraytotable-returns-quot/m-p/756281#M58335&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Apr 2022 17:20:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/numpyarraytotable-returning-runtimeerror-create/m-p/1160858#M64273</guid>
      <dc:creator>ABishop</dc:creator>
      <dc:date>2022-04-04T17:20:14Z</dc:date>
    </item>
    <item>
      <title>Re: NumPyArrayToTable returning RuntimeError: create table</title>
      <link>https://community.esri.com/t5/python-questions/numpyarraytotable-returning-runtimeerror-create/m-p/1160894#M64276</link>
      <description>&lt;P&gt;format issues.&amp;nbsp; and really long lines but, here you go.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;dt = [('SRANK', '&amp;lt;U4'), ('GRANK', '&amp;lt;U9'), ('OBJECTID', '&amp;lt;i4'),
      ('ELSUBID', '&amp;lt;i4'), ('ELCODE', '&amp;lt;U10'), ('SNAME', '&amp;lt;U46'),
      ('SCOMNAME', 'O'), ('SRANK_CHGD', 'O'), ('SRANK_RVWD', 'O'),
      ('EO_TRACK', 'O'), ('USESA', 'O'), ('SPROT', 'O'), ('PBSSTATUS', 'O'),
      ('PBSDATE', 'O'), ('PBSQUAL', 'O'), ('SGCN', 'O'), ('SGCN_COM', 'O'),
      ('SENSITV_SP', '&amp;lt;U1'), ('ER_RULE', 'O'), ('MOD_BY', 'O'),
      ('MOD_DATE', 'O'), ('CHG_TYPE', 'O'), ('CHG_INFO', 'O'),
      ('CHG_SRC', 'O'), ('EXPT_DATE', '&amp;lt;U9'), ('Rounded_GRANK', 'O'),
      ('Rounded_SRANK', '&amp;lt;U3'), ('temp_taxostatus', 'O'),
      ('GRANK_rounded', '&amp;lt;U3'), ('SRANK_rounded', '&amp;lt;U3'),
      ('rank_score', '&amp;lt;f8'), ('resp_score', '&amp;lt;f8'), ('rarity_score', '&amp;lt;f8')]


z = np.array([
        ('S1', 'G5', 3778,  14702, 'PDSAL02240', 'Salix pedicellaris',
         'Bog Willow', None, None, 'Y', None, 'N', 'PE',
         None, None, None, None, 'N',
         'EXCLUDE from ER per DCNR 2019-01-02 (P19BOW01).',
         None, None, None, None, None, '28-Feb-22', 'G5', 'S1',
         'in biotics', 'G5', 'S1', 0.6, 0.008, 0.33333333),
        ('S1', 'G3G5', 7384, 478722, 'NBMUS1A1B0', 'Ptychostomum cernuum',
         None, None, None, 'Y', None, None, None, None, None, None, None,
         'N', None, None, None, None, None, None, '28-Feb-22', 'G4', 'S1',
         None, 'G4', 'S1', 0.7, 0.,  np.nan),
        ('SX', 'G4G5', 4113,  15067, 'PMCYP036C0', 'Carex hyalinolepis',
         'Shore-line Sedge', None, None, 'Y', None, 'PX', 'PX', None, None,
         None, None, 'N', None, None, None, None, None, None, '28-Feb-22',
         'G4', 'SX', 'in biotics', 'G4', 'SX', 0., 0., np.nan)],
        dtype=dt)

# --- an example
z['resp_score']
array([  0.01,   0.00,   0.00])&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 04 Apr 2022 18:33:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/numpyarraytotable-returning-runtimeerror-create/m-p/1160894#M64276</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2022-04-04T18:33:34Z</dc:date>
    </item>
  </channel>
</rss>

