There are multiple factors that cause errors. These include acceleration errors, turning errors and deviation errors, largely due to the Earth's magnetic field not being uniform, local magnetic fields in the airplane, and the compass's geographical position.