Ensure that you have populated the template with the appropriate file titles you require, specifically the number of lines device field, if you specify two lines, additional file titles appear for the second line appearance.
It is imperative that you verify that where you have specified additional titles, such as Voicemail profile, line CSS for example the data entered needs to match exactly the name of the voicemail profile you have created, or calling search space name etc..... Any fields you have added like this where a string or integer does not match will throw out BAT when you try to insert the phone.