## TL;DR

Always pass a stable identifier in the User Object when a flag uses percentage options, even for anonymous users (a session or device id works). If that attribute is missing from the User Object, the targeting rule is skipped and the flag returns the To unidentified value instead.

## Steps

1. Always pass a stable identifier in the User Object when a flag uses percentage options, even for anonymous users (a session or device id works). Decide deliberately what the To unidentified value should be, since that is what logged-out traffic actually gets. Log which branch served the value when debugging rollout surprises.

## When to use

You are seeing this: Decide deliberately what the To unidentified value should be, since that is what logged-out traffic actually gets. Use this skill when you run into "ConfigCat: missing identifier skips percentage rules and serves the unidentified value".

## When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

## Versions

No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.

## Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.
