The solution was to avoid using the SelectByID2 method. Thank you Artem Taturevych!
You need to avoid using the SelectByID2 method, it is unreliable. Please read this article: Performing entity selection using SOLIDWORKS API
Peter Creveling, Please leave the original question in your posts, as an answer without the correct question is not nearly as useful. (see jeopardy for reference )
Retrieving data ...