Skip to content

[Bug] TaskStatus Validation Error - modified #132

@liamokeeffe42

Description

@liamokeeffe42

When the modified attribute on a TaskStatus attribute is null then the sdk throws a Validation Error and errors out. Currently, it is failing when attempting to pull in pending task statuses.

Paginating call, offset = 0
2026-03-31 22:09:11,001 - root - ERROR - Error retrieving pending tasks: 1 validation error for TaskStatus
modified
Input should be a valid datetime [type=datetime_type, input_value=None, input_type=NoneType]
For further information visit https://errors.pydantic.dev/2.10/v/datetime_type

try: with sailpoint.v2025.ApiClient(configuration) as api_client: api_instance = sailpoint.v2025.TaskManagementApi(api_client) all_pending_tasks = Paginator.paginate( api_instance.get_pending_tasks, result_limit=total_pending_tasks_count, limit=250 ) return all_pending_tasks except Exception as e: logger.error(f'Error retrieving pending tasks: {e}') raise Exception(f'Error retrieving pending tasks: {e}') from e

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