Docs menu
Build a scenario
Scenario file Generators vars and const Time and pace Defaults Relationships Schedules Instances Lifecycle Collections Connections Delivery behaviorReference
Diagnostics
Synthtraffic diagnostics use stable ST codes so errors can be searched, tested, and documented without depending only on message text. Every validation error, warning, and many runtime failures include a code and a source location.
Diagnostic lines follow this shape:
file:line:column: severity STcode scenario.path: message
Example:
examples/connectors/kafka.yaml:16:5: error ST1312 generators[0].connection: unknown connection "kafk"
The first two digits identify the broad area:
ST11xx— defaults and compatibility noticesST12xx— expression parsing and expression syntaxST13xx— scenario validation, connections, generators, schedules, runtime config, Kafka, PostgreSQL, and HTTP rulesST1400–ST1409— HTTP routing templates and migration guidanceST1410–ST1420— storage connection, rolling, prefix, and output rules
Expressions
ST1203— compact expression parsing failedST1210— unsupported function nameST1227— unknown named time formatST1228—now(timezone=...)withoutformatST1245—easing/easingChainmissingfrom,to, oroverST1246— invalidover(must be a positive event count or positive duration)ST1247— unknown easingcurveST1248— invalideasingChainblock shapeST1249—easingChainmixes event-count and durationovervaluesST1250— unknowneasingChainstep field
Scenario, pace, and connections
ST1312— a generator references a connection name that does not existST1320–ST1324— schedule stage/run/ dependency ordering rulesST1325— invalidschedule.cyclerequirements (missing stage/generatormaxEvents, or non-positive stagemaxEvents)ST1330— invalidrateST1331— invalidmaxEventsST1332— invalidmaxDurationST1375— duration-only generation requires a finiterateorintervalST1376—rateandintervalcannot both be setST1377— invalidintervalST1379— invalid cron expression inrate.windows[].whenST1380— invalidrateobject shape (default/windows)ST1381— invalidinstances.startGapST1382— invaliddiscard.probabilityST1383— invalidrepeat(probability/times)
Kafka
ST1384— Kafkatlsmust be a boolean literalST1385— Kafkasaslmust be an objectST1386— Kafkasasl.mechanismmust beplain,scram-sha-256, orscram-sha-512ST1387— Kafkasaslusername/password must be a non-empty string orenv()
HTTP
ST1390— invalid HTTP generator output shape or missing HTTP connectionST1391–ST1392— missing or invalid HTTPbaseUrlST1393— unsupported HTTP methodST1394–ST1395— invalid HTTP timeout or concurrencyST1396–ST1397— invalid HTTP query object or non-scalar valueST1398–ST1399— invalid, duplicate, managed, or non-scalar HTTP headerST1400— missing or invalid HTTP generator path templateST1401— an old HTTP connection field must migrate tobaseUrlor a generator request field
Storage
ST1410— invalid storage connection or generator compatibilityST1411— missing or invalid storage root (directory,bucket,accountUrl, orcontainer) or provider endpoint/regionST1412–ST1415— invalid storage format, compression, rolling policy, or open-stream limitST1417— missing storageprefixorvalue, or a storage field used with the wrong connectorST1418— invalid storage prefixST1419— two generators share one storage connection and literal prefix (warning)ST1420— the complete storage artifact name exceeds a portable provider or file-component limit
Notes
JSON Schema can catch many shape errors in editors, but compiler diagnostics are canonical because they include source locations, scenario paths, and semantic rules that JSON Schema cannot fully express.
Related
- Invalid scenarios fail on sample or run with the same
STcodes. - Studio squiggles: Workspace and editor
- Rate and interval conflicts: Time and pace
- Kafka SASL and TLS: Kafka
- HTTP request shape: HTTP
- File, S3, GCS, and Azure Blob prefix rules: File