---
title: invalidConfigurationError
framework: passkit
role: symbol
role_heading: Type Property
path: passkit/pkaddsecureelementpasserror/invalidconfigurationerror
---

# invalidConfigurationError

An error that occurs when they system attempts to add a Secure Element pass using an invalid configuration.

## Declaration

```swift
static var invalidConfigurationError: PKAddSecureElementPassError.Code { get }
```

## Discussion

Discussion Before you attempt to add a Secure Element pass, validate its configuration using the canAddSecureElementPass(configuration:) method.

## See Also

### Identifying errors

- [deviceNotReadyError](passkit/pkaddsecureelementpasserror/devicenotreadyerror.md)
- [deviceNotSupportedError](passkit/pkaddsecureelementpasserror/devicenotsupportederror.md)
- [unavailableError](passkit/pkaddsecureelementpasserror/unavailableerror.md)
- [unknownError](passkit/pkaddsecureelementpasserror/unknownerror.md)
- [userCanceledError](passkit/pkaddsecureelementpasserror/usercancelederror.md)
- [PKAddSecureElementPassError.Code](passkit/pkaddsecureelementpasserror/code.md)
