Sitecore 7: Troubleshooting: startIndex cannot be larger than length of string.

Problem:

I stepped i to this error while creating a Package in sitecore. I selected only a big subtree of Database items and no files.

startIndex cannot be larger than length of string.
Parameter name: startIndex

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ArgumentOutOfRangeException: startIndex cannot be larger than length of string.
Parameter name: startIndex

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[ArgumentOutOfRangeException: startIndex cannot be larger than length of string.
Parameter name: startIndex]

WORK AROUND:

If I choose a tree with many subitems so may the start index gets too large.  My solution was to choose smaller tree parts. Anyway a nicer message should appear in Sitecore 6.6 update 6 version.

Feedback Sitecore Support:

Hello,
I’m still unable to reproduce the issue at my side even with large database.
So it looks like something specific to your solution.
I suggest you to divide your data into several packages.
If you require deeper investigation, please upload your entire master database at our pubic FTP.

Note:

Always use firefox browser while installing or creating items from "package" or "serialization" because Internet Explorer gets time-out issue while installing a big package. 






Comments

  1. This really is more like a Workaround than a solution, because you're not solving anything. You still can't select a big node.

    ReplyDelete
  2. Thanks a lot for this Comment. I changed it to Workaround! Till now I have no solution. MAybe we should raise a ticket on Sitecore Support!

    ReplyDelete

Post a Comment

a new comment