AI Studio: Error when updating stock descriptions using an LLM prompt
Error: "The system couldn't parse.. LLM prompt output as valid JSON. Only output in JSON format is supported"
When testing or running an LLM prompt in AI Studio (ML202000) to update stock descriptions, you may receive the following message:
"The system couldn't parse the LLM prompt output as valid JSON. Only output in JSON format is supported."
This may only occur for certain stock items.
Why this happens
Some inventory IDs can be interpreted as sensitive data (such as card or personal identification numbers) by outbound filtering. When this happens, the response is blocked before it is returned to AI Studio, causing the JSON parsing error.
This typically affects inventory IDs that are:
- Numeric only
- Contain hyphens
Resolution
If you encounter this message, you can use either of the following workarounds:
- Remove the
InventoryCDfield from the prompt if it is not required. - If you need to include the inventory code, use
SKU((Item.InventoryCD))instead ofItem.InventoryCD. Adding theSKUprefix prevents the value from being identified as sensitive data and allows the response to be returned successfully.