Issue Description
When attempting to upload a markdown reference file (KAST_Instructions.md, 14.5 KB) to an Amazon QuickSight Q Chat Agent (Agent ID: d5ce4910-8c43-438a-a783-7b294f393001), the web console consistently fails with a client-side/API validation error. Furthermore, attempting the same action via the Amazon QuickSight Desktop Application shows a successful save state in the UI, but fails to persist or sync the uploaded document to the backend agent state.
Error Message (Web Console)
Plaintext
Upload error
1 validation error detected: Value at 'clientReferenceId' failed to satisfy constraint: Member must satisfy regular expression pattern: [A-Za-z0-9_\-.:]+
Key Troubleshooting Findings & Evidence
-
Filename Formatting: Verified that the issue persists regardless of the filename (tested standard names like
12345.md,instructions.md, andKAST_Instructions.md). The regex constraint failure is triggered by an internal payload parameter (clientReferenceId) generated by the QuickSight frontend, not the user-supplied filename. -
Environment Isolation: Reproduced in standard Chrome sessions, Incognito mode, and across different AWS accounts/regions (
ap-southeast-2). -
Desktop Application UI/Sync Inconsistency:
-
In the QuickSight Desktop App, uploading the same
.mdfile in the agent config panel shows the file attached, and the Save button transitions to a disabled state (indicating saved changes). -
However, upon switching tabs (e.g., to Agent Files) or reopening the agent in the Web Console, the document is missing.
-
Subsequent edits/saves in the Web Console immediately re-trigger the original
clientReferenceIderror popup, confirming the backend never ingested the file reference.
-
Steps to Reproduce
-
Navigate to Amazon QuickSight Q $\rightarrow$ Chat Agents $\rightarrow$ Select or Edit an Agent.
-
Scroll down to Reference Documents / Additional Documents.
-
Click Browse files or drag-and-drop a supported file (e.g.,
.md,.pdf,.txt). -
Result (Web): The UI immediately throws the
clientReferenceIdvalidation error toast message. -
Result (Desktop App): The UI shows the file attached and allows saving, but checking the Agent Files tab reveals the file was not actually synced or stored in the agent’s knowledge/reference state.
Impact
Users are unable to leverage document attachments for agent behavior grounding. As a temporary workaround, full document contents must be manually pasted directly into the Instructions text box.
Requested Action
-
Fix the payload generator in the QuickSight Q Agent web console to ensure
clientReferenceIdvalues satisfy the regex pattern[A-Za-z0-9_\-.:]+. -
Fix the Desktop App’s state handling so it accurately reflects backend upload failures instead of falsely indicating a successful save.
