Red Gate forums :: View topic - object reference not set to an instance of an object
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
SQL Data Compare Previous Versions
SQL Data Compare Previous Versions forum

object reference not set to an instance of an object

Search in SQL Data Compare Previous Versions forum
Post new topic   Reply to topic
Jump to:  
Go to page 1, 2  Next
Author Message
michaelmm22



Joined: 19 Apr 2011
Posts: 5

PostPosted: Tue Apr 19, 2011 4:58 pm    Post subject: object reference not set to an instance of an object Reply with quote

I have a project that compares, and then syncs changes perfectly between 2 databases. When I run from the command line I get:

Registering databases
Mapping
Comparing databases
Error: Object reference not set to an instance of an object.
Back to top
View user's profile Send private message
james.billings



Joined: 16 Jun 2010
Posts: 1123
Location: My desk.

PostPosted: Tue Apr 19, 2011 5:18 pm    Post subject: Reply with quote

We've had one or two instances of this being reported recently.

Do you have some tables that only exist in one of the databases? If so, it sounds like a known issue that we currently have a bug logged for.
Back to top
View user's profile Send private message
michaelmm22



Joined: 19 Apr 2011
Posts: 5

PostPosted: Tue Apr 19, 2011 5:32 pm    Post subject: Reply with quote

Yes. I'm only comparing a few tables out of many. Any idea when this may be resolved?
Back to top
View user's profile Send private message
michaelmm22



Joined: 19 Apr 2011
Posts: 5

PostPosted: Tue Apr 19, 2011 5:48 pm    Post subject: Reply with quote

I just ran it through the comand line using version 8, which is still installed on the server. I started with 8 just before 9 came out, and it runs fine.

I don't know if this is relevant, but 9 also gave me an error about licensing.
Back to top
View user's profile Send private message
james.billings



Joined: 16 Jun 2010
Posts: 1123
Location: My desk.

PostPosted: Tue Apr 19, 2011 6:18 pm    Post subject: Reply with quote

I'm not sure precisely when it will be fixed; but we've had a few reports now so hopefully it should be fairly soon
Back to top
View user's profile Send private message
vincentj



Joined: 17 Feb 2011
Posts: 36

PostPosted: Thu Apr 21, 2011 11:47 pm    Post subject: Reply with quote

I'm getting this same error, but I can't use version 8 because that gives me an error about "Only x86 assemblies are currently supported." I have some tables that only exist on the second server, and I tried excluding them but I still get the error. Is there a workaround for this issue or do I have to wait until the next version is released?
Back to top
View user's profile Send private message
Chris Auckland



Joined: 24 Oct 2006
Posts: 755
Location: Red Gate Software Ltd.

PostPosted: Fri Apr 22, 2011 8:59 am    Post subject: Reply with quote

I'm afraid the only workaround is to completely sync the schemas using SQL Compare. If there are more tables in one database than the other, you'll encounter this error from the command line.
_________________
Chris
Back to top
View user's profile Send private message Send e-mail
bkrogman



Joined: 22 Apr 2011
Posts: 1

PostPosted: Fri Apr 22, 2011 9:53 pm    Post subject: Re: object reference not set to an instance of an object Reply with quote

Registering databases
Mapping
Comparing databases
Error: Object reference not set to an instance of an object.[/quote]

I have the same problem.
Back to top
View user's profile Send private message
james.billings



Joined: 16 Jun 2010
Posts: 1123
Location: My desk.

PostPosted: Tue May 03, 2011 8:57 pm    Post subject: Reply with quote

Could users experiencing this issue please try the following patch: ftp://support.red-gate.com/patches/SQL_Data_Compare/SQL Data Compare_9.0.1.2.exe - and let us know if it helps?

Thanks!
Back to top
View user's profile Send private message
jasonred



Joined: 12 May 2011
Posts: 2

PostPosted: Thu May 12, 2011 5:03 pm    Post subject: Is this an official released update? Reply with quote

Is this patch officialy released? Or is it still in development i couldn't find any information on it.
Back to top
View user's profile Send private message
james.billings



Joined: 16 Jun 2010
Posts: 1123
Location: My desk.

PostPosted: Thu May 12, 2011 5:04 pm    Post subject: Reply with quote

It's still a private build specifically for addressing the issue discussed here; however the same fix should be in the next "proper" release of SQL Data Compare.
Back to top
View user's profile Send private message
jasonred



Joined: 12 May 2011
Posts: 2

PostPosted: Thu May 12, 2011 5:19 pm    Post subject: It worked for me. Reply with quote

The patch worked. no problems.
Back to top
View user's profile Send private message
vincentj



Joined: 17 Feb 2011
Posts: 36

PostPosted: Wed May 25, 2011 12:03 am    Post subject: Reply with quote

The patch worked for me as well, thank you!
Back to top
View user's profile Send private message
vincentj



Joined: 17 Feb 2011
Posts: 36

PostPosted: Mon Jun 06, 2011 10:07 pm    Post subject: Reply with quote

Oh, one thing to note about this version. It seems to be leaving a folder behind inside the Data folder. If I run it twice, the second run fails with a bunch of errors like the following:

Quote:
Error: Ignored statement found in file
d:\build\Database\trunk\Data\634429737738099016\dbo.tablename_Data.sql
at line 1


If I delete that weird folder (634429737738099016) then it works fine.
Back to top
View user's profile Send private message
Kasper Bengtsen



Joined: 13 Jul 2011
Posts: 6

PostPosted: Wed Jul 13, 2011 1:16 pm    Post subject: Reply with quote

Patch made it work for me.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Go to page 1, 2  Next
Page 1 of 2

 
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