If you have Global dimension 1 code or Global dimension 2 code set as code mandatory in G/L account then you get this error. The error is very misleading but that’s what it is. If you go to your G/L account 60104—>dimensions you will be having the Global dimension1 or global dimension 2 set as code mandatory.