This typically happens when the date and location you are adding to is in a Legal Entity with a closed period, as you cannot add transactions to dates that are prior to a closed period. Check your Legal Entity record to see the closed date.