# SVN Repository Throws Error

**URL:** https://www.finalbuilder.com/forums/t/svn-repository-throws-error/5931
**Category:** Bugs
**Created:** [September 25, 2014, 11:42am UTC](https://www.finalbuilder.com/forums/t/svn-repository-throws-error/5931 "2014-09-25T11:42:00Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![jasonahc](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/j/6a8cbe/32.png) [@jasonahc](https://www.finalbuilder.com/forums/u/jasonahc)
#### Post date: [September 25, 2014, 11:42am UTC](https://www.finalbuilder.com/forums/t/svn-repository-throws-error/5931/1 "2014-09-25T11:42:00Z")

</div>

We are experiencing an issue with our SVN repos currently. Recently upgraded to v1.5.0.295.  
  
The following error is being thrown and all the projects that use this repo are throwing a build error or pausing as the repo has been in a constant error state.  
  
I have tried resetting the repo in the UI, but this has not helped.  
  
I have included the full error output below.  
  
  
  
  
  
Repository   
  
Cannot get changes for repository StaffPlan-SVN: Exception: ArgumentOutOfRangeException   
Message: startIndex cannot be larger than length of string.   
Parameter name: startIndex   
Stack Trace: at System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy)   
at Continua.Modules.Builds.Repositories.Subversion.GetNewChangesetsForRepositoryFolder(String workingFolder, Int32& highestRev, Boolean isDefaultBranch, Boolean isTag, String repoFolder)   
at Continua.Modules.Builds.Repositories.SubversionRepositoryPlugIn.GetNewChangesets(IRepositoryExecutionContext context, IRepositoryCache cache)   
at Continua.Modules.Builds.Repositories.Repository.GetNewChangesets(RepositoryCache cache, IRepositoryExecutionContext context)   
at Continua.Modules.Builds.Repositories.Repository.GetRepositoryChanges(RepositoryCache cache, IRepositoryExecutionContext context)   
  
  
  
This event has been reported 685 times.

---

<div class="post-metadata">

### Author: ![jasonahc](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/j/6a8cbe/32.png) [@jasonahc](https://www.finalbuilder.com/forums/u/jasonahc)
#### Post date: [September 25, 2014, 12:30pm UTC](https://www.finalbuilder.com/forums/t/svn-repository-throws-error/5931/2 "2014-09-25T12:30:33Z")

</div>

Have avoided the error by deleting the repository and using another that points to the same SVN URL (we had a few with different exclude patterns). However now I am seeing some odd behaviour with the ChangeSets. The changes found seems to be almost random, with some finding ‘latest’ changes as commits from weeks ago and projects building old code.   
  
 Am used to sometimes very old commits being listed in the changesets seemingly randomly, but never that the code that is compiled is not the latest.

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [September 25, 2014, 2:53am UTC](https://www.finalbuilder.com/forums/t/svn-repository-throws-error/5931/3 "2014-09-25T02:53:12Z")

</div>

Hi Jason   
  
 Can you enable debug logging (see here - [http://wiki.finalbuilder.com/display/continua/Debug+Logging](http://wiki.finalbuilder.com/display/continua/Debug+Logging) ) and then reset the repository and once you see the odd behavior send a the debug log to [support@finalbuilder.com](mailto:support@finalbuilder.com) - that will help us narrow down the cause.

---

<div class="post-metadata">

### Author: ![jasonahc](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/j/6a8cbe/32.png) [@jasonahc](https://www.finalbuilder.com/forums/u/jasonahc)
#### Post date: [September 25, 2014, 6:26am UTC](https://www.finalbuilder.com/forums/t/svn-repository-throws-error/5931/4 "2014-09-25T06:26:47Z")

</div>

It was some spurious lock… have run a clean-up on all the repos and now it seems to work ok. Thanks for the logging tip, helped a lot .

---

<div class="post-metadata">

### Author: ![peter.toms](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/p/df788c/32.png) [@peter.toms](https://www.finalbuilder.com/forums/u/peter.toms)
#### Post date: [September 26, 2014, 12:53pm UTC](https://www.finalbuilder.com/forums/t/svn-repository-throws-error/5931/5 "2014-09-26T12:53:14Z")

</div>

Hi Jason, that’s great to hear that everything is up and running again for you Thanks again.

---

<div class="post-metadata">

### Author: ![jasonahc](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/j/6a8cbe/32.png) [@jasonahc](https://www.finalbuilder.com/forums/u/jasonahc)
#### Post date: [September 26, 2014, 10:37am UTC](https://www.finalbuilder.com/forums/t/svn-repository-throws-error/5931/6 "2014-09-26T10:37:11Z")

</div>

Sure thing Peter.

---

<div class="post-metadata">

### Author: ![peter.toms](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/p/df788c/32.png) [@peter.toms](https://www.finalbuilder.com/forums/u/peter.toms)
#### Post date: [September 30, 2014, 9:25am UTC](https://www.finalbuilder.com/forums/t/svn-repository-throws-error/5931/7 "2014-09-30T09:25:49Z")

</div>

Thanks very much Jason, we appreciate it.
