"Unknown columns" error when executing a mass action
It creates an issue because you didn't define $_idFieldName
in your ResourceModel
Collection
Please add this line in Vendor\MyModule\Model\ResourceModel\MyModel\Collection
file.
/**
* @var string
*/
protected $_idFieldName = 'YOUR_PRIMARY_KEY';
Where $_idFieldName
is your table primary key
.