---
title: CarKeyErrorCode.SessionNotActive
framework: CarKey
role: symbol
role_heading: Case
platforms: [iOS 16.0+, iPadOS 16.0+, Mac Catalyst 16.0+, macOS 13.3+, watchOS 9.0+]
path: carkey/carkeyerrorcode/sessionnotactive
---

# CarKeyErrorCode.SessionNotActive

An error that indicates an active session is currently inactive.

## Declaration

```swift
case SessionNotActive
```

## Discussion

Discussion You must start a session before you attempt to retrieve information about a vehicle or send commands or data to it. Similarly, you cannot end a session that isn’t currently running.

## See Also

### Getting the Error Code

- [CarKeyErrorCode.AnotherRequestInProgress](carkey/carkeyerrorcode/anotherrequestinprogress.md)
- [CarKeyErrorCode.ClientInBackground](carkey/carkeyerrorcode/clientinbackground.md)
- [CarKeyErrorCode.EnduringRequestUsingEventMethod](carkey/carkeyerrorcode/enduringrequestusingeventmethod.md)
- [CarKeyErrorCode.FeatureNotSupported](carkey/carkeyerrorcode/featurenotsupported.md)
- [CarKeyErrorCode.FunctionUnknown](carkey/carkeyerrorcode/functionunknown.md)
- [CarKeyErrorCode.Internal](carkey/carkeyerrorcode/internal.md)
- [CarKeyErrorCode.MessageTooLong](carkey/carkeyerrorcode/messagetoolong.md)
- [CarKeyErrorCode.RequestNotInProgress](carkey/carkeyerrorcode/requestnotinprogress.md)
- [CarKeyErrorCode.RequestTimedOut](carkey/carkeyerrorcode/requesttimedout.md)
- [CarKeyErrorCode.SecurityViolation](carkey/carkeyerrorcode/securityviolation.md)
- [CarKeyErrorCode.VehicleNotConnected](carkey/carkeyerrorcode/vehiclenotconnected.md)
- [CarKeyErrorCode.VehicleNotFound](carkey/carkeyerrorcode/vehiclenotfound.md)
