Autodesk.revit.db.locationpoint

Does anyone know this error? Do you know what it could be? I’m trying to export coordinate data from project elements to Json, I managed to run the script until the end, but at the end of the process, this error occurs and it doesn’t export, can anyone tell me what this is about?
Exportando JSON.dyn (82.2 KB)