Add exception when create or update with setExpandDepth (not supported)