---
title: AMError.Code
framework: Automator
role: symbol
role_heading: Enumeration
platforms: [Mac Catalyst 14.0+, macOS 10.4+]
path: automator/amerror/code
---

# AMError.Code

Automator error codes.

## Declaration

```swift
enum Code
```

## Overview

Overview These constants are NSError code numbers in the Automator error domain (AMAutomatorErrorDomain). You’ll obtain these error codes from the instances of NSError returned, for example, by certain methods of AMWorkflow and AMWorkflowController. For related information, see AMActionErrorKey.

## Topics

### Workflow Errors

- [AMError.Code.workflowActionsNotLoadedError](automator/amerror/code/workflowactionsnotloadederror.md)
- [AMError.Code.workflowNewerActionVersionError](automator/amerror/code/workflowneweractionversionerror.md)
- [AMError.Code.workflowNewerVersionError](automator/amerror/code/workflownewerversionerror.md)
- [AMError.Code.workflowNoEnabledActionsError](automator/amerror/code/workflownoenabledactionserror.md)
- [AMError.Code.workflowOlderActionVersionError](automator/amerror/code/workflowolderactionversionerror.md)
- [AMError.Code.workflowPropertyListInvalidError](automator/amerror/code/workflowpropertylistinvaliderror.md)

### Workflow Runtime Errors

- [AMError.Code.userCanceledError](automator/amerror/code/usercancelederror.md)

### Action Errors

- [AMError.Code.actionApplicationResourceError](automator/amerror/code/actionapplicationresourceerror.md)
- [AMError.Code.actionApplicationVersionResourceError](automator/amerror/code/actionapplicationversionresourceerror.md)
- [AMError.Code.actionArchitectureMismatchError](automator/amerror/code/actionarchitecturemismatcherror.md)
- [AMError.Code.actionExceptionError](automator/amerror/code/actionexceptionerror.md)
- [AMError.Code.actionExecutionError](automator/amerror/code/actionexecutionerror.md)
- [AMError.Code.actionFailedGatekeeperError](automator/amerror/code/actionfailedgatekeepererror.md)
- [AMError.Code.actionFileResourceError](automator/amerror/code/actionfileresourceerror.md)
- [AMError.Code.actionInitializationError](automator/amerror/code/actioninitializationerror.md)
- [AMError.Code.actionInsufficientDataError](automator/amerror/code/actioninsufficientdataerror.md)
- [AMError.Code.actionIsDeprecatedError](automator/amerror/code/actionisdeprecatederror.md)
- [AMError.Code.actionLicenseResourceError](automator/amerror/code/actionlicenseresourceerror.md)
- [AMError.Code.actionLinkError](automator/amerror/code/actionlinkerror.md)
- [AMError.Code.actionLoadError](automator/amerror/code/actionloaderror.md)
- [AMError.Code.actionMalwareError](automator/amerror/code/actionmalwareerror.md)
- [AMError.Code.actionNotLoadableError](automator/amerror/code/actionnotloadableerror.md)
- [AMError.Code.actionPropertyListInvalidError](automator/amerror/code/actionpropertylistinvaliderror.md)
- [AMError.Code.actionQuarantineError](automator/amerror/code/actionquarantineerror.md)
- [AMError.Code.actionRequiredActionResourceError](automator/amerror/code/actionrequiredactionresourceerror.md)
- [AMError.Code.actionRuntimeMismatchError](automator/amerror/code/actionruntimemismatcherror.md)
- [AMError.Code.actionSignatureCorruptError](automator/amerror/code/actionsignaturecorrupterror.md)
- [AMError.Code.actionThirdPartyActionsNotAllowedError](automator/amerror/code/actionthirdpartyactionsnotallowederror.md)
- [AMError.Code.actionXPCError](automator/amerror/code/actionxpcerror.md)
- [AMError.Code.actionXProtectError](automator/amerror/code/actionxprotecterror.md)
- [AMError.Code.noSuchActionError](automator/amerror/code/nosuchactionerror.md)

### Data Conversion Errors

- [AMError.Code.conversionFailedError](automator/amerror/code/conversionfailederror.md)
- [AMError.Code.conversionNoDataError](automator/amerror/code/conversionnodataerror.md)
- [AMError.Code.conversionNotPossibleError](automator/amerror/code/conversionnotpossibleerror.md)

### Initializers

- [init(rawValue:)](automator/amerror/code/init(rawvalue:).md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Errors

- [AMAutomatorErrorDomain](automator/amautomatorerrordomain.md)
- [AMActionErrorKey](automator/amactionerrorkey.md)
- [AMError](automator/amerror.md)
