Skip Navigation
Expand
  • Advanced SearchOpens new dialog
    Enter plus (+) or minus (-) signs in search terms to make a word required or excluded
    Search Tips
    Filter by product
    Filter by category
Restrictions related to the Chats Question field
Answer ID 12908   |   Last Review Date 10/01/2024

How many characters are allowed for the chats.question field?

Environment:

Chat
Oracle B2C Service

Resolution:

When submitting a chat, the chats.question field has a limitation of 240 characters. If more characters are submitted with the chat, the chat server will return an error. 
 
It is the responsibility of the user interface where the chat is submitted from to prevent more than 240 characters to be sent with chat requests. This can be achieved in different ways, such as:
  • preventing additional characters to be added in the Chat Form
    • for example, this setup is present on the standard chat_launch page in your Customer Portal 
  • returning a warning when trying to submit a chat when more than 240 characters have been introduced and preventing that chat to be submitted
    • for example, this setup is present with the Chat Inlays, where the warning "There are too many characters. Enter no more than 240 characters" is presented. 
Using the standard REST API, the EstablishSessions request will fail when the 'question' attribute is longer than 240 characters with the following error (example):
{
"type": "https://VHOST/services/rest/crossChannelServices/exceptions/OSC-CREST-00012",
"title": "Problem creating resource",
"status": 400,
"detail": "Error attempting to create resource: Request Denied: Session Services returned an error: [HTTP response code said error]",
"instance": "https://VHOST/services/rest/crossChannelServices/latest/establishSessions",
"o:errorCode": "OSC-CREST-00012"
}