A lot of grand duchies were created in the Napoleonic era and by the Congress of Vienna and the German Confederation . A considerable number of grand duchies were created in the Napoleonic era , and later following the Congress of Vienna and the foundation of the German Confederation .