Error at Import- 105039:EPMERPI - 105041:EPMERPI - Error compiling the script &AttributeError: 'list
infilename = fdmContext["INBOXDIR"] +  "FXRATE.txt"
infile = open(infilename, "r").readlines()
firstLine = infile.pop(0) #removes the header(first line)
infile = infile[:-1]#removes the last line
for line in infile:
 a = line.split()
 fdmAPI.logInfo(str(a))
 CheckNumeric = a[4]
 CheckNumeric1 = a[5]
 strfield = a[3]
 fdmAPI.logInfo(str(CheckNumeric))
 fdmAPI.logInfo(str(CheckNumeric1))
 fdmAPI.logInfo(strfield)
infile.close()
# test to see if it is numeric
CheckNum = CheckNumeric.isnumeric();
fdmAPI.logInfo(str(CheckNum))
if CheckNum == True:
 FactorMultiply = CheckNumeric
 fdmAPI.logInfo(str(FactorMultiply))
 FactorMultiply = int(FactorMultiply)
# test to see if it is numeric 
CheckNum1 = CheckNumeric1.isnumeric();
fdmAPI.logInfo(str(CheckNum1))
if CheckNum1 == True:
 Factordivide = CheckNumeric1
