After some tests it was found that the errors were due to a wrong line of code in the map export process. Everything works now.