Orchestrator workflows using the vSphere plugin fail due to error "The operation is not allowed in the current state."
search cancel

Orchestrator workflows using the vSphere plugin fail due to error "The operation is not allowed in the current state."

book

Article ID: 430025

calendar_today

Updated On:

Products

VCF Operations/Automation (formerly VMware Aria Suite)

Issue/Introduction

Orchestrator workflows using the vSphere plugin and using example code "taskManager.createCollectorForTasks()" may fail with error "The operation is not allowed in the current state."

Environment

Aria Orchestrator 8.18.x

Cause

Using the CreateCollectorForTasks method of the TaskManager (or its alternative in the EventManager) creates a TaskHistoryCollector but there is a limited number of those that can exist concurrently. The above error can indicate that the workflow/session has hit that limit.

Detailed in the vSphere SDK Programming Guide.

Resolution

Use vSphere API option "DestroyCollector" to avoid hitting the the maxCollectors limit in the current vSphere session.

Example workflow command: "collector.destroyCollector()"

Described in vSphere API documentation [Link].