error when using getMassProperties() in abaqus python

when using getMassProperties() to extract element centroid coordinate, error "The point about which to evaluate moments of inertia is not well defined" appears. Can anybody solve the problem? please help me.