How can we help you today? How can we help you today?

Exception Comparing Snapshots via Command Line

I get the following error when trying to compare snapshots via command line:

Registering data sources
Creating mappings
Comparing
Applying Command Line Items
Unexpected error: Object reference not set to an instance of an object.
Object reference not set to an instance of an object.
System.NullReferenceException
at #namb.#tamb.#q1r(ExitCodes #M6rc, Exception #9Z)
at RedGate.SQLToolsCommandLine.CommandProcessor.#Acmb(Exception #9Z)
at RedGate.SQLToolsCommandLine.CommandProcessor.#Acmb()
at RedGate.SQLToolsCommandLine.CommandProcessor.#ZjD()
at RedGate.SQLToolsCommandLine.CommandProcessor.#kcmb()
at #i9G.#wamb.#kcmb()
at RedGate.SQLToolsCommandLine.CommandProcessor.#OUb()


The command line I am running is as follows:

C:\PROGRA~2\REDGAT~1\SQLCOM~1\SQLCOM~1.EXE /sn1:"C:\TeamCity\AccessSentry\ChangeScripts\1.0.803\After_1.0.803.snp" /sn2:"C:\TeamCity\AccessSentry\ChangeScripts\1.0.803\Before_1.0.803.snp" /sf:"C:\TeamCity\AccessSentry\ChangeScripts\1.0.803\Schema_Changes_1.0.803.sql"

One thing to note is there are no acutal differences, so I don't know if that is what is causing the issue.

Any ideas on what would be causing this exception?

Thanks.

Jason
farreachjason
0

Comments

1 comment

  • farreachjason
    I determined it was the quotes that I had put around the file paths that was causing the issue. Once I removed the quotes it executed successfully.
    farreachjason
    0

Add comment

Please sign in to leave a comment.