Before 2021 Update 5, the length of the input string in the text prompt has no limitation, the customer can input any strings.
In 2021 Update 5, if customers don’t do anything about this setting, the max length is 5000. Customers can set this value in the registry, any input of text prompt longer than this value will throw an error.
After 2021 Update 5, we use the configuration level setting in the Workstation to replace the registry:

Here we set the value to 25, which can make it easy to display the error. The followings are the steps in detail.
Step 1: Set the value to 25 (MaxTextPromptLength).
The path is "SOFTWARE\\MicroStrategy\\DSS Server\\ObjectServer".

Please restart the iServer to make this setting take effect.
Step 2: Create a report with a text prompt.

Step 3: Run this report with a text prompt. The string length will impact the result.
When input “Web”

When input “1234567890123456789012345“(25 characters)(No Region name this string)

When input “12345678901234567890123456“(26 characters)

The error message will show the input string and the max length limitation.
Here are the details to explain how the registry value (MaxTextPromptLength) work: