Thermodynamic and kinetic control on the formation of two novel metal-organic frameworks based on the Er(III) ion and the asymmetric dimethylsuccinate ligand.