For the API service, it's better to use RaiseError=>0 so API can return error status instead of program dying