Error message showing by MeshHierarchy sample is by design. It's to note that mesh contains some advanced data that is not parsed by sample and so will not be saved when you'll save modified mesh (with custom data).
There are other problems with sample as some patterns of Loading/Loading with user data/Saving with user data lead to GPF type erros that I think is the problem in MS D3DX9 code.