DataConnectors icon indicating copy to clipboard operation
DataConnectors copied to clipboard

ArgumentOutOfRangeException in DiskPersistentCache

Open monty241 opened this issue 6 years ago • 2 comments

During analysis of another issue, I've found that an internal exception is thrown somewhere after a provider is instantiated. Probably something with a null or so.

Versie: 2.48.4792.481 64-bit (juli 2017)

It is in Dutch, but it is calculation on a datetime with a timespan that fails.

09:18:25.014: De opgetelde of afgetrokken waarde resulteert in een DateTime die niet kan worden weergegeven.
Parameternaam: t
   bij System.DateTime.op_Addition(DateTime d, TimeSpan t)
09:18:25.014: De opgetelde of afgetrokken waarde resulteert in een DateTime die niet kan worden weergegeven.
Parameternaam: t.
   bij System.DateTime.op_Addition(DateTime d, TimeSpan t)
   bij Microsoft.Mashup.Common.DateTimeExtensions.SafeAdd(DateTime dateTime, TimeSpan timeSpan)
   bij Microsoft.Mashup.EngineHost.Services.DiskPersistentCache..ctor(String directory, Int64 maxEntryLength, Int64 trimSize, Int64 maxSize, TimeSpan cacheTtl, IEvaluationConstants evaluationConstants)
   bij Microsoft.Mashup.EngineHost.PersistentCachePolicy.<>c__DisplayClassd.<CreateDiskCache>b__c()
   bij Microsoft.Mashup.EngineHost.Services.DelayedPersistentCache.get_Cache()
   bij Microsoft.Mashup.EngineHost.Services.DelayedPersistentCache.TryGetStorage(String key, IStorage& storage)
   bij Microsoft.Mashup.Engine1.Library.PersistentCacheExtensions.TryGetValue(IPersistentCache cache, String key, Stream& stream)
   bij Microsoft.Mashup.Engine1.Library.Common.NativeQueryTableValue.Initialize()
   bij Microsoft.Mashup.Engine1.Library.Common.NativeQueryTableValue.EnsureInitialized()
   bij Microsoft.Mashup.Engine1.Library.Common.NativeQueryTableValue.get_Type()
   bij Microsoft.Mashup.Engine1.Library.Common.NativeQueryTableValue.get_Type()
   bij Microsoft.Mashup.Evaluator.SimpleDocumentEvaluator.ValuePreviewValueSource.TableValuePreviewValueSource.get_ColumnCount()
   bij Microsoft.Mashup.Evaluator.ITableSourceSerializationExtensions.WriteITableSource(BinaryWriter writer, ITableSource tableSource)
   bij Microsoft.Mashup.Evaluator.BinarySerializer.Serialize(Action`1 serializer)
   bij Microsoft.Mashup.Evaluator.Interface.BufferedMessage.Prepare()

A little time later it reports:

09:18:25.059: Kan bestand C:\Users\OBFUSCATED\AppData\Local\Microsoft\Power BI Desktop\Cache\Index\F3EA06C93A1B7FD8.idx niet vinden.
   bij System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   bij System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   bij System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access)
   bij Microsoft.Mashup.EngineHost.Services.DiskPersistentCache.PersistentDictionary.<>c__DisplayClass24.<ReadBucket>b__23()
   bij Microsoft.Mashup.EngineHost.Services.FileSystemAccessHelper.<>c__DisplayClass4.<IgnoringAccessExceptions>b__3()
   bij Microsoft.Mashup.EngineHost.Services.FileSystemAccessHelper.TryIgnoringAccessExceptions[T](Func`1 func, IEvaluationConstants evaluationConstants, T& result, Exception& accessException)
   bij Microsoft.Mashup.EngineHost.Services.FileSystemAccessHelper.IgnoringAccessExceptions(Action action, IEvaluationConstants evaluationConstants)

monty241 avatar Jul 07 '17 08:07 monty241