Python TypeError

338
1
01-08-2019 01:07 PM
MarcoPretorius1
New Contributor II

Hello, I am trying to run this script to export attachments to a folder and get the following error. Script is attached. 

 

0 Kudos
1 Reply
DanPatterson_Retired
MVP Emeritus

before line 123 ish

renameFile(currentAttachmentPath, newAttachmentPath)

throw in a print function to get the above input parameters to check them.

whatever you are passing in to the paths seems to be a list.  This might mean there is only one object in the list and you want the first object, but what it is looking for is basically a text string which denotes the full pathname, and it is getting a list instead

0 Kudos