AX 2009 enum DateFlags error
When you compile the AOT, you got a error which said enum DateFlags not found.
Probably the problem was in different version of client and AOS. Client was AX 2009 without SP1. After installation of service pack on client machine. The compilation was OK.