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

AddToStore exception : "Input string was not in a correct format" #9

Open
antolantic opened this issue Oct 2, 2019 · 0 comments
Open

Comments

@antolantic
Copy link

Hi
We noticed various errors when trying to insert log depth, stacktrace is the following :

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
  <s:Body>
    <s:Fault>
      <faultcode xmlns:a="http://schemas.microsoft.com/net/2005/12/windowscommunicationfoundation/dispatcher">a:InternalServiceFault</faultcode>
      <faultstring xml:lang="fr-FR">Input string was not in a correct format.</faultstring>
      <detail>
        <ExceptionDetail xmlns="http://schemas.datacontract.org/2004/07/System.ServiceModel" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
          <HelpLink i:nil="true" />
          <InnerException i:nil="true" />
          <Message>Input string was not in a correct format.</Message>
          <StackTrace>   at System.Number.ParseDouble(String value, NumberStyles options, NumberFormatInfo numfmt)
   at System.String.System.IConvertible.ToDouble(IFormatProvider provider)
   at PDS.WITSMLstudio.Data.Channels.ChannelDataReader.&lt;&gt;c__DisplayClass135_0.&lt;Sort&gt;b__0(List`1 row) in C:\Users\twist_adm\source\repos\witsml-server\ext\witsml\src\Core\Data\Channels\ChannelDataReader.cs:line 1365
   at System.Linq.EnumerableSorter`2.ComputeKeys(TElement[] elements, Int32 count)
   at System.Linq.EnumerableSorter`1.Sort(TElement[] elements, Int32 count)
   at System.Linq.OrderedEnumerable`1.&lt;GetEnumerator&gt;d__1.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at PDS.WITSMLstudio.Data.Channels.ChannelDataReader.Sort(Boolean reverse) in C:\Users\twist_adm\source\repos\witsml-server\ext\witsml\src\Core\Data\Channels\ChannelDataReader.cs:line 1369
   at PDS.WITSMLstudio.Data.Channels.ChannelDataExtensions.WithIndex(ChannelDataReader reader, String mnemonic, String unit, Boolean increasing, Boolean isTimeIndex) in C:\Users\twist_adm\source\repos\witsml-server\ext\witsml\src\Core\Data\Channels\ChannelDataExtensions.cs:line 243
   at PDS.WITSMLstudio.Data.Channels.ChannelDataExtensions.&lt;GetReaders&gt;d__8.MoveNext() in C:\Users\twist_adm\source\repos\witsml-server\ext\witsml\src\Core\Data\Channels\ChannelDataExtensions.cs:line 171
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at PDS.WITSMLstudio.Store.Data.Logs.Log141DataAdapter.ExtractDataReaders(Log entity, Log existing) in C:\Users\twist_adm\source\repos\witsml-server\ext\witsml\src\Store.MongoDb\Data\Logs\Log141DataAdapter.cs:line 792
   at PDS.WITSMLstudio.Store.Data.Logs.Log141DataAdapter.Add(WitsmlQueryParser parser, Log dataObject) in C:\Users\twist_adm\source\repos\witsml-server\ext\witsml\src\Store.MongoDb\Data\Logs\Log141DataAdapter.cs:line 58
   at PDS.WITSMLstudio.Store.Data.WitsmlDataProvider`1.Add(WitsmlQueryParser parser) in C:\Users\twist_adm\source\repos\witsml-server\ext\witsml\src\Store.Core\Data\WitsmlDataProvider.cs:line 286
   at PDS.WITSMLstudio.Store.Data.WitsmlDataProvider`2.AddToStore(RequestContext context) in C:\Users\twist_adm\source\repos\witsml-server\ext\witsml\src\Store.Core\Data\WitsmlDataProviderOfTList.cs:line 103
   at PDS.WITSMLstudio.Store.WitsmlStore.WMLS_AddToStore(WMLS_AddToStoreRequest request) in C:\Users\twist_adm\source\repos\witsml-server\ext\witsml\src\Store.Core\WitsmlStore.cs:line 221
   at SyncInvokeWMLS_AddToStore(Object , Object[] , Object[] )
   at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]&amp; outputs)
   at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc&amp; rpc)
   at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc&amp; rpc)
   at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage11(MessageRpc&amp; rpc)
   at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)</StackTrace>
          <Type>System.FormatException</Type>
        </ExceptionDetail>
      </detail>
    </s:Fault>
  </s:Body>
</s:Envelope>

PDS Witsml library version : ecec156

How to reproduce
Get sample witsml data from Energistics (Well B):
https://www.energistics.org/download/3659/
Insert well then wellbore and a not so big log : NA-NA-EnergisticsWell2016-B\NA-NA-EnergisticsWell2016-B\NA-NA-EnergisticsWell2016-B\1\log\1\2\1\00002.xml (339kB)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant