This happens to me few days ago and what fixed the error is when I checked on the indentation in formatting. Try other resolutions from the link given below and see if it can help you. Goodluck! http://www.techyv.com/questions/bmp-tmx-failed-rulestxt