Error occured while importing a transaction

If you are having a problem using Vault, post a message here.

Moderator: SourceGear

Post Reply
kha
Posts: 221
Joined: Fri Sep 12, 2008 8:25 am

Error occured while importing a transaction

Post by kha » Tue Mar 10, 2009 9:05 am

I used Import/Export tool comes with the Vault Client installation. I used this tool to export folder from one repository and also used it to then imported the exported folder to different repository. I got this error:

An error occurred while importing a transaction for (TxID: 5364 on 2007-11-07 11:46 AM by <username> [12]). The import cannot continue

I tried it with other exported folders, same error happen with some (not all) of those folders while importing\. The "txID:" numbers are different for each error occurrence.

Can anyone tell me what really happened? What is the cause? I got no error at all when I exported those folders.

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Re: Error occured while importing a transaction

Post by lbauer » Tue Mar 10, 2009 3:00 pm

We'd need more information before we can determine why the import didn't work. We'd like to see the Vault import log files, plus the Vault server log for the same time period. The Vault server log is sgvault.log and is in %windir%\temp\sgvault on the server machine. If you have the export logs, those might be userful, too.

Send the logs zipped up to support at sourcegear.com, Attn: Linda. Please include a link to this forum post.
Linda Bauer
SourceGear
Technical Support Manager

kha
Posts: 221
Joined: Fri Sep 12, 2008 8:25 am

Re: Error occured while importing a transaction

Post by kha » Tue Mar 10, 2009 4:29 pm

Where can i find the import/export log?

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Re: Error occured while importing a transaction

Post by lbauer » Wed Mar 11, 2009 8:40 am

It should be in the same directory as the Export/Import tool, which is in the Vault client directory. It's called VaultFolderExportImport.txt.
Linda Bauer
SourceGear
Technical Support Manager

kha
Posts: 221
Joined: Fri Sep 12, 2008 8:25 am

Re: Error occured while importing a transaction

Post by kha » Wed Mar 11, 2009 9:53 am

I just sent the attachment with subject line: Attn: Linda

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Re: Error occured while importing a transaction

Post by lbauer » Wed Mar 11, 2009 10:38 am

I think we've determined the problem:

----3/11/2009 11:10:13 AM admin--<snip>(204.255.139.211)--SSL Disabled (1143d493-683d-4002-8d5d-1fdbb060db4b) CheckIn: $/IMP-0903111109/Brtrc.Web2005/Brtrc.Web2005.csproj returned: FailCheckInCommentRequired

You have checkin comments required for the repository that you're importing into. You'll need to turn this off during the import. This setting is in the Admin Web Client under Source Control Repositories->(Repository name)->Require Checkin Comments.
Linda Bauer
SourceGear
Technical Support Manager

kha
Posts: 221
Joined: Fri Sep 12, 2008 8:25 am

Re: Error occured while importing a transaction

Post by kha » Thu Oct 29, 2009 9:16 am

I am now having this problem again with different repository. I unchecked the "required check in comment" option of that repository, but I still get the same error. It seems like regardless whether that option is checked or unchecked, it still requires me "checkin comment".

If I don't have it check, i checked in a file to that repository without entering comment, it said "the Check In/Commit transaction failed. See the message pane for details". And the Message Pane says "a checkin comment is required".

If I have the option checked, i checked in a file to that repository without entering comment, pop up window with a shorter red X message "Check In Comments are required for this Repository".

I know it's not a problem with the repository I exported, because I could import it to a brand new repository (created for testing purposes) w/o problem.

I restarted my Vault Client every time the option changed.

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Re: Error occured while importing a transaction

Post by lbauer » Thu Oct 29, 2009 9:36 am

Are you doing another import? Is that when you're getting the error?

Have you tried restarting the Vault server and trying the import again? Use the "iisreset" command from the command line.

It's possible the setting is being cached in memory, and restarting will flush that out.

Let me know if this does not resolve the problem.
Linda Bauer
SourceGear
Technical Support Manager

kha
Posts: 221
Joined: Fri Sep 12, 2008 8:25 am

Re: Error occured while importing a transaction

Post by kha » Thu Oct 29, 2009 10:14 am

Yes, that is what I tried to do: export and import.

Is there anyway to prevent this happen again? It's so inconvenient for our developers that everytime we need to change the settings and it doesn't take the change, then we need to restart IIS.

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Re: Error occured while importing a transaction

Post by lbauer » Thu Oct 29, 2009 3:18 pm

Most changes in the Vault Admin Web Client should take affect without an IIS reset, though generally clients need to be restarted after a change. Sometimes, though, it takes a Vault server restart to flush the cache and get the new configuration info.

Did the import work after you restarted IIS? Were checkin comments no longer required?
Linda Bauer
SourceGear
Technical Support Manager

kha
Posts: 221
Joined: Fri Sep 12, 2008 8:25 am

Re: Error occured while importing a transaction

Post by kha » Thu Oct 29, 2009 3:23 pm

Did the import work after you restarted IIS? Were checkin comments no longer required?
Yes, the import work.
Checkin comments were no longer required. :D
This is little frustration because i had to move stuff around and this problem hold me off. I thought unchecking the "check in comment required" option which takes only 1-2 seconds, but actually it turned out to be more involved than that (restart IIS on Vault Server). :cry:

Honestly, I posted the question with a hope that I don't have to restart IIS :D :) :wink:

Thanks for helping :!:

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Re: Error occured while importing a transaction

Post by lbauer » Fri Oct 30, 2009 8:22 am

Sorry! :(

It *might* be possible to just restart the Vault App pool for the settings to change. You could try that next time. Checkin comment configuration changes worked on my system without a restart, so we've not sure why a restart is sometimes needed.
Linda Bauer
SourceGear
Technical Support Manager

Post Reply