Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No options to pass userEnteredValue date for ['DATE_BEFORE', 'DATE_AFTER', 'DATE_ON_OR_BEFORE', 'DATE_ON_OR_AFTER'] conditions, force insert relative date only #600

Open
ayushmantiwari opened this issue Sep 16, 2024 · 0 comments

Comments

@ayushmantiwari
Copy link

json_values.append({'relativeDate': str(value)})

Error trace -

{
"message": "Error while generating gsheet template: <HttpError 400 when requesting
https://sheets.googleapis.com/v4/spreadsheets/16f0-iNIPPO3UgtBnSUWfTCc6uzatnJ4vyW8hCznJucI:batchUpdate?fields=%2A&alt=json
returned "Invalid value at 'requests[0].set_data_validation.rule.condition.values[0].relative_date' (type.googleapis.com/google.apps.sheets.v4.BooleanCondition.RelativeDate), "{'relativeDate': None, 'userEnteredValue': '10/10/2024'}"". Details: "[{'@type': 'type.googleapis.com/google.rpc.BadRequest', 'fieldViolations': [{'field': 'requests[0].set_data_validation.rule.condition.values[0].relative_date', 'description': 'Invalid value at \'requests[0].set_data_validation.rule.condition.values[0].relative_date\' (type.googleapis.com/google.apps.sheets.v4.BooleanCondition.RelativeDate), "{\'relativeDate\': None, \'userEnteredValue\': \'10/10/2024\'}"'}]}]">"
}

@ayushmantiwari ayushmantiwari changed the title No options to pass userEnteredValue date for ['DATE_BEFORE', 'DATE_AFTER', 'DATE_ON_OR_BEFORE', 'DATE_ON_OR_AFTER'] conditions, relative date only No options to pass userEnteredValue date for ['DATE_BEFORE', 'DATE_AFTER', 'DATE_ON_OR_BEFORE', 'DATE_ON_OR_AFTER'] conditions, force insert relative date only Sep 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant