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();

2 Answers 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.


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.

  • the sandbox is moved to win13 but the class is saved in api 25. I would still assume that it should not work.
    – Prady
    Sep 27, 2012 at 14:45

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .