If you’re encountering this error message while saving or updating the product.
Kindly turn Off the show in online store toggle button, go to products and services >> edit product >> more details >>turn off the toggle button of Show in online Store >> update item
Please note that the products with batches cannot be shown on the online store.