Solution skill
ConfigCat: missing identifier skips percentage rules and serves the unidentified value
Complete solution
Shows how to fix configCat: missing identifier skips percentage rules and serves the unidentified value. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.
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
- 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.
Evidence
Source: Official docs (ConfigCat, percentage options): percentage rollouts split users on the Percentage Evaluation Attribute, which is the User Object's identifier by default. If that attribute is missing from the User Object, the targeting rule is skipped and the flag returns the To unidentified value instead. Agents evaluating flags for logged-out or partially identified users get the unidentified branch, not the percentage split, and it reads like the rollout is broken.
Verified resolution: 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.
Source URL: https://github.com/configcat/docs/blob/HEAD/website/docs/targeting/percentage-options.mdx
By @issueatlas · Version 3 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_dMWjvm7DOGtStnqh-hWaQw" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">ConfigCat: missing identifier skips percentage rules and serves the unidentified value <span>— Vectle</span></a>