error while reading xlsx files

I am trying to read xlsx files belongs to path but sometimes it works perfectly and sometimes it gives error .
what can be a reason ....???

my_file <- read_xlsx(my_path, sheet = 1, col_names = T, col_types = "text", trim_ws = F, na = "",.name_repair = "minimal")


Error in read_xlsx(my_path, sheet = 1, col_names = T, col_types = "text",  : 
  unused arguments (sheet = 1, col_names = T, col_types = "text", trim_ws = F, na = "", .name_repair = "minimal")

Hard to say without a reproducible example. Is it possible you overload read_excel with another package or your own code?