Seems to be working now. Not sure what was wrong but it appears that I needed to do a make (have not done it for org for some years) after that the error disappeared.
It seems I can only export one subtree on which point is.
How to export the whole file?