The autoCalendar should not be a problem unless you have two autoCalendars in the script. This happens when you unlock the script and then add data with date fields using the data manager. Then Qlik adds a second autoCalendar and there is a Duplicate Derived Field error.
Make sure there is only one calendar. Otherwise the error is caused by something else.