Skip to content
This repository was archived by the owner on Jan 9, 2023. It is now read-only.
This repository was archived by the owner on Jan 9, 2023. It is now read-only.

Getting error code 5536 while performing add_rows  #167

Description

@bharatsangale1

While adding rows in smartsheet, getting error like below
{"code": 5536, "errorCode": 5536, "message": "The value "2021-07-19T11:09:15.985641" could not be saved in column "COLUMN_NAME". This column is restricted to DATE values only.", "name": "ApiError", "recommendation": "Do not retry without fixing the problem. ", "refId": "34we3p681175", "shouldRetry": false, "statusCode": 400}

In Smartsheet, there is on column od type "Date" and also has "restrict to dates" checkbox checked. It is requirement.
As per API doc,
The Smartsheet API returns all dates and times in the UTC time zone in ISO-8601 format, that is, YYYY-MM-DDTHH:MM:SSZ. If you are specifying a date and time, you should also send that information in ISO-8601 format.

By using Python, I am sending date in ISO format only but still getting exception.
Python Code: datetime.now().isoformat()

Can anyone please help me in this case? Am I missing anything?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions