<!--
{
  "availability" : [
    "macCatalyst: 14.0.0 -",
    "macOS: 10.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Automator",
  "identifier" : "/documentation/Automator/AMError/Code",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Automator"
    ],
    "preciseIdentifier" : "c:@E@AMErrorCode"
  },
  "title" : "AMError.Code"
}
-->

# AMError.Code

Automator error codes.

```
enum Code
```

## Overview

These constants are <doc://com.apple.documentation/documentation/Foundation/NSError> code numbers in the Automator error domain ([`AMAutomatorErrorDomain`](/documentation/Automator/AMAutomatorErrorDomain)). You’ll obtain these error codes from the instances of <doc://com.apple.documentation/documentation/Foundation/NSError> returned, for example, by certain methods of [`AMWorkflow`](/documentation/Automator/AMWorkflow) and [`AMWorkflowController`](/documentation/Automator/AMWorkflowController). For related information, see [`AMActionErrorKey`](/documentation/Automator/AMActionErrorKey).

## Topics

### Workflow Errors

[`AMWorkflowActionsNotLoadedError`](/documentation/Automator/AMError/Code/workflowActionsNotLoadedError)

An error that indicates one of the actions of the workflow couldn’t be loaded.

[`AMWorkflowNewerActionVersionError`](/documentation/Automator/AMError/Code/workflowNewerActionVersionError)

An error that indicates an action in a workflow is newer than the installed action.

[`AMWorkflowNewerVersionError`](/documentation/Automator/AMError/Code/workflowNewerVersionError)

An error that indicates an attempt to open a workflow document that was saved with a newer version of Automator.

[`AMWorkflowNoEnabledActionsError`](/documentation/Automator/AMError/Code/workflowNoEnabledActionsError)

An error that indicates there are no enabled actions in the workflow.

[`AMWorkflowOlderActionVersionError`](/documentation/Automator/AMError/Code/workflowOlderActionVersionError)

An error that indicates an action in a workflow is older than the installed action.

[`AMWorkflowPropertyListInvalidError`](/documentation/Automator/AMError/Code/workflowPropertyListInvalidError)

An error that indicates an attempt to open a workflow document whose property list couldn’t be read.

### Workflow Runtime Errors

[`AMUserCanceledError`](/documentation/Automator/AMError/Code/userCanceledError)

An error that indicates the user cancelled.

### Action Errors

[`AMActionApplicationResourceError`](/documentation/Automator/AMError/Code/actionApplicationResourceError)

An error that indicates an app required by the action is not found.

[`AMActionApplicationVersionResourceError`](/documentation/Automator/AMError/Code/actionApplicationVersionResourceError)

An error that indicates an app required by the action is the wrong version.

[`AMActionArchitectureMismatchError`](/documentation/Automator/AMError/Code/actionArchitectureMismatchError)

An error that indicates the action’s binary is not compatible with the current processor.

[`AMActionExceptionError`](/documentation/Automator/AMError/Code/actionExceptionError)

An error that indicates an action encounters an exception while running.

[`AMActionExecutionError`](/documentation/Automator/AMError/Code/actionExecutionError)

An error that indicates an action encounters an error while running (reason unknown).

[`AMActionFailedGatekeeperError`](/documentation/Automator/AMError/Code/actionFailedGatekeeperError)

An error that indicates the action doesn’t meet the Gatekeeper security policy.

[`AMActionFileResourceError`](/documentation/Automator/AMError/Code/actionFileResourceError)

An error that indicates a file required by the action is not found.

[`AMActionInitializationError`](/documentation/Automator/AMError/Code/actionInitializationError)

An error that indicates Automator is unable to initialize an action (reason unknown).

[`AMActionInsufficientDataError`](/documentation/Automator/AMError/Code/actionInsufficientDataError)

An error that indicates the action requires input data to run, but none was supplied.

[`AMActionIsDeprecatedError`](/documentation/Automator/AMError/Code/actionIsDeprecatedError)

An error that indicates the action has been deprecated.

[`AMActionLicenseResourceError`](/documentation/Automator/AMError/Code/actionLicenseResourceError)

An error that indicates a license required by the action was not found.

[`AMActionLinkError`](/documentation/Automator/AMError/Code/actionLinkError)

An error that indicates the action’s executable failed to load due to linking issues.

[`AMActionLoadError`](/documentation/Automator/AMError/Code/actionLoadError)

An error that indicates the action’s executable failed to load.

[`AMActionMalwareError`](/documentation/Automator/AMError/Code/actionMalwareError)

An error that indicates the action has been identified as malware by XProtect.

[`AMActionNotLoadableError`](/documentation/Automator/AMError/Code/actionNotLoadableError)

An error that indicates the action’s executable is of a type that is not loadable in the current process.

[`AMActionPropertyListInvalidError`](/documentation/Automator/AMError/Code/actionPropertyListInvalidError)

An error that indicates the property list for an action is invalid.

[`AMActionQuarantineError`](/documentation/Automator/AMError/Code/actionQuarantineError)

An error that indicates action has been quarantined by XProtect, the antimalware system on the Mac.

[`AMActionRequiredActionResourceError`](/documentation/Automator/AMError/Code/actionRequiredActionResourceError)

An error that indicates an action required by the action is not loaded.

[`AMActionRuntimeMismatchError`](/documentation/Automator/AMError/Code/actionRuntimeMismatchError)

An error that indicates an attempt was made to load an action that is not compiled in a way that is compatible with the current app.

[`AMActionSignatureCorruptError`](/documentation/Automator/AMError/Code/actionSignatureCorruptError)

An error that indicates developer signature for this action is corrupted.

[`AMActionThirdPartyActionsNotAllowedError`](/documentation/Automator/AMError/Code/actionThirdPartyActionsNotAllowedError)

An error that indicates the action is a third party action, and loading it has not been allowed by the user.

[`AMActionXPCError`](/documentation/Automator/AMError/Code/actionXPCError)

An error that indicates the remote process running the action has crashed.

[`AMActionXProtectError`](/documentation/Automator/AMError/Code/actionXProtectError)

An error that indicates XProtect is unable to successfully analyze the action.

[`AMNoSuchActionError`](/documentation/Automator/AMError/Code/noSuchActionError)

An error that indicates the action could not be located on the system.

### Data Conversion Errors

[`AMConversionFailedError`](/documentation/Automator/AMError/Code/conversionFailedError)

An error that occurs when, for example, the converter encounters an error converting data from one type to another.

[`AMConversionNoDataError`](/documentation/Automator/AMError/Code/conversionNoDataError)

An error that occurs when the converter determines that the conversion, though possible, would produce a nil result.

[`AMConversionNotPossibleError`](/documentation/Automator/AMError/Code/conversionNotPossibleError)

An error that occurs when the converter determines that it is unable to convert from one data type to another.

## Relationships

### Conforms To

[`Equatable`](/documentation/Swift/Equatable)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`Hashable`](/documentation/Swift/Hashable)

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`Sendable`](/documentation/Swift/Sendable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)