# CAL_LOCK_FAIL: Calendar event lock provisioning failed

- Module: CAL. Calendar events and smart-lock access provisioning
- 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/CAL_LOCK_FAIL

## What happened

A calendar event that requires a smart-lock access code could not be provisioned with one. Access for the affected slot may need to be granted manually.

## Likely causes

- The smart lock or its gateway was offline when the access code was requested.
- The lock provider API returned an error while creating the code.

## How to resolve

1. Open the event in Calendar in admin and check its lock access status.
2. Check that the lock and its gateway are online, then retry generating the code.
3. Grant access to the customer manually if the slot starts soon.

## Related codes

- CAL_LOCK_WARN: Calendar event lock provisioning degraded
- CAL_WATCHDOG_F: Calendar event access watchdog failed
- TTL_001: TTLock passcode provisioning failed
- CAL_ATT_DROP: Calendar attendee dropped: no identifiable contact
- CAL_ATT_OK: Calendar attendee confirmed attendance
- CAL_LATE_LOCK: Late cancellation: lock passcode not deleted
