Unable to save Options

Apr 13, 2013 at 9:44 PM
I get this error when clicking the save button in Options.

looks like the Options.xml gets corrupt?
this is happending even with a new download from this site.


Cannot index into a null array.
At C:\Users\v-igoza\Desktop\PoshPAIG_2_1_5\Options.ps1:82 char:9
  • $Optionshash['MaxRebootJobs'] = $MaxRebootJobs_txtbx.Text
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    • CategoryInfo : InvalidOperation: (:) [], RuntimeException
    • FullyQualifiedErrorId : NullArray
Cannot index into a null array.
At C:\Users\v-igoza\Desktop\PoshPAIG_2_1_5\Options.ps1:89 char:9
  • $Optionshash['MaxJobs'] = $MaxJobs_txtBx.Text
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    • CategoryInfo : InvalidOperation: (:) [], RuntimeException
    • FullyQualifiedErrorId : NullArray
Cannot index into a null array.
At C:\Users\v-igoza\Desktop\PoshPAIG_2_1_5\Options.ps1:96 char:9
  • $Optionshash['ReportPath'] = $ReportPath_txtbx.Text
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    • CategoryInfo : InvalidOperation: (:) [], RuntimeException
    • FullyQualifiedErrorId : NullArray
Cannot index into a null array.
At C:\Users\v-igoza\Desktop\PoshPAIG_2_1_5\Start-PoshPAIG.ps1:66 char:9
  • $Global:maxConcurrentJobs = $Optionshash['MaxJobs']
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    • CategoryInfo : InvalidOperation: (:) [], RuntimeException
    • FullyQualifiedErrorId : NullArray
Cannot index into a null array.
At C:\Users\v-igoza\Desktop\PoshPAIG_2_1_5\Start-PoshPAIG.ps1:67 char:9
  • $Global:MaxRebootJobs = $Optionshash['MaxRebootJobs']
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    • CategoryInfo : InvalidOperation: (:) [], RuntimeException
    • FullyQualifiedErrorId : NullArray
Cannot index into a null array.
At C:\Users\v-igoza\Desktop\PoshPAIG_2_1_5\Start-PoshPAIG.ps1:68 char:13
  • If ($Optionshash['ReportPath']) {
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~
    • CategoryInfo : InvalidOperation: (:) [], RuntimeException
    • FullyQualifiedErrorId : NullArray
Coordinator
Apr 15, 2013 at 6:18 PM
Go ahead and delete the options.xml file and a new file will be generated that you can save to.
Apr 18, 2013 at 1:58 AM
It didn't work. But it worked when I manually edited the options.xml file and changed the value.
Coordinator
Apr 19, 2013 at 2:26 AM
I've been able to duplicate this issue and resolve by deleting the options.xml file and re-starting the utility. I may look at using a registry approach to saving the options vs. an xml file solution.
Coordinator
Apr 19, 2013 at 2:28 AM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.