Hi Niklas,
Normal AX users don't need additional rights for this x++ statement. This statement is used throughout the system. Note that all users should have at least the system user role for one, more or all legal entities.
So try Martins suggestion.