<?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: Export Attatchments From Table. AttributeError: 'NoneType' object has no attribute 'tobytes' in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/export-attatchments-from-table-attributeerror/m-p/1227463#M44281</link>
    <description>&lt;P&gt;Thanks for the tip! I just checked and there doesn't appear to be any records with DATA_SIZE = 0&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 01 Nov 2022 14:24:53 GMT</pubDate>
    <dc:creator>drewcole232</dc:creator>
    <dc:date>2022-11-01T14:24:53Z</dc:date>
    <item>
      <title>Export Attatchments From Table. AttributeError: 'NoneType' object has no attribute 'tobytes'</title>
      <link>https://community.esri.com/t5/data-management-questions/export-attatchments-from-table-attributeerror/m-p/1227438#M44279</link>
      <description>&lt;P&gt;Any ideas on why this might erroring out? I have tried it on another database and it worked. I made some modifications to the original script, but the same error remains.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Update: It actually does copy 36 PDFs to a folder successfully before the error. Not sure why yet. I'm would expect 400+ attachments, I will keep digging.&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="drewcole232_0-1667309258105.png" style="width: 875px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/54960iEAF183A6C322313B/image-dimensions/875x516?v=v2" width="875" height="516" role="button" title="drewcole232_0-1667309258105.png" alt="drewcole232_0-1667309258105.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Nov 2022 18:09:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/export-attatchments-from-table-attributeerror/m-p/1227438#M44279</guid>
      <dc:creator>drewcole232</dc:creator>
      <dc:date>2022-11-01T18:09:28Z</dc:date>
    </item>
    <item>
      <title>Re: Export Attatchments From Table. AttributeError: 'NoneType' object has no attribute 'tobytes'</title>
      <link>https://community.esri.com/t5/data-management-questions/export-attatchments-from-table-attributeerror/m-p/1227457#M44280</link>
      <description>&lt;P&gt;Seems like you have empty attachments. Are there entries with DATA_SIZE = 0 ?&lt;/P&gt;&lt;P&gt;Try to include a where clause in the cursor:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;with da.SearchCursor(inTable, ["DATA", "ATT_NAME"], "DATA IS NOT NULL") as cursor:
    #...&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 01 Nov 2022 14:11:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/export-attatchments-from-table-attributeerror/m-p/1227457#M44280</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2022-11-01T14:11:33Z</dc:date>
    </item>
    <item>
      <title>Re: Export Attatchments From Table. AttributeError: 'NoneType' object has no attribute 'tobytes'</title>
      <link>https://community.esri.com/t5/data-management-questions/export-attatchments-from-table-attributeerror/m-p/1227463#M44281</link>
      <description>&lt;P&gt;Thanks for the tip! I just checked and there doesn't appear to be any records with DATA_SIZE = 0&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Nov 2022 14:24:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/export-attatchments-from-table-attributeerror/m-p/1227463#M44281</guid>
      <dc:creator>drewcole232</dc:creator>
      <dc:date>2022-11-01T14:24:53Z</dc:date>
    </item>
    <item>
      <title>Re: Export Attatchments From Table. AttributeError: 'NoneType' object has no attribute 'tobytes'</title>
      <link>https://community.esri.com/t5/data-management-questions/export-attatchments-from-table-attributeerror/m-p/1227582#M44283</link>
      <description>&lt;P&gt;Update: It actually does copy 36 PDFs to a folder successfully. Not sure why yet. I'm would expect 400+ attachments, I will keep digging.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Nov 2022 18:08:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/export-attatchments-from-table-attributeerror/m-p/1227582#M44283</guid>
      <dc:creator>drewcole232</dc:creator>
      <dc:date>2022-11-01T18:08:09Z</dc:date>
    </item>
    <item>
      <title>Re: Export Attatchments From Table. AttributeError: 'NoneType' object has no attribute 'tobytes'</title>
      <link>https://community.esri.com/t5/data-management-questions/export-attatchments-from-table-attributeerror/m-p/1227594#M44284</link>
      <description>&lt;P&gt;I decided to try this even though I couldn't find any entries with DATA_SIZE = 0 and it worked. Maybe there were some corrupt records or something, I'm not sure yet, but thank you!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Nov 2022 18:22:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/export-attatchments-from-table-attributeerror/m-p/1227594#M44284</guid>
      <dc:creator>drewcole232</dc:creator>
      <dc:date>2022-11-01T18:22:24Z</dc:date>
    </item>
  </channel>
</rss>

