Red Gate forums :: View topic - Command Line Error: Object Reference Not Set
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
SQL Compare 10
SQL Compare 10 forum

Command Line Error: Object Reference Not Set

Search in SQL Compare 10 forum
Post new topic   Reply to topic
Jump to:  
Author Message
hagenl



Joined: 24 Sep 2013
Posts: 6
Location: United States

PostPosted: Tue Oct 01, 2013 1:30 am    Post subject: Command Line Error: Object Reference Not Set Reply with quote

I'm running SQL Compare from the Command Line to create a script for deploying objects into a (currently empty) database. The database uses SQL Authentication & the script is being saved to a network drive.

When I run the script, I receive the following error:
Code:
17:18:15.677|Fatal  |Command Line        |1  |Object reference not set to an instance of an object.
RedGate.Shared.Utils.CommandLine.FatalExecutionException: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object.
   at #8rg.#PC0c.#oxVb(Database #xXrc, Database #RHc)
   at #Y5rb.#Z5rb.#um()
   at #Y5rb.#15rb.#xOh(#XrPb #tIc, #en #5OPb, Boolean #hkl)
   at #Y5rb.#15rb.#HOh(#XrPb #tIc, Difference #6Urc, #en #5OPb, Boolean #hkl)
   at RedGate.SQLCompare.Common.CompareEngineExecutor.#Y9G()
   at RedGate.SQLCompare.CommandLine.CommandLineCompareEngineExecutor.#Y9G()
   at #dRb.#8Rb.#kco()
   at #dRb.#eRb.#Pao()
   --- End of inner exception stack trace ---
   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 RedGate.SQLCompare.CommandLine.CommandProcessor.#kcmb()
   at RedGate.SQLToolsCommandLine.CommandProcessor.#OUb()


Using Verbose logging, this happens after the object differences are printed out + 2 Synchronization warnings are shown re: my user account.

Could someone point me in the direction of what might be causing this error to appear?
Back to top
View user's profile Send private message
hagenl



Joined: 24 Sep 2013
Posts: 6
Location: United States

PostPosted: Tue Oct 01, 2013 2:01 am    Post subject: Reply with quote

My mistake: the variable passed into the database name was null.

Would be nice if that error message were slightly more helpful, but problem resolved.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group