object reference not set to an instance of an object

Compares and synchronizes SQL database content.

Moderators: Chris Auckland, David Atkinson, richardjm, david connell

object reference not set to an instance of an object

Postby michaelmm22 » Tue Apr 19, 2011 4:58 pm

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.
michaelmm22
 
Posts: 5
Joined: Tue Apr 19, 2011 4:51 pm

Postby james.billings » Tue Apr 19, 2011 5:18 pm

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.
james.billings
 
Posts: 1144
Joined: Wed Jun 16, 2010 11:10 am
Location: My desk.

Postby michaelmm22 » Tue Apr 19, 2011 5:32 pm

Yes. I'm only comparing a few tables out of many. Any idea when this may be resolved?
michaelmm22
 
Posts: 5
Joined: Tue Apr 19, 2011 4:51 pm

Postby michaelmm22 » Tue Apr 19, 2011 5:48 pm

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.
michaelmm22
 
Posts: 5
Joined: Tue Apr 19, 2011 4:51 pm

Postby james.billings » Tue Apr 19, 2011 6:18 pm

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
james.billings
 
Posts: 1144
Joined: Wed Jun 16, 2010 11:10 am
Location: My desk.

Postby vincentj » Thu Apr 21, 2011 11:47 pm

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?
vincentj
 
Posts: 36
Joined: Thu Feb 17, 2011 10:20 pm

Postby Chris Auckland » Fri Apr 22, 2011 8:59 am

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
Chris Auckland
 
Posts: 757
Joined: Tue Oct 24, 2006 2:12 pm
Location: Red Gate Software Ltd.

Re: object reference not set to an instance of an object

Postby bkrogman » Fri Apr 22, 2011 9:53 pm

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

I have the same problem.
bkrogman
 
Posts: 1
Joined: Fri Apr 22, 2011 9:51 pm

Postby james.billings » Tue May 03, 2011 8:57 pm

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!
james.billings
 
Posts: 1144
Joined: Wed Jun 16, 2010 11:10 am
Location: My desk.

Is this an official released update?

Postby jasonred » Thu May 12, 2011 5:03 pm

Is this patch officialy released? Or is it still in development i couldn't find any information on it.
jasonred
 
Posts: 2
Joined: Thu May 12, 2011 5:01 pm

Postby james.billings » Thu May 12, 2011 5:04 pm

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.
james.billings
 
Posts: 1144
Joined: Wed Jun 16, 2010 11:10 am
Location: My desk.

It worked for me.

Postby jasonred » Thu May 12, 2011 5:19 pm

The patch worked. no problems.
jasonred
 
Posts: 2
Joined: Thu May 12, 2011 5:01 pm

Postby vincentj » Wed May 25, 2011 12:03 am

The patch worked for me as well, thank you!
vincentj
 
Posts: 36
Joined: Thu Feb 17, 2011 10:20 pm

Postby vincentj » Mon Jun 06, 2011 10:07 pm

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:

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.
vincentj
 
Posts: 36
Joined: Thu Feb 17, 2011 10:20 pm

Postby Kasper Bengtsen » Wed Jul 13, 2011 1:16 pm

Patch made it work for me.
Kasper Bengtsen
 
Posts: 6
Joined: Wed Jul 13, 2011 1:14 pm

Next

Return to SQL Data Compare Previous Versions

Who is online

Users browsing this forum: No registered users and 0 guests