Microsoft Dynamics AX – Cannot open database “AXDBRain” requested by the login

While doing some development in new Microsoft Dynamics AX , while adding a field in a Data entity ,during synchronization I got below error :

Error        Cannot open database “AXDBRain” requested by the login. The login failed.
Login failed for user ‘xxxxxxx-xxxxxxxx’. when try to connect to business database with provided configuration.  

This error was misleading  , because AXDBRain is not the correct DB which my AX is connected with.
Solution :

Go to C:UsersuseridDocumentsVisual Studio 2015SettingsDefaultConfig.XML
and change the following :


Save the file.

Restart VS and try to do Sync again , hopefully this will help to sync.

Leave a Comment

Your email address will not be published. Required fields are marked *