Object reference error during Import
Moderator: SourceGear
Object reference error during Import
Good morning,
Using v3.5.0:
I exported a folder with the Import/Export utility (about 6700 transactions total), but when trying to import it into another repository (same server), the app crashes with an object reference error (attached). Any ideas?
Using v3.5.0:
I exported a folder with the Import/Export utility (about 6700 transactions total), but when trying to import it into another repository (same server), the app crashes with an object reference error (attached). Any ideas?
- Attachments
-
- Received midway through import
- importerror.jpeg (37.83 KiB) Viewed 13184 times
I've thrown every trick I know of at getting this particular import to work, but I hit various roadblocks in the form of errors.
I'll start at beginning; we exported part of our VSS database last week (following all recommendations) and imported it to a clean repository just fine. This has been up and going in Vault for 2 weeks. I need a particular folder of this Vault repository copied to another repository (my "master" repository, which was created earlier this week after my first attempt at it failed due to checksum errors; see http://support.sourcegear.com/viewtopic.php?t=6927 ); I used the Import Export tool to export the folder I wanted and received NO ERRORS, but the error in screenshot above is what I get shortly through the import.
I then tried using the Import Export tool to just export a subfolder of this project; again, exports with no errors. But shortly after trying the import, I get this error (in both a popup dialog and in the ExportImport log):
<generic>: [<No Name>:2368] Folder Import: An exception occurred in ProcessResults_ProcessTransaction() Tx: 553510 on 11/4/2005 4:58:28 PM
Change Set Items (Create Folder) $/Test/InfoDirections/Misc Exception: Object reference not set to an instance of an object. at VaultFolderExportImport.frmImport.ProcessResults_ProcessTransaction(ImportCommandResult icr)
Nothing was being written to the server log during either import attempt, except for a bunch admin login statements with a timestamp.
So I went back to my original VSS database that I exported into Vault 2 weeks ago, and after doing diffs to find out nothing in this particular project had yet changed, I would try to use the VSS Import tool once again, but this time at my other "master" repository. However, while some files are successfully imported with history, a bunch of others are not, and I am getting quite a few of those FileCheckSum errors I reported in that earlier thread.
I tried once more with the VSS Import tool on the same archive to a brand new repository, and that imports cleanly. I Export from that clean repository with Import/Export tool with no problems, but trying to import I'm back to that object reference from earlier above in this message.
In summary:
***I can VSS Import this particular archive from VSS with NO PROBLEMS to a clean repository.
***I cannot VSS Import this particular archive into my desired target master repository without checksum errors on about 25% of the files (basically it imports the files with the first 1 or 2 revisions of history and then quits).
***I can Export a folder (with Import/Export Utility) from a healthy standalone repository without issue.
***I cannot Import a *.vfe file into ANY repository without one of the above two object reference errors.
***The sgvault.log only throws the FileCheckSum exceptions from the VSS Import in this format : VaultFileUpload.aspx encountered: FailFileInvalidCheckSum (one for each problematic file revision)
***The sgvault.log shows nothing I can find with regard to use of the Import/Export utility, aside from the act of the admin user logging in.
***The VaultFolderImportExport.txt shows no exceptions with regard to the export of any transactions I have attempted.
***The VaultFolderImportExport.txt does not make any reference to the object reference error in the screenshot at the beginning of this thread (when I tried to export the entire target folder).
***The VaultFolderImportExport.txt does make reference to the import of ProcessResults_ProcessTransaction() Tx: 553510 (when I tried to export just 1 of 9 folders in my target folder).
***With regard to the errors described in the 2 log files above, debug logging provides no additional information than what's there/not there as opposed to normal logging regarding neither the checksum or the Import Tool transaction errors.
Well that was a doozy of a posting; hope I didn't put anyone to sleep. I could REALLY use your advice on where to go next; are there particular logs, db backups, VSS archives, machine information I can send you to make sense of this? I have 11 more VSS branches worth of stuff to import into my master repository by the end of the year, and it worries me that towards the tail end of my first version that I'm getting inconsistent VSS import behavior, and zero desired behavior with the Import functionality of the Import/Export Tool.
Thanks very much,
--jdavidi
I'll start at beginning; we exported part of our VSS database last week (following all recommendations) and imported it to a clean repository just fine. This has been up and going in Vault for 2 weeks. I need a particular folder of this Vault repository copied to another repository (my "master" repository, which was created earlier this week after my first attempt at it failed due to checksum errors; see http://support.sourcegear.com/viewtopic.php?t=6927 ); I used the Import Export tool to export the folder I wanted and received NO ERRORS, but the error in screenshot above is what I get shortly through the import.
I then tried using the Import Export tool to just export a subfolder of this project; again, exports with no errors. But shortly after trying the import, I get this error (in both a popup dialog and in the ExportImport log):
<generic>: [<No Name>:2368] Folder Import: An exception occurred in ProcessResults_ProcessTransaction() Tx: 553510 on 11/4/2005 4:58:28 PM
Change Set Items (Create Folder) $/Test/InfoDirections/Misc Exception: Object reference not set to an instance of an object. at VaultFolderExportImport.frmImport.ProcessResults_ProcessTransaction(ImportCommandResult icr)
Nothing was being written to the server log during either import attempt, except for a bunch admin login statements with a timestamp.
So I went back to my original VSS database that I exported into Vault 2 weeks ago, and after doing diffs to find out nothing in this particular project had yet changed, I would try to use the VSS Import tool once again, but this time at my other "master" repository. However, while some files are successfully imported with history, a bunch of others are not, and I am getting quite a few of those FileCheckSum errors I reported in that earlier thread.
I tried once more with the VSS Import tool on the same archive to a brand new repository, and that imports cleanly. I Export from that clean repository with Import/Export tool with no problems, but trying to import I'm back to that object reference from earlier above in this message.
In summary:
***I can VSS Import this particular archive from VSS with NO PROBLEMS to a clean repository.
***I cannot VSS Import this particular archive into my desired target master repository without checksum errors on about 25% of the files (basically it imports the files with the first 1 or 2 revisions of history and then quits).
***I can Export a folder (with Import/Export Utility) from a healthy standalone repository without issue.
***I cannot Import a *.vfe file into ANY repository without one of the above two object reference errors.
***The sgvault.log only throws the FileCheckSum exceptions from the VSS Import in this format : VaultFileUpload.aspx encountered: FailFileInvalidCheckSum (one for each problematic file revision)
***The sgvault.log shows nothing I can find with regard to use of the Import/Export utility, aside from the act of the admin user logging in.
***The VaultFolderImportExport.txt shows no exceptions with regard to the export of any transactions I have attempted.
***The VaultFolderImportExport.txt does not make any reference to the object reference error in the screenshot at the beginning of this thread (when I tried to export the entire target folder).
***The VaultFolderImportExport.txt does make reference to the import of ProcessResults_ProcessTransaction() Tx: 553510 (when I tried to export just 1 of 9 folders in my target folder).
***With regard to the errors described in the 2 log files above, debug logging provides no additional information than what's there/not there as opposed to normal logging regarding neither the checksum or the Import Tool transaction errors.
Well that was a doozy of a posting; hope I didn't put anyone to sleep. I could REALLY use your advice on where to go next; are there particular logs, db backups, VSS archives, machine information I can send you to make sense of this? I have 11 more VSS branches worth of stuff to import into my master repository by the end of the year, and it worries me that towards the tail end of my first version that I'm getting inconsistent VSS import behavior, and zero desired behavior with the Import functionality of the Import/Export Tool.
Thanks very much,
--jdavidi
We can approach this a couple of different ways.
The easiest thing to do would be to send the Vault Folder Export file (.vfe). We can then test the import in a debug environment to see what is going on.
A different solution would be to place the Vault Server in Debug Logging mode, delete the export/import log file, run the export again, and then send both the logs for evaluation.
Let us know how you would like to proceed.
The easiest thing to do would be to send the Vault Folder Export file (.vfe). We can then test the import in a debug environment to see what is going on.
A different solution would be to place the Vault Server in Debug Logging mode, delete the export/import log file, run the export again, and then send both the logs for evaluation.
Let us know how you would like to proceed.
Jeff Clausius
SourceGear
SourceGear
jdavidi:
Can I ask you to try something? Can you create an empty repository, and import the file you sent me into that repository?
In my test the import succeeded successfully. I'm currently running in import into $/ID/POS/WSAPIC/ES (abbreviated for privacy reasons). If that works, then there must be something about the repository you are importing which is causing the problem.
Now, I've only addressed the Vault Import issue. Do you want to also pursue the VSS import problem?
Can I ask you to try something? Can you create an empty repository, and import the file you sent me into that repository?
In my test the import succeeded successfully. I'm currently running in import into $/ID/POS/WSAPIC/ES (abbreviated for privacy reasons). If that works, then there must be something about the repository you are importing which is causing the problem.
Now, I've only addressed the Vault Import issue. Do you want to also pursue the VSS import problem?
Jeff Clausius
SourceGear
SourceGear
Hi Jeff,
I will try the import on a blank repository this evening.
As for the VSS Import issue with the FileCheckSum errors, yes we would really like an explanation/workaround if possible. We're holding up our import schedule because we're afraid of what it might do to our live repository. The Import/Export method was an attempt at a workaround for a set of projects that didn't make our initial import run.
Thanks; anything more you need from me file-wise I can get you.
--jdavidi
I will try the import on a blank repository this evening.
As for the VSS Import issue with the FileCheckSum errors, yes we would really like an explanation/workaround if possible. We're holding up our import schedule because we're afraid of what it might do to our live repository. The Import/Export method was an attempt at a workaround for a set of projects that didn't make our initial import run.
Thanks; anything more you need from me file-wise I can get you.
--jdavidi
Good morning!
The import to a blank repository was sucessful for me as well. So that means our main repository has a problem though? Hmm...any type of diagnostics we could run other than debug mode (this hadn't revealed anything extra in the log when I first encountered the problem).
Thanks,
--jdavidi
The import to a blank repository was sucessful for me as well. So that means our main repository has a problem though? Hmm...any type of diagnostics we could run other than debug mode (this hadn't revealed anything extra in the log when I first encountered the problem).
Thanks,
--jdavidi
Since the import worked on an empty repository, there's nothing wrong there. I was waiting for you to respond about my question about the VSS side of things? Do you still want to investigate that?
Getting back to the import, there are three options here:
A) Eliminate any networking issues - Have you tried the import on the Vault server itself using "localhost" for the server's host name?
B) Client side cache issue - This is not likely the problem, but we could try:
1) Closing all Vault clients , admin tools, IDEs, etc.
2) Deleting the client side cache ( delete CacheMember_Repository and CacheMember_LastStructureGetTime from your Vault client's cache location ).
3) Retry the import.
C) Send the database t SourceGear so it can be inspected at a deeper level to see why the import may be failing against one specific repository.
Getting back to the import, there are three options here:
A) Eliminate any networking issues - Have you tried the import on the Vault server itself using "localhost" for the server's host name?
B) Client side cache issue - This is not likely the problem, but we could try:
1) Closing all Vault clients , admin tools, IDEs, etc.
2) Deleting the client side cache ( delete CacheMember_Repository and CacheMember_LastStructureGetTime from your Vault client's cache location ).
3) Retry the import.
C) Send the database t SourceGear so it can be inspected at a deeper level to see why the import may be failing against one specific repository.
Jeff Clausius
SourceGear
SourceGear