Execution Context Errors

Error Message

Scenario

Solution

The following environment variables are currently set: <environmentVariables>.

The operation you are trying to perform is not allowed with the current environment variable configuration.

Your current setup doesn't match any valid execution context.

For example, both SUITECLOUD_CI_PASSKEY and SUITECLOUD_FALLBACK_PASSKEY environment variables are set.

Check your environment variable setup for the execution context you want to use, and make sure it's set up right. For more information, see the Execution Context for Secure Credentials Storage table.

In the current execution context, you can perform only machine-to-machine authentication or operations that do not require authentication.

Only the SUITECLOUD_CI_PASSKEY environment variable is set, and you're trying to do operations that require NetSuite authentication.

If you want to use machine-to-machine authentication (CI/CD), set the SUITECLOUD_CI environment variable to 1.

If you want to use browser-based authentication, remove the SUITECLOUD_CI_PASSKEY environment variable.

Machine-to-machine authentication is not allowed for the current execution context.

You're trying to run machine-to-machine authentication, but the required environment variables aren't set up right.

Ensure that the you've set these environment variables:

  • SUITECLOUD_CI=1

  • SUITECLOUD_CI_PASSKEY (must contain 32 to 100 alphanumeric characters)

Browser-based authentication is not allowed for the current execution context.

The SUITECLOUD_CI_PASSKEY environment variable is set, and you're trying to run browser-based authentication.

Remove the SUITECLOUD_CI_PASSKEY environment variable.

Secure storage is available, but the SUITECLOUD_FALLBACK_PASSKEY is set. Remove the fallback passkey to use secure storage.

The SUITECLOUD_FALLBACK_PASSKEY environment was set when secure storage wasn't available, but it wasn't removed after you fixed secure storage.

Remove the SUITECLOUD_FALLBACK_PASSKEY environment variable.

Related Topics

General Notices