I’m having issues launching Olympus. The application will run and allows me to login, but I keep getting errors when trying to configure the WebAPI options. I’m not sure if I’m setting the options correctly.
My setup:
Database: SQL Server
Database Name: OMOP_V5
CDM tables schema: dbo
Olympus configuration:
SQL Dialect: SQLSERVER
Host Server:
Username/Password: Local DB account with full rights
CDM Database Name / Schema: OMOP_V5
Results Database Name / Schema: OMOP_V5
Cohort Database Name / Schema: OMOP_V5
The error I’m getting is:
WebAPI was not able to start up successfully, please check your configuration. (org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘flyway’ defined in class path resource [org/springframework/boot/autoconfigure/flyway/FlywayAutoConfiguration$FlywayConfiguration.class]: Invocation of init method failed; nested exception is org.flywaydb.core.internal.dbsupport.FlywaySqlScriptException: Migration V1.0.0.3__cohort_definition_persistence.sql failed ------------------------------------------------------------ SQL State : S0000 Error Code : 1770 Message : Foreign key ‘FK_cohort_definition_details_cohort_definition’ references invalid column ‘id’ in referenced table ‘dbo.cohort_definition’. Location : db/migration/sqlserver/V1.0.0.3__cohort_definition_persistence.sql (C:\Users\vhaisllarimg\AppData\Local\Temp\2\jetty-0.0.0.0-20000-WebAPI.war-_WebAPI-any-\webapp\WEB-INF\classes\db\migration\sqlserver\V1.0.0.3__cohort_definition_persistence.sql) Line : 1 Statement : IF (NOT EXISTS (SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA = ‘dbo’ AND TABLE_NAME = ‘cohort_definition’)) BEGIN CREATE TABLE [dbo].[cohort_definition]( [id] [int] NOT NULL identity(1,1), [name] varchar NOT NULL, [description] varchar NULL, [expression_type] varchar NULL, [created_by] varchar NULL, [created_date] 2018-10-28 16:34:04 NULL, [modified_by] varchar NULL, [modified_date] 2018-10-28 16:34:04 NULL, CONSTRAINT [PK_cohort_definition] PRIMARY KEY (id) ) ON [PRIMARY] END ; IF (NOT EXISTS (SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA = ‘dbo’ AND TABLE_NAME = ‘cohort_definition_details’)) BEGIN CREATE TABLE [dbo].[cohort_definition_details]( [id] [int], [expression] varchar NOT NULL, CONSTRAINT PK_cohort_definition_details PRIMARY KEY (id), CONSTRAINT FK_cohort_definition_details_cohort_definition FOREIGN KEY (id) REFERENCES dbo.cohort_definition(id) ) ON [PRIMARY]; END ; )
The inner exception appears to expect the primary key of the cohort_definition table to be [id], but according to the CDM, the primary key is titled [cohort_definition_id].
I’m not sure if I’m configuring Olympus wrong or if there’s a mistake in my CDM architecture. Any thoughts?
Thanks
Grant