This page lists the answers and messages the API and the web application give when something is wrong, with the cause the code reports. Messages are quoted as the code writes them.

1. Requests refused before the business code runs

AnswerMessage or bodyWhat it means
503Default repository setup is required. (body also has status and setupUrl /health/repository)The default repository is not Ready. The status value is Unavailable, MigrationRequired, BootstrapRequired or RecoveryRequired. Call GET /health/repository to read it again. Paths /health, /api/setup/repository, /swagger, /api/auth and /.well-known are exempt.
401Not signed inThe caller is not authenticated.
403An active OilGas account is required.The sign-in has no active OilGas account in this installation.
400Select exactly one tenant and company.A company header was sent twice.
400Select a tenant and company before accessing business data.X-OilGas-Tenant or X-OilGas-Company is missing, empty or too long.
403This company is unavailable to your account.No active membership in the selected company.
403A repository administrator is required.A tenant was named on an administration path by a caller without the Administrator role.

2. Field related answers

AnswerMessageWhat it means
400No active field selected.A field overview or workflow call came in with no current field. Choose a field first.
400Choose a currently available FIELD before opening its lifecycle.The stored field is no longer available.
409The asserted FIELD differs from the reviewed current selection.The route or query string names another field than the stored one.
409The FIELD preference belongs to another database binding.The stored field was chosen for a different database binding of the company.
409Account, company, database or FIELD authority changed during lifecycle restoration.Something changed while the request was being checked. Repeat the request.
403Current FIELD access or the requested application permission changed during restoration.The person lost access, or the permission, while the request was checked.
400Bad requestA workflow step was sent for an instance that does not belong to the current field.

Every field access decision, allowed or denied, is written as an authorization record that includes the endpoint and a correlation id.

3. Refusals and failures

  • A refusal comes back as problem details. The detail text is the sentence to act on. 404 can mean the item does not exist or is not visible to the caller.
  • An unexpected failure comes back as 500 with a reference. The reference is stored with the full exception. An administrator opens /admin/failures in the web application to read it. The exception text itself is not sent to the caller.
  • A data source that cannot verify transactions is answered 409 with "The selected data source cannot verify transactions. Ask an administrator to update its Beep driver." A data source schema that does not fit the workflow is answered 409 with the sentence that starts "The selected data source schema is incompatible with this workflow."

4. Calculation problems

SymptomCause
HTTP 200 but no numbersThe packaged calculators return a result whose Status is failed and whose ErrorMessage holds the reason. Read those two fields.
400 "Well UWI is required." or "Analysis parameters are required."The nodal analysis request has no WellUWI or no AnalysisParameters.
400 "Request body is required."The request body was missing.
400 on well test analysisThe analysis type was not build-up or drawdown, or an oil build-up used a method other than HORNER or MDH.
Not implemented error on a well test service callThe library's default WellTestAnalysisService does not implement type curve matching, multi rate, deconvolution, boundary detection, persistence, reports, exports or plots. See Engineering calculators.
"Allocation method not implemented"Run ticket allocation implements ProRata only. See Production accounting.
503 on GHG report or total"GHG reporting requires verified company-scoped activity data and emission factors." Record the company activity data and emission factors first.
400 "Select a jurisdiction."The GHG calls need a jurisdiction value.

5. Setup and schema

  • PPDM39 schema changes go through a plan, an approval and an execution: POST /api/ppdm39/setup/schema/plan, .../schema/approve, .../schema/execute (or .../schema/start). Progress is read from GET .../schema/progress/{executionToken}, artifacts from GET .../schema/artifacts/{planId}, and a plan can be checked for continuous integration with GET .../schema/ci-validate/{planId}. These routes need the Administrator role.
  • Reference data is seeded from the setup routes (seed/reference, seed/all-reference-data, seed/category/{category}) and validated with seed/validate. Demo data can be generated and removed with generate-dummy-data and DELETE dummy-data.
  • Where to start. GET /health shows whether the repository is Ready and how many data sources are configured. GET /api/ppdm39/setup/status shows the setup status for an administrator.

6. Live channels

  • The workflow notification connection at /hubs/workflow-notifications is closed when the sign-in expires. Sign in again and reconnect.
  • The hubs also need the tenant and company headers; without them the connection is refused like any other business request.

7. Swagger

The Swagger UI is mapped only in the Development environment. A host in another environment does not serve it. Use this documentation and the route tables for the production API.