Oracle Message ORA-13371 - invalid position of measure dimension

ERRORinvalid position of measure dimension
CAUSELRS measure dimension has to be after spatial dimensions. The position has to be either 3rd or 4th in the dim_info_array.
ACTIONCheck the geometrys gtype and its position in the dim_info_array.