raise error for malformed tdim