Noticed that added drawing camera was linked to the scene collection and after collector.assign it was linked to the 2 collections instead of just 1 - it's own drawing collection and the scene collection.
4e48c35425
it was failing because type object was hidden in viewport and was unselectable