---
title: configurationInvalid
framework: networkextension
role: symbol
role_heading: Type Property
path: networkextension/nevpnerror-swift.struct/configurationinvalid
---

# configurationInvalid

An error code that indicates the VPN configuration associated with the VPN manager object is invalid.

## Declaration

```swift
static var configurationInvalid: NEVPNError.Code { get }
```

## Discussion

Discussion This error can occur in the following situations: The app or extension tried to save the configuration, but the configuration has missing or invalid configuration properties. The app or extension tried to use the configuration before being successfully saved to the Network Extension preferences. The app or extension tried to use the configuration before being successfully loaded from the Network Extension preferences.

## See Also

### Error codes

- [configurationDisabled](networkextension/nevpnerror-swift.struct/configurationdisabled.md)
- [connectionFailed](networkextension/nevpnerror-swift.struct/connectionfailed.md)
- [configurationStale](networkextension/nevpnerror-swift.struct/configurationstale.md)
- [configurationReadWriteFailed](networkextension/nevpnerror-swift.struct/configurationreadwritefailed.md)
- [configurationUnknown](networkextension/nevpnerror-swift.struct/configurationunknown.md)
