Error whilst processing operation: You are not connected to a company

Symptom

At task run time, the step fails with the error:

An error occurred whilst processing the operation: You are not connected to a company

Cause

The error occurs when the user setup under the ‘Authentication’ tab in the global connection setting, has no license assigned within SAP Business One, or the license has expired.

Solution

From the SAP Business One Main Menu, choose Administration -> License ->License Administration, and assign a license to the user.