Despite added the filter criteria for specific security to exclude, I keep getting same error during the back testing. Where this is being called from. I filtered out the security from on_data and CoarseSelectionFunction

Backtest Handled Error: No data loaded for ABFS R735QTJ8XC9X because there were no tradeable dates for this security.

 

 def OnData(self, data):
        if self.IsWarmingUp or not self.warmUpCompleted:
            return

        if not data:
            self.log("No data available for this slice")
            return            

        try:
            if data.ContainsKey("ABFS"): 
                return
        except Exception as e:
            self.logger.log(f"Error processing data for ABFS: {str(e)}")              

 

def CoarseSelectionFunction(self, coarse):       

        trading_date = self.algorithm.Time.strftime('%Y-%m-%d')  # Get the trading day in 'YYYY-MM-DD' format

        # Track memory usage before selection
        process = psutil.Process()
        memory_before = process.memory_info().rss / (1024 * 1024)  # Convert to MB

        selected: List[str] = []
        for stock in coarse:            
            if stock.Symbol.Value != 'ABFS' and stock.HasFundamentalData and stock.Price > params.PRICE_THRESHOLD and stock.DollarVolume > params.DOLLAR_VOLUME_THRESHOLD:
                selected.append(stock.Symbol)