“Index was out of range. Must be non-negative and less than the size of the collection” error after file copy step

  • 7920464
  • 09-Jan-2006
  • 27-Apr-2012

Environment

PlateSpin Migrate
PlateSpin Protect

Situation

This article discusses the error of “Index was out of range. Must be non-negative and less than the size of the collection ” error after the file copy step.

This error will occur if the source server boot.ini contains an entry from a previous conversion attempt and the boot.ini was not resorted to its original state (most likely if the source server failed to load the Take Control OS).

 

Resolution

To resolve the issue please ensure that the boot.ini on the source server does not contain any PlateSpin entries from previous conversions and try the conversion again.

When PowerConvert modify the source server boot.ini it creates a backup of the original called boot.ini.platespin.take.control.bak, to restore the old boot.ini (if boot.ini.platespin.take.control.bak exists) rename the current boot.ini (with the PlateSpin entries to boot.old) and boot.ini.platespin.take.control.bak to boot.ini (before running another conversion confirm that the backed-up boot.ini is clean as well).

Example:

The following NT4 boot.ini will cause a conversion job to fail with “Index was out of range. Must be non-negative and less than the size of the collection”:

[boot loader]
default=C:\PSBOOT.DAT
timeout=10
[operating systems]
C:\PSBOOT.DAT="PlateSpin Boot Image"
multi(0)disk(0)rdisk(0)partition(1)\WINNT="Windows NT Server Version 4.00 [VGA mode]" /basevideo /sos

The boot.ini should be fixed and the original format should be:

[boot loader]
timeout=10
default=multi(0)disk(0)rdisk(0)partition(1)\WINNT
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINNT="Windows NT Server Version 4.00 [VGA mode]" /basevideo /sos