catch exception when river query already exists