AS assignment in AR throws 'local variable 'service_interims' referenced before assignment'