I got this error despite using the function data.ContainsKey("SPY") to check if there is data before trying to access the data. Yet I still get this error.