Showing this msg for sales order how to solve this

I think there also a probable case of trying to map a non-existant variable in some other doctype. I think both have same kind of problem, check this link