<?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: Exporting survey tables from SQLite file in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/exporting-survey-tables-from-sqlite-file/m-p/1241596#M46554</link>
    <description>&lt;P&gt;You want to look at the SQL Lite on the tablet?&amp;nbsp; That is a pretty interesting workflow.&amp;nbsp; Do some searches on a SQL Lite viewer on a tablet is all I can think of.&amp;nbsp; I doubt anything can make a csv on a tablet though.&lt;/P&gt;</description>
    <pubDate>Thu, 15 Dec 2022 16:48:48 GMT</pubDate>
    <dc:creator>DougBrowning</dc:creator>
    <dc:date>2022-12-15T16:48:48Z</dc:date>
    <item>
      <title>Exporting survey tables from SQLite file</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/exporting-survey-tables-from-sqlite-file/m-p/1241554#M46548</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;I would like to view either csv. outputs or excel workbook outputs of the survey responses from the SQLite file. I understand that I can resubmit surveys by copying the SQLite file into the database folder of the Survey123 Field App. However, I need to be able to review the survey submissions at the end of the day in table format without internet (similar format as if you were to export from the Survey123 website). I think the code provided by&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1213"&gt;@JamesTedrick&lt;/a&gt;&amp;nbsp;found here:&amp;nbsp;&lt;A href="https://github.com/tedrick/ReadS123DB" target="_blank"&gt;https://github.com/tedrick/ReadS123DB&lt;/A&gt;&amp;nbsp;will provide exactly what I need, however I am not sure how to make it run properly as I have no experience using Python.&lt;BR /&gt;&lt;BR /&gt;When double click the readDb file, it opens for a second and then creates the SQLite file seen below. However there is no output file(s) of the data.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dannigart_0-1671115665175.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/58643i58924E612C521287/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dannigart_0-1671115665175.png" alt="dannigart_0-1671115665175.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I found and used the response for issue: Error OUT_DIR does not exist" however this did not change anything.&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Danni&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 14:58:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/exporting-survey-tables-from-sqlite-file/m-p/1241554#M46548</guid>
      <dc:creator>dannigart</dc:creator>
      <dc:date>2022-12-15T14:58:12Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting survey tables from SQLite file</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/exporting-survey-tables-from-sqlite-file/m-p/1241558#M46549</link>
      <description>&lt;P&gt;You can use a free SQLLite browser like this one&amp;nbsp;&amp;nbsp;&lt;A href="https://sqlitebrowser.org/" target="_blank"&gt;https://sqlitebrowser.org/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Or even an online reader like this one&amp;nbsp;&lt;A href="https://sqliteviewer.app/" target="_blank"&gt;https://sqliteviewer.app/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I am not sure if SQL management studio can do it?&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 15:10:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/exporting-survey-tables-from-sqlite-file/m-p/1241558#M46549</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2022-12-15T15:10:59Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting survey tables from SQLite file</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/exporting-survey-tables-from-sqlite-file/m-p/1241592#M46553</link>
      <description>&lt;P&gt;Hi Doug,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your response. Do you know how to extract the data tables (similar to the format of how you can download them from the Survey123 website) from the methods you recommend? I am unable to, as the solutions online result in the SQLite file exported as a csv file, in which the data is still stored under the data column as one record for each survey submission. In contrast I need each&amp;nbsp;survey table exported as separate csv files.&lt;/P&gt;&lt;P&gt;Also, an online reader will not work as I am hoping to be able to review all survey responses from my device while in the field and off the grid.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Danni&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 16:39:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/exporting-survey-tables-from-sqlite-file/m-p/1241592#M46553</guid>
      <dc:creator>dannigart</dc:creator>
      <dc:date>2022-12-15T16:39:32Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting survey tables from SQLite file</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/exporting-survey-tables-from-sqlite-file/m-p/1241596#M46554</link>
      <description>&lt;P&gt;You want to look at the SQL Lite on the tablet?&amp;nbsp; That is a pretty interesting workflow.&amp;nbsp; Do some searches on a SQL Lite viewer on a tablet is all I can think of.&amp;nbsp; I doubt anything can make a csv on a tablet though.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 16:48:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/exporting-survey-tables-from-sqlite-file/m-p/1241596#M46554</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2022-12-15T16:48:48Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting survey tables from SQLite file</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/exporting-survey-tables-from-sqlite-file/m-p/1241605#M46556</link>
      <description>&lt;P&gt;I'll have the mobile device to complete the survey on survey123 field app, and then a laptop to copy the SQLite file. I'm just trying to extract the data tables from an SQLite file (on my laptop), however the DB Browser and SQLiteStudio are simply exporting the SQLite file as a csv which is not what I need. Do you know how to extract the individual survey tables from the SQLite file on a Windows laptop/PC?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 17:03:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/exporting-survey-tables-from-sqlite-file/m-p/1241605#M46556</guid>
      <dc:creator>dannigart</dc:creator>
      <dc:date>2022-12-15T17:03:35Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting survey tables from SQLite file</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/exporting-survey-tables-from-sqlite-file/m-p/1241633#M46557</link>
      <description>&lt;P&gt;Its been several years since I have done it but in the SQL Lite browser I had you could dig in and find the table you want and export just that table.&amp;nbsp; I think that is what you want?&amp;nbsp; Sorry you kinda lost me.&amp;nbsp; I would try a few more browsers to find that you need.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 17:41:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/exporting-survey-tables-from-sqlite-file/m-p/1241633#M46557</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2022-12-15T17:41:01Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting survey tables from SQLite file</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/exporting-survey-tables-from-sqlite-file/m-p/1241654#M46558</link>
      <description>&lt;P&gt;Maybe the format of my SQLite file is different than to what you are familiar with. The SQLite file consists of one table, each row is information about each survey submitted however the actual responses associated with each survey question are stored into one cell in JSON format. From the picture below, the SQLite file contains a table called "Surveys" with 7 rows, each one a survey submission.&amp;nbsp; Exporting this table as a csv is not helpful because the actual answers to the survey questions are still hidden in JSON format within one cell (column labeled "data").&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dannigart_0-1671127689052.png" style="width: 679px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/58661i2765F57BDE516E4F/image-dimensions/679x235?v=v2" width="679" height="235" role="button" title="dannigart_0-1671127689052.png" alt="dannigart_0-1671127689052.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If this is not familiar to you, maybe I'll go back to my original option of using the python code provided by &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1213"&gt;@JamesTedrick&lt;/a&gt;&amp;nbsp;.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 18:16:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/exporting-survey-tables-from-sqlite-file/m-p/1241654#M46558</guid>
      <dc:creator>dannigart</dc:creator>
      <dc:date>2022-12-15T18:16:08Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting survey tables from SQLite file</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/exporting-survey-tables-from-sqlite-file/m-p/1678362#M65207</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/635194"&gt;@dannigart&lt;/a&gt;, were you able to get this working? I used it successfully yesterday after finding it through this thread, and it created a set of CSVs just as I had hoped (for a complex survey with repeats).&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you download and unzip the whole repo, just copy your target sqlite database into that directory and create a subdirectory called "out" (which will fix the "Error OUT_DIR does not exist" problem). It should look like this (changes outlined in red):&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2026-01-16_08-39-00.png" style="width: 309px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/146891i3EAA1C03D0452713/image-size/large?v=v2&amp;amp;px=999" role="button" title="2026-01-16_08-39-00.png" alt="2026-01-16_08-39-00.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;The other thing you will need to do is to edit the script so that it knows the name of your target sqlite database (that's why it's creating that empty sqlite file). You can open readDb.py in any basic text editor or IDE (Notepad, Notepad++, VSCode, IDLE, PyCharm, etc.) to make this change. On line 11, the "IN_DB" variable is declared, which tells the script the name of your target sqlite database. Here's what that line will look like:&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;IN_DB&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;r&lt;/SPAN&gt;&lt;SPAN&gt;'./a084e65cd9403d813e8ec667ca329a63.sqlite'&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;All you need to do is replace '&lt;SPAN&gt;a084e65cd9403d813e8ec667ca329a63.sqlite' with the name of your target sqlite database, save the change, and THEN run readDb.py (may need to close it first if not editing with an IDE). For the purposes of my example, you would change line 11 to:&lt;BR /&gt;&lt;BR /&gt;IN_DB = r'./YOUR_S123_BACKUP_FROM_MOBILE_DEVICE.sqlite'&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 16 Jan 2026 14:48:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/exporting-survey-tables-from-sqlite-file/m-p/1678362#M65207</guid>
      <dc:creator>EvanR</dc:creator>
      <dc:date>2026-01-16T14:48:08Z</dc:date>
    </item>
  </channel>
</rss>

