function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Everton CP7Everton CP7 

String too long

Hi there,


I created a half VF, cause I could't finish the page.

I have more than 500 lines and an error appears to me "String_too_long".


But I have to build this page and I was thinking in use <apex:include>. I created another page, put this code and I could create.


I tried this:


<apex:page standardcontroler= "case">
	<apex:include pageName="TESTE"/>
            <apex:pageBlockSection columns="2" title="Dados do Formando" rendered="{!case.motivo__c == 'Impressão de foto'}">
                <apex:inputfield value="{!case.AccountID}" required="true"/>
                <apex:inputfield value="{!case.Descricao_da_foto__c}" required="true"/>


No errors appears to me, but when I click in "Preview" I can't see my page.


Someone have any clue about this?

If I don't have to use <apex:include> don't have any problem, I just want to build my entire VF.



Everton Gomes

Best Answer chosen by Admin (Salesforce Developers) 

Are you using the developer console to edit the page or class by chance?


I ask because if so, this looks like a known issue.

All Answers


See this thread.

Everton CP7Everton CP7

Are you saying that my error "String_too_long" is a failure of SF?


I made a few changes in my code. And I could create a second page related to the first one.

It's not exactly what I want, but is working.




That link was meant for another user's problem.  Sorry but somehow my post was put on the wrong thread. 


Anyway, could you give more details about where you are getting the error and maybe the full error message?


I suspect the issue is that you are trying to input data into a field and the data is larger than the field can hold.  The older versions (14 or 15 and earlier) would truncate large values for you but the newer versions will not.


The full error message and/or statements from a log file should indicate which field is having the issue.



Everton CP7Everton CP7

It's okay.

Actually when I started to read the thread I don't understand some things.



This appears to me:



Failed to create createContainerMember for containerId=1dcJ00000004CMH: Corpo: valor de dados grande demais: <apex:page standardController="case">
<apex:form >
<apex:pageBlock id="tipoderegistro" >
<apex:pageMessages />	
<apex:pageBlockButtons location="top">
<apex:commandButton value="Criar Chamado" action="{!Save}"/>
<apex:commandButton value="Cancelar" action="{!Cancel}" immediate="true"/> 

<apex:pageBlockSection columns="2">
<apex:inputfield value="{!case.Func_abertura_chamado__c}" required="true"/>
<apex:inputfield value="{!case.func_resolve_chamado__c}" />

<apex:pageBlockSectionItem >
<apex:actionRegion >
<apex:inputHidden value="{!case.RecordTypeId}">
<apex:actionSupport event="onchange" rerender="tipoderegistro"/>

<apex:pageBlockSectionItem > 
<apex:actionRegion >
<apex:inputHidden value="{!case.motivo__c}">
<apex:actionSupport event="onchange" reRender="campos"/>

Let me translate some things to you:

Corpo: valor de dados grande demais: = Body: data value too large


This is just the begining of my page and this just appears to me if I add more codes.


The stranger here is yesterday I had more than 500 lines and don't appears to me any errors.
Today when I was trying to continue my page, appears this error.


So, I begin to create a new page related to my first page and I have to edit some things in the first page.
When I edited, appears the error, and I was removing some codes reducing the string.


How is this possible, yesterday I had more than 500 lines, today I had to reduce my string to 420?


Are you using the developer console to edit the page or class by chance?


I ask because if so, this looks like a known issue.

This was selected as the best answer
Everton CP7Everton CP7

I can't believe is this...


I changed praticly everything :(


Thank you very much Colemab.