Runtime error: Attempting to Deserialize an empty stream
Author: gbullr
Creation Date: 3/15/2013 11:46 AM
profile picture

gbullr

#1
I am trying to write code for 5 minute data and I get the following error at the bottom of the editor after having downloaded 5 minute data for a ticker

Runtime error: Attempting to Deserialize an empty stream.
etc
etc

CODE:
Please log in to see this code.


Thanks Eugene or Cone.
profile picture

Eugene

#2
The code is not to blame. The key are the active static and streaming providers. What are they? And what are the symbols?
profile picture

gbullr

#3
The symbol is UNXL and update data on demand is on.



profile picture

Eugene

#4
Perhaps there is some error with the Fidelity data (since it's assumed that I know which providers you're using).
profile picture

Cone

#5
Runs fine with Fidelity UNXL here.

1. Does it occur only with UNXL?

2. In Preferences (F12) > Backtest Settings, is Benchmark Buy & Hold checked? If so, what's the symbol?

The error has been reported before, associated with a different provider. Unfortunately this thread did not reach a resolution:
http://www.wealth-lab.com/Forum/Posts/Runtime-error-attempting-to-deserialize-an-empty-stream-31447
profile picture

Eugene

#6
We could have reached resolution 3 days ago if topic starter did not choose to cut down the error message:

QUOTE:
Runtime error: Attempting to Deserialize an empty stream.
etc
etc


I know it must be a drag to type it in by hand, but what's left behind those "etc etc" is the key here, so I'd appreciate your effort to bring to light the missing piece of this puzzle. ;)
profile picture

gbullr

#7
Sorry just saw this request.

Here goes. Problem exists w/ MSFT as a ticker too.

Errors:

Runtime Error. Attempting to Deserialize an empty stream
at WealthLabPro.ChartForm.a(ObjectA_0, LoadSymbolEventArgs A_1)
at WealthLabPro.MainModule.LoadExternalSymbol(String symbol, BarScale scale, Int 32 barInterval, Boolean IncludePartialBar)
at WealthLab.DataProviders.DBStatic.RequestData(DataSourse ds, String Symbol, DateTime startDate, DateTime endDate, Int32 maxBars, Boolean includePartialBar)
at WealthLab.DatProviders.Database,DBStaticSettings,DeserializeFromString(String soapString)
at System.Runtime.Serialization.Formatters.Soap.SoapFormatter.Desearilze(Stream serializationStream, HeaderHAndler handler)


phew.........

Thanks.





profile picture

gbullr

#8
Just unclicked Buy and Hold.

Thanks Cone... sorry gentlemen....

makes obvious sense (post facto) of why there would be an error. Buy and hold security is not in 5 min interval... Thanks
profile picture

Cone

#9
That's the same signature as in the previous case that I linked. You're using the DBStatic provider, not the Fidelity Provider.

Edit: Roger! Just to check, what was the Buy & Hold symbol?
profile picture

Eugene

#10
Topic starter is probably not using the Database provider - just has it installed. When Wealth-Lab makes a request for the external symbol's (B&H) data, it happens that the DB provider is served first because its class name is first in alphabetical order. Since the B&H symbol is not present in gbullr's DBProvider DataSets (if there are any), here comes the error.
profile picture

gbullr

#11
external Symbol was yahoo index ^GSPC (above)

addittional question re errors:

I have a strategy for trading the months from May through Nov, worked last summer in terms of compiling and backtesting.

I have tried looking at it for the first time this year and I get the following error:

Runtime Error. Attempting to Deserialize an empty stream
at WealthLab.Strategies.CooledOffDemo.Execute()
at WealthLab.WealthScript.SetContext(String Symbol, Boolean Synchronize)
at WealthLabPro.ChartForm.a(Object A_0,LoadSymbolEventArgs A_1)
at WealthLabPro.MainModule.LoadExternalSymbol (String Symbol, BarScale, Int32 barInterval, Boolean includePartialBar)
at WealthLab.DataProviders.Database.DBStratic.RequestData(DataSource ds. String Symbol, DateTime startDate, DateTime endDate Int32 maxBars, Boolean include PartialBar)
at WealthLab.DataProviders.Database.DBStratic.DeserializeFromString(String soapString)
At System.Runtime.Serialization. Formatters.Soap.SoapFormatter.Deserialize(Stream SerializationStream, HeagerHandler handler)

Thanks.

Any chance you can make the error window cut and paste?

Thanks again for your help.

profile picture

Eugene

#12
The symbol behind SetContext must be missing, could not be found, or isn't present in the chart's bar scale.
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).