Try each of the following solutions until the issue is resolved:
  1. Ensure that you're using the correct login credentials and database number in your INIT string.
  2. Initialize the database by reconnecting it to through the BMC
  3. Repair RE on the workstation where the API application is being executed