You need to sign in to do that
Don't have an account?
Anoop Viswambharan
System.StringException: String length exceeds maximum: 6000000
Hi Salesforce Gurus,
I am having issue with String length and need some input to proceed further.
I am building an API in which i will be receiving JSON request with some Keys and Values and a big encoded XML string. In my API, i am converting the BLOB request to tostring() for parsing the JSON request.
If the JSON request is less than 6000000 my API works fine. But if it more than 6000000 character i am getting the below error.
[
{
"errorCode": "APEX_ERROR",
"message": "System.StringException: String length exceeds maximum: 6000000
}
]
I am having issue with String length and need some input to proceed further.
I am building an API in which i will be receiving JSON request with some Keys and Values and a big encoded XML string. In my API, i am converting the BLOB request to tostring() for parsing the JSON request.
If the JSON request is less than 6000000 my API works fine. But if it more than 6000000 character i am getting the below error.
[
{
"errorCode": "APEX_ERROR",
"message": "System.StringException: String length exceeds maximum: 6000000
}
]
SalesFORCE_enFORCEr
You can try this method to convert BLOB to string.