API AttributeError: data

Options
  1. DEBUG:smartsheet.util:object 'Sheet' is missing property 'resource_management_type'
  2. DEBUG:smartsheet.util:object 'Sheet' is missing property 'cell_image_upload_enabled'
  3. DEBUG:smartsheet.util:object 'Sheet' is missing property 'is_multi_picklist_enabled'
  4. Traceback (most recent call last):
  5. File "/mnt/send_to_smartsheet/Move_Archive.py", line 60, in <module>
  6. main()
  7. File "/mnt/send_to_smartsheet/Move_Archive.py", line 52, in main
  8. move_rows_to_new_sheet()
  9. File "/mnt/send_to_smartsheet/Move_Archive.py", line 38, in move_rows_to_new_sheet
  10. rows = response.data.rows
  11. File "/opt/conda/lib/python3.9/site-packages/smartsheet/models/sheet.py", line 98, in __getattr__
  12. raise AttributeError(key)

Does anyone have a work around for this. This is the referenced code below

def move_rows_to_new_sheet():

response = SS.Sheets.get_sheet(SOURCE_SHEET_ID, include='rows')

rows = response.data.rows

for row in rows:

new_row = SS.Sheets.create_row(DESTINATION_SHEET_ID, row)

move_row_to_new_sheet(new_row.id)

Answers