Achromatic beam-splitting grating doublets are designed for both continuous phase and binary phase gratings. By analyzing the sensitivity to lateral shifts between the two grating layers, it is shown that continuous-profile grating doublets are extremely difficult to fabricate. Achromatic grating doublets that have profiles with a constant first spatial derivative are significantly more resistant to lateral shifts between grating layers, where one design case showed a 17 times improvement in performance. Therefore, binary phase, multi-level phase, and blazed grating doublets perform significantly better than continuous phase grating doublets in the presence of a lateral shift between two grating layers. By studying the sensitivity to fabrication errors in the height of both grating layers, one grating layer height can be adjusted to maintain excellent performance over a large wavelength range if the other grating layer is fabricated incorrectly. It is shown in one design case that the performance of an achromatic Dammann grating doublet can be improved by a factor of 215 if the heights of the grating layers are chosen to minimize the performance change in the presence of fabrication errors.