We have an inhouse CRM that use r code to update a mySQL table overnight. We didn't write it and while we have a rough idea of what it's doing, we don't understand the errors it sometimes gives.
We need help understanding what the lines do and how to fix the errors. Screen print of some errors attached and copy of the code attached. Generally when we get an error, we just run that part of the code again and it works! We don't understand why.