A better question; when did they make the first one that was right upon initial release? 
We're still waiting for this one aren't we?
Yippie….more trivia; the category today is field fixes and updates. The 1965 Electra Glide was not initially equipped with a Starter Relay or primary housing vent. This resulted in issues with burnt out starter buttons and oil soaked clutches. Field updates were available for these Motorcycles. I believe that the early electric start machines were also equipped with a Delco starter which was later changed out for a Prestolite.
Early 1970 Shovels had the circuit breaker cam redesigned to inhibit the formation of holes in the pistons.
When HD introduced the 1000 cc XL in 72, the bore was increased by 3/16” yet the headbolt pattern remained unchanged. The reduced cross section of the cylinder resulted in substantial cylinder distortion and robust oil consumption. This was addressed in mid 1973 production by increasing the diameter of the headbolt pattern. The headbolts were also changed from 9/16” hex head to 3/8” 12 point.
Pre 73 XL’s with trans drive speedos were famous for purging the speedo drive components right through the lower right area of the transmission housing.
Early 1973 XL’s were subject to frame breakage which was addressed with a field fix that involved welding in a pair of struts.
Speaking of 1973, the DOT mandated that Motorcycles manufactured after Jan 1, 1973 had to be equipped with turn signals and the tail light had to meet a new DOT spec. Sportster CH’s and some others built prior to Jan-73 did not have turn signals, and all XL’s and BT’s were equipped with the smaller style tail light used from 1955 & up. Early 1973 production XL,s had no turn signals; different tail light; different cylinders and heads and a different frame.
In 1974, there were substantial issues with the one piece, chrome plated oil control rings used in the Shovels. The chrome would peel off the oil ring, scoring the cylinder and lubricating the inside of the exhaust pipe.
I believe that 1975 was the year the rear disc brakes were fit with different master cylinder rubber components; caliper pistons and DOT-5 fluid. The early brakes would boil the DOT-3 fluid rendering the brake inoperative. I believe that there was a recall which affected 1974 and 1975 models.
In 1979 there was a tendency for XL’s to purge mainshaft 3rd gear through the back of the transmission housing.
From 1970 through 1979, it was not common for the mechanical advance mechanism to stick in the advanced position, resulting in frequent starter clutch failure.
Ratchet-lid 4 speeds were famous for “lifting” the top cover off the housing whenever a drive chain broke.
Other than that, things were pretty good. As always, this bit of trivia and $4 will get you a fabulous cup of genuine Starbucks coffee.
djkak