# TTL_001: TTLock passcode provisioning failed

- Module: TTL. TTLock smart-lock provisioning and gateway health
- Severity: Error
- Impact: Customers. End customers are affected (e.g. a missing e-mail, payment or order).
- Retry: Manual. Safe for an operator to retry the action.
- Reference: https://docs.bizkithub.com/en/system-codes/TTL_001

## What happened

Adding a passcode to a smart lock for a calendar reservation failed. If a backup code covered the reservation the entry is an error; if no usable backup exists it is critical and the guest may not be able to enter.

## Likely causes

- Creating the passcode for a reservation failed at the TTLock cloud or lock.
- The lock or its gateway was offline.
- If no usable backup code existed, the guest received no working entry code (logged as critical).

## How to resolve

1. Open the lock under IoT locks and check its gateway status.
2. If the entry is critical, give the guest a working code manually or arrange access another way.
3. Make sure every lock has a valid backup code.
4. Check the underlying TTLock API error logged for the same lock.

## Related codes

- TTL_003: TTLock gateway is offline
- TTL_006: Smart lock has no usable backup code
- TTL_QUEUE_DEAD: TTLock queued operation abandoned
- TTLE_2012: TTLock API: device not connected to a gateway
- TTL_002: Unable to generate a unique passcode
- TTL_007: Access code not moved with the reservation
