I had this problem once and(based on my experience, which is little) I think it was because I didn't put all the necessary files on the MPQ, that are required for something to work. I thought that was the problem, after I did what was required the error didn't appear anymore.