It might possible the table is having column store index and user is trying to do operations i.e. insert, update or delete. In that case this error can happen.
In the "where" Clause the "datename" function is Nondeterministic function also when we use "like" operator then query can not use indexes on that key resulted in table scan rather...