equinor / witsml-explorer

Witsml Explorer data management tool.
Apache License 2.0
48 stars 50 forks source link

Create new wellbore bug🐛 #2582

Closed eliasbruvik closed 3 weeks ago

eliasbruvik commented 3 weeks ago

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