That happened to me with a 2009 A4 Avant with the same 7 speed DSG gearbox. The car was 7 years old with just under 100,000ks at the time and Audi replaced the Mechatronic unit under good will. It's an $8,000 repair.
1997 A3 1.8T sold
2000 TT quattro sold
2005 Lava Grey A3 2.0 TFSI DSG Sportback, Open Sky, roof racks, Vienna Leather. Sold
2006 Black A4 2.0 TFSI S-line Quattro Avant Sold
2009 White A4 2.0 TFSI Quattro Avant, Open Sky roof, MMi+ 19" rims, Bang and Olufsen, adaptive cruse, Oak Beaufort trim. Sold
2016 A4 Quattro sport Avant, Manhattan Gray, Panno roof, Technik package, Assistance package. Sold
2018 S4 Avant, Sports diff, S performance package, Technik package, honeycomb grille, Nardo Grey Wrap.