citrix / citrix/Powershell-Scripts

intrasite rep with mor than 1 store is not working

Open
#2 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
PowerShell
Stars
53
Forks
27
PR merge metrics
No merged PRs in 30d

Description

I tried to use the Script for an Intrasite replication. However, it is not working and will cancel with the following Output:
`Get-PvsStore : Cannot bind parameter 'StoreId'. Cannot convert value "System.Object[]" to type "System.Guid". Error: "Guid should contain 32 digits with 4 dashes `

In my case, this line returns more than one store back and this is not supported
`$IS_storeID = (Get-PvsServerStore -ServerName $IS_srcServer.Split('.')[0]).StoreID[0].ToString()`

Contributor guide

Open the contributing guide

Research direction

Start by running the Get-PvsServerStore command from the reported $IS_storeID assignment against a server with multiple stores and trace the value passed to Get-PvsStore. Review the surrounding replication script to establish which store should be selected or handled, then verify the script completes without passing an array where a single StoreId is required.

Written by the indexing model from the issue text.

Assessment

Tech stack
powershell
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.