Forum Discussion

JackSparrow's avatar
JackSparrow
Frequent Contributor
9 years ago

facing an runtime python error "int object has no attribute split "

Hi All, Am trying to save the extracted data from the DB to a list but am facing the python runtime error "int  object has no attribute split"   def TestProc(): AConnection = ADO.CreateADOConn...
  • baxatob's avatar
    baxatob
    9 years ago

    Try to update your code:

     

    ...

    data_container = [] # create an empty list while not RecSet.EOF: rows = RecSet.Fields.Item["empno "].Value data_container.append(rows) # add retrieved value to the list RecSet.MoveNext()
    ...

    After the while loop will be completed, data_container list should contain all requested values from your table.

  • baxatob's avatar
    baxatob
    9 years ago

    Try this:

     

    Log.Message(str(data_container))

    That is not the best solution, but it should help you to understand the output using Log.Message() method.