Like anything, spray foam has it limitations.  Its not the end all for insulation problems.  Its not as environmentally friendly as you might think, and proper installation requires skill.  This article explains some of the problems that can occur.  spray foam