Find your content:

Search form

You are here

Method does not exist or incorrect signature: [String].normalizeSpace()


I have written a class in my sandbox and when i try to push the code into prodn i get this error.

Method does not exist or incorrect signature: [String].normalizeSpace()

Both prodn and sandbox uses api ver 25.0. Any idea on why this error when moving the code to prodn.

for(Integer i = 0; i < lallowedStates.size(); i++)
    lallowedStates[i] = lallowedStates[i].normalizeSpace();

Attribution to: Prady

Possible Suggestion/Solution #1

Isn't that method part of the v26 (winter 13) new string methods? If so, it won't run on v25. If you're not on v26 yet, you will be soon.

I'm surprise it works on a v25 sandbox org.

Attribution to: Shane McLaughlin

Possible Suggestion/Solution #2

The second last entry is the normalizeSpace method. So this will be available with the winter 13 (v26) release.

Won't work until then.

Attribution to: Andree Wille
This content is remixed from stackoverflow or stackexchange. Please visit

My Block Status

My Block Content