Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create new wellbore bug🐛 #2582

Closed
eliasbruvik opened this issue Oct 28, 2024 · 0 comments · Fixed by #2583
Closed

Create new wellbore bug🐛 #2582

eliasbruvik opened this issue Oct 28, 2024 · 0 comments · Fixed by #2583
Assignees
Labels
Bug Something isn't working High Priority Javascript Pull requests that update Javascript code

Comments

@eliasbruvik
Copy link
Contributor

When creating a new wellbore (as tested on a Sitecom server), it fails with this message:

Reason: Error while adding to store: -409 - The input template must conform to the appropriate derived schema.. Message = The 'http://www.witsml.org/schemas/1series:typeWellbore' element is invalid - The value '' is invalid according to its datatype 'http://www.witsml.org/schemas/1series:WellboreType' - The actual length is less than the MinLength value.

Actual query sent as from the logs:

<wellbores xmlns="http://www.witsml.org/schemas/1series" version="1.4.1.1">
  <wellbore uid="2d9ffe13-d01e-49c1-a203-b1f8c3047442" uidWell="elias">
    <nameWell>elias</nameWell>
    <name>test</name>
    <parentWellbore uidRef=""/>
    <statusWellbore/>
    <purposeWellbore>unknown</purposeWellbore>
    <typeWellbore/>
  </wellbore>
</wellbores>

Any values that are not specified in the modal should not be added to the query sent to the WITSML server. As parentWellbore, statusWellbore and typeWellbore cannot be edited in the modal, these should not be sent to our API, yet they are currently sent:
Image

@eliasbruvik eliasbruvik added Bug Something isn't working High Priority Javascript Pull requests that update Javascript code labels Oct 28, 2024
@eliasbruvik eliasbruvik self-assigned this Oct 28, 2024
@eliasbruvik eliasbruvik moved this from To do to In progress in WitsmlExplorer OS Community Oct 28, 2024
@github-project-automation github-project-automation bot moved this from Review in progress to Merged in WitsmlExplorer OS Community Oct 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working High Priority Javascript Pull requests that update Javascript code
Projects
Development

Successfully merging a pull request may close this issue.

1 participant