program compiles
error occurs at runtime at formcreate in .lpr file.
Can catch the error in a try..except block but no information about where the error occurred.
The code snippet I have attached is what I moved from a class to global procedure/function. (If needs be, I could send all the code.)
For what it is worth, I commented the two and their references and the tcsvdataset in the uses clause in the unit where they reside and the error still was thrown.
It wasn't broke, i.e., I could use the functionality and then I moved it/tried to fix it.
In an attempt to localize the issue, I added (then removed) csvdataset to all the uses clauses in the project, one at a time. The issue persisted.