Hi folks,
Keep getting this error.. I am trying to automate a .txt file to export it's contents into an excel table. Where am I going wrong?

Hi folks,
Keep getting this error.. I am trying to automate a .txt file to export it's contents into an excel table. Where am I going wrong?
It says you are using the "indexOf" function and it's first parameter is an object but a String is expected instead. It can happen when you are passing "Created By" (which is an object with properties like name, email, etc.) instead of "Created By Email" (which is a string containing the user email).