Turns out that one of the parts is in a Read Only library location, causing the error.
The code works beautifully. Thank you, fulvio81.