dotnet/runtime · error · Exception
Invalid Entry in
Error message
Invalid Entry {line}in {inclusion_filename} What it means
Raised by parseInclusionList() in utilities.py at src/coreclr/scripts/utilities.py:195 when a non-comment line in the inclusion file has more than 2 colon-separated tokens. The expected format is [ProviderName:]EventName.
Solutions
- Reduce the offending line to at most 2 colon-separated tokens (provider:event or just event).
- Remove stray colons in event/provider names.
Example fix
// before ProviderName:EventName:extra // after ProviderName:EventName
Defensive patterns
Strategy: validation
Validate before calling
with open(inclusion_filename) as f:
for i, raw in enumerate(f, 1):
line = raw.strip()
if not line or line.startswith('#'):
continue
if len(line.split(':')) > 2:
raise SystemExit(f'{inclusion_filename}:{i} has >2 tokens: {line!r}') Prevention
- Remember inclusion files use a 2-field format, unlike exclusion files (5 fields).
When it happens
Trigger: An inclusion file line with 3+ colon-separated tokens.
Common situations: Hand-editing an inclusion file and adding extra fields; copying exclusion-format lines (which allow 5 fields) into an inclusion file (which allows 2).
Related errors
- Invalid Entry in
- Cannot find System.Private.CoreLib.dll at
- Collection 'smoke_tests' is only available for 'nativeaot'…
- Comparison failed for the following files(s)
- {coreclr_args.mode}
AI-assisted analysis of dotnet/runtime@60108ba66e (2026-08-10).
Data as JSON: /api/errors/078b59f37b30dcd1.
Report an issue: GitHub.
Appendix: source
Thrown at src/coreclr/scripts/utilities.py:195
if not os.path.isfile(inclusion_filename):
return inclusion_list
with open(inclusion_filename,'r') as InclusionFile:
for line in InclusionFile:
line = line.strip()
#remove comments
if not line or line.startswith('#'):
continue
tokens = line.split(':')
if len(tokens) == 0:
continue
if len(tokens) > 2:
raise Exception("Invalid Entry " + line + "in "+ inclusion_filename)
providerName = ""
eventName = ""
if len(tokens) == 2:
providerName = tokens[0]
eventName = tokens[1]
if len(tokens) == 1:
providerName = "*"
eventName = tokens[0]
if providerName not in inclusion_list:
inclusion_list[providerName] = set()
inclusion_list[providerName].add(eventName)
return inclusion_listView on GitHub (pinned to 60108ba66e)