gflewis / sndml3

ServiceNow Data Mart Loader: an application to load SQL databases from ServiceNow
MIT License
30 stars 19 forks source link

'sys_id' is specified more than once in the SET when loading cmdb_ci #22

Closed SamoSlaus closed 4 years ago

SamoSlaus commented 4 years ago

Here is the error: `C:\ServiceNowDatamartLoader\sndml-3.2.0>java -Xmx1048M -jar sndml-3.0.2-mssql.jar -p profile.txt -y cmdb_ci_full.yml 15:00:24 INFO [main] Globals GLOBAL INIT: loadProperties C:\ServiceNowDatamartLoader\sndml-3.2.0\profile.txt 15:00:24 INFO [main] Session GLOBAL INIT: instance= 15:00:24 INFO [main] Database GLOBAL INIT: database=;databaseName= 15:00:25 INFO [main] Generator GLOBAL INIT: dialect=mssql schema=null namecase=LOWER namequotes=SQUARE 15:00:25 INFO [main] LoaderConfig GLOBAL INIT: metrics: cmdb_ci.metrics tables:

gflewis commented 4 years ago

This looks like the 3.0.2 JAR. Can you try running with the 3.2.0 JAR, and see if you get the same error?

If that does not work, can you try dropping the cmdb_ci table, and then run again, and send the log. I would like to see what the CREATE TABLE looks like.

Thanks Giles

SamoSlaus commented 4 years ago

Found out that datamart.schema is now mandatory. Added it and it's working! Thanks!