<!--
{
  "availability" : [
    "iOS: 13.4.0 -",
    "iPadOS: 13.4.0 -",
    "macCatalyst: 13.4.0 -",
    "macOS: -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.2.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "PassKit",
  "identifier" : "/documentation/PassKit/PKAddSecureElementPassError/invalidConfigurationError",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "PassKit (Apple Pay and Wallet)"
    ],
    "preciseIdentifier" : "s:SC31PKAddSecureElementPassErrorCodeLeV020invalidConfigurationE0SoAAVvpZ"
  },
  "title" : "invalidConfigurationError"
}
-->

# invalidConfigurationError

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

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

## Discussion

Before you attempt to add a Secure Element pass, validate its configuration using the [`canAddSecureElementPass(configuration:)`](/documentation/PassKit/PKAddSecureElementPassViewController/canAddSecureElementPass(configuration:)) method.

---

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)