If you have 2018.2 you can use the following blog article (updated for newest software release) to use a more amenable method of achieving what you want to do. Timely answer to a question. This was just published a couple of days ago. Three different data source methodologies.
I don't have 2018.2 and we have a lag on getting upgrades so I'm not sure when I'll get to use this awesome update. Just hoping someone can help me with using 10.5.