I do this everytime I 'blow' my diet, usually because I'm stressed. If I'm not stressed, bad stress or good stress (excitement), I can do much better. But it doesn't take much to throw me off track. I have just a few bottom-line items now, and if I aim to stick to them, then at least I know I've kept those goals in sight, even if I don't lose weight. Then, the calorie counting and control over my eating gets kind of layered on top of those goals.
I guess what I'm saying is: prioritize. Do it in a way that is clear and measurable and then even if you mess up at some level, you'll know you've still achieved something for your health.