Skip to content

PROCESS_SCHEDULE failed on "Cannot set a frame with no defined index " #31

@fyliu

Description

@fyliu

I saw this several days ago. Looks like it's expecting a value that's not there. The data retrieval may be incomplete but there's no way to tell. We may need some kind of validation for incoming data.

 root@a394df3c48f8:/app# bash tasks/DAILY_AT_2AM.sh
2019-11-29T03:13:20.002946+00:00,GET_SCHEDULE completed successfully
2019-11-29T03:13:32.189679+00:00,Cannot set a frame with no defined index and a value that cannot be converted to a Series
  File "src/main.py", line 14, in main
    outcome = ACTIONS[command](ctx, datetime)
  File "/app/src/actions.py", line 14, in <lambda>
    'PROCESS_SCHEDULE': lambda ctx, dt: process_schedule(ctx, dt),
  File "/app/src/library/process_schedule.py", line 25, in process_schedule
    line_schedule = scheduleTimeToDateTime(line_schedule, start_date)
  File "/app/src/library/analyzer/schedule.py", line 18, in scheduleTimeToDateTime
    lambda row: makeDateTime(date, row["arrival_time"]).to_iso8601_string(), axis=1
  File "/usr/local/lib/python3.6/site-packages/pandas/core/frame.py", line 3487, in __setitem__
    self._set_item(key, value)
  File "/usr/local/lib/python3.6/site-packages/pandas/core/frame.py", line 3563, in _set_item
    self._ensure_valid_index(value)
  File "/usr/local/lib/python3.6/site-packages/pandas/core/frame.py", line 3543, in _ensure_valid_index
    "Cannot set a frame with no defined index "
2019-11-29T03:13:32.189679+00:00,PROCESS_SCHEDULE failed

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions