Without seeing what you are doing, it is hard to give you an answer.

However, something I learned early on is to make sure your script is on the PDC and BDC.