Skip to content
  • There are no suggestions because the search field is empty.

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 InventoryCD field from the prompt if it is not required.
  • If you need to include the inventory code, use SKU((Item.InventoryCD)) instead of Item.InventoryCD. Adding the SKU prefix prevents the value from being identified as sensitive data and allows the response to be returned successfully.