| Author |
Message |
michaelmm22
Joined: 19 Apr 2011 Posts: 5
|
Posted: Tue Apr 19, 2011 4:58 pm Post subject: object reference not set to an instance of an object |
|
|
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 |
|
 |
james.billings
Joined: 16 Jun 2010 Posts: 864 Location: My desk.
|
Posted: Tue Apr 19, 2011 5:18 pm Post subject: |
|
|
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 |
|
 |
michaelmm22
Joined: 19 Apr 2011 Posts: 5
|
Posted: Tue Apr 19, 2011 5:32 pm Post subject: |
|
|
| Yes. I'm only comparing a few tables out of many. Any idea when this may be resolved? |
|
| Back to top |
|
 |
michaelmm22
Joined: 19 Apr 2011 Posts: 5
|
Posted: Tue Apr 19, 2011 5:48 pm Post subject: |
|
|
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 |
|
 |
james.billings
Joined: 16 Jun 2010 Posts: 864 Location: My desk.
|
Posted: Tue Apr 19, 2011 6:18 pm Post subject: |
|
|
| 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 |
|
 |
vincentj
Joined: 17 Feb 2011 Posts: 36
|
Posted: Thu Apr 21, 2011 11:47 pm Post subject: |
|
|
| 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 |
|
 |
Chris Auckland
Joined: 24 Oct 2006 Posts: 715 Location: Red Gate Software Ltd.
|
Posted: Fri Apr 22, 2011 8:59 am Post subject: |
|
|
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 |
|
 |
bkrogman
Joined: 22 Apr 2011 Posts: 1
|
Posted: Fri Apr 22, 2011 9:53 pm Post subject: Re: object reference not set to an instance of an object |
|
|
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 |
|
 |
james.billings
Joined: 16 Jun 2010 Posts: 864 Location: My desk.
|
|
| Back to top |
|
 |
jasonred
Joined: 12 May 2011 Posts: 2
|
Posted: Thu May 12, 2011 5:03 pm Post subject: Is this an official released update? |
|
|
| Is this patch officialy released? Or is it still in development i couldn't find any information on it. |
|
| Back to top |
|
 |
james.billings
Joined: 16 Jun 2010 Posts: 864 Location: My desk.
|
Posted: Thu May 12, 2011 5:04 pm Post subject: |
|
|
| 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 |
|
 |
jasonred
Joined: 12 May 2011 Posts: 2
|
Posted: Thu May 12, 2011 5:19 pm Post subject: It worked for me. |
|
|
| The patch worked. no problems. |
|
| Back to top |
|
 |
vincentj
Joined: 17 Feb 2011 Posts: 36
|
Posted: Wed May 25, 2011 12:03 am Post subject: |
|
|
| The patch worked for me as well, thank you! |
|
| Back to top |
|
 |
vincentj
Joined: 17 Feb 2011 Posts: 36
|
Posted: Mon Jun 06, 2011 10:07 pm Post subject: |
|
|
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 |
|
 |
Kasper Bengtsen
Joined: 13 Jul 2011 Posts: 6
|
Posted: Wed Jul 13, 2011 1:16 pm Post subject: |
|
|
| Patch made it work for me. |
|
| Back to top |
|
 |
|