<?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: Smartsheet to AGOL in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/smartsheet-to-agol/m-p/1385035#M9673</link>
    <description>&lt;P&gt;Did you clone your default environment and make sure that is where you installed your version of the sdk?&lt;/P&gt;</description>
    <pubDate>Wed, 21 Feb 2024 18:31:03 GMT</pubDate>
    <dc:creator>CraigCheeseman</dc:creator>
    <dc:date>2024-02-21T18:31:03Z</dc:date>
    <item>
      <title>Smartsheet to AGOL</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/smartsheet-to-agol/m-p/1381190#M9649</link>
      <description>&lt;P&gt;I am trying to follow the steps provided in this blog:&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-api-for-python-blog/updating-arcgis-online-hosted-feature-layer-with/ba-p/1113966" target="_blank" rel="noopener"&gt;https://community.esri.com/t5/arcgis-api-for-python-blog/updating-arcgis-online-hosted-feature-layer-with/ba-p/1113966&lt;/A&gt;&amp;nbsp;and cannot find a solution to encountered errors when running from the Python window in ArcGIS Pro 3.2.1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import smartsheet
import pandas as pd
from arcgis.gis import GIS

access_token = 'xxxxx'
smartsheet = smartsheet.Smartsheet(access_token)
sheetID = '1234567890'

def smartsheet_to_dataframe(sheet):
col_names = [col.title for col in sheet.columns]
row = []
for row in sheet.rows:
cells = []
for cell in row.cells:
cells.append(cell.value)
rows.append(cells)
data_frame = pd.DataFrame(rows, columns=col_names)
return data_frame

sheet = smartsheet.Sheets.get_sheet(sheetID)
df = smartsheet_to_dataframe(sheet)

output_csv = r"C:\TEMP\temp.csv"
df.to_csv(output_csv)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My attempts to run this script keep prompting the error:&amp;nbsp;&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;BR /&gt;File "&amp;lt;string&amp;gt;", line 22, in &amp;lt;module&amp;gt;&lt;BR /&gt;File "&amp;lt;string&amp;gt;", line 11, in smartsheet_to_dataframe&lt;BR /&gt;AttributeError: 'Error' object has no attribute 'columns'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Some digging made mention that the arcpy version the environment is directed to may not be compatible with the functions being used, but I have not been able to make any headway regarding that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for any help!&lt;/P&gt;</description>
      <pubDate>Mon, 12 Feb 2024 18:05:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/smartsheet-to-agol/m-p/1381190#M9649</guid>
      <dc:creator>drWood</dc:creator>
      <dc:date>2024-02-12T18:05:12Z</dc:date>
    </item>
    <item>
      <title>Re: Smartsheet to AGOL</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/smartsheet-to-agol/m-p/1381878#M9653</link>
      <description>&lt;P&gt;Haven't really ever used the smartsheet library myself, but frrom the sample code you posted (you should fix the indentation btw) I'd try renaming the variable on line 6 to something else, so it doesn't have the same name as the library you're trying to use.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2024 20:41:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/smartsheet-to-agol/m-p/1381878#M9653</guid>
      <dc:creator>Raul</dc:creator>
      <dc:date>2024-02-13T20:41:58Z</dc:date>
    </item>
    <item>
      <title>Re: Smartsheet to AGOL</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/smartsheet-to-agol/m-p/1385035#M9673</link>
      <description>&lt;P&gt;Did you clone your default environment and make sure that is where you installed your version of the sdk?&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2024 18:31:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/smartsheet-to-agol/m-p/1385035#M9673</guid>
      <dc:creator>CraigCheeseman</dc:creator>
      <dc:date>2024-02-21T18:31:03Z</dc:date>
    </item>
  </channel>
</rss>

