Truth is, I am not in the same location as my colleague and, because he is not fluent with English, I was the chosen one to look for clues and ideas on the wilderness of the internet. This distance, in combination with other job related responsibilities, makes for a great delay in feedback.
I know that this particular issue is solved since Sunday morning, and I am curious to know how it was fixed, but my colleague is busy and who knows when (or if) he will answer to my curiosity.
Thank you all for your feedback, I hope I can answer soon with the (hopefully simple enough) fix that solved this issue.
---Update---
Well, there was an AFI function that prevented the routine from proper execution... so that's it.
Again, thank you all for your ideas.