Did you exported it with Slic3r?
Sometimes, when I upload the g-code (from Slic3r) to the printer, the reported height of the object is not correct, sometimes even missing.
I export it again and re-upload it and it's correct.
Now I take attention to the upload reported variables, and have no fail since.