1 of 3

In your problem, "earth" is not a system, but the combined sun and earth are. The angular momentum of the Sun-earth system is conserved. As the earth's mass is accelerating the sun, you have to take its angular momentum into account as well.

While the mass and size of the sun mean that we can ignore its motion with respect to the rest of the solar system, you can't do that for your calculation.