This error happens while creating AmiBroker database, when the database directory is not empty.

Solution
- Click File -> Recent Databases (Click “Data” or any other database)
- Now go inside your database folder (Example: C:\autotrader\rtd\amibroker\autotrader). Delete everything inside this folder to make it empty.
- Click File -> New -> Database
- Try to create your database