Index was outside the bounds of the Array. (Microsoft.SqlServer.smo) December 28, 2022 by Tarik Restarting the Management Studio worked for me.