Good afternoon! Sergey, as a way out of your situation, I can recommend using the checkbox
https://prnt.sc/upuym6 "If a category is selected, download all products of the category, even if they are not in stock" . In fact, it will load you all the products of the selected category, and not those that you "conditionally" scanned. Then you carry out a re-account of actual balances, and write off everything else.