QuestionQ11

VerifiedPrompt Engineering

Universal Containers created a Field Generation prompt template that functioned for many records, but users report intermittent failures caused by token-limit errors.

What causes the apparently random nature of this error?

Explanation

Prompt templates resolve merge fields and grounding with the data of the specific record being processed. Because record data can differ in length and volume, the resolved prompt's token count varies by record; only records whose resolved content exceeds the limit fail. Salesforce documents that grounding resources resolve with real data and that prompt size can exceed token limits when too much data is included.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!