Unintended consequences
In other words, there is an incorrect or mistaken analysis.  For example, error might result from following a process or procedure which worked in the past but which does not work well enough or not at all in a new situation.