Developer forum

Forum » Swift » Swift 2, cannot build indexes

Swift 2, cannot build indexes

Joakim
Reply

Hi,
I've installed a fresh 2.1 Swift on a dynamicweb 10.17.5. I've imported the swift 2.1 database. Im attempting to build indexes but when I navigate to any given repository I experience an error:


Did I make an error when setting up this project?


Replies

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

Yes, it seems like you made an error.

You seem to have overwritten the user in global settings for the database.

At least the SQLExceptiopn error indicates that you have a SQL user with no name "Login failed for user ''" which indicates that either you have lost the username from your settings, or that whatever SQL user Dynamicweb is setup to connect to the database with does not have access to the database.

So check the setup - is global settings ok - do you have more .settings files in /Files and do they both have database setups?

 
Joakim
Reply

I followed the installation setup and when testing databse connection it was successful. I'm left with 3 .config files:
GlobalSettings.config
GlobalSettings.Database.config  Contains login credentials
GlobalSettings.Ecom.config

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply
This post has been marked as an answer

And do the 3 config files have database settings?

Votes for this answer: 1
 
Joakim
Reply

Only GlobalSettings.Database.config

 
Joakim
Reply

Solved by adding <Database> to ecom config file. Thank you for the assistance.

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

Hi Joakim

You probably had the database section in more than one file. You should only have it one file.

 

You must be logged in to post in the forum