This project is read-only.


Get-ExportAttributeFlow Cannot add a member with name ScriptContext


Current Release introduced a bug while fixing another.
in the
elseif ($exportFlow.'Sync-rule-mapping.'mapping-type'. -eq 'constant')

The following line was modified:
$rule | Add-Member -MemberType NoteProperty -Name 'SyncRuleValue' -Value ( ...
$rule | Add-Member -MemberType NoteProperty -Name 'ScriptContext' -Value ( ...
Without deleting the line
$rule | Add-Member -MemberType NoteProperty -Name 'ScriptContext' -Value $null
Which creates an error when you have a constant flow in an Out Bound Sync Rule:
Add-Member : Cannot add a member with the name "ScriptContext" because a member with that name already exists. To overwrite the member anyway, add the Force
parameter to your command.
At C:\Program Files\WindowsPowerShell\Modules\Get-FImSyncConfiguration.psm1:405 char:37
  • $rule | Add-Member -MemberType NoteProperty -Name 'S ...
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

file attachments


bdesmondMVP wrote Dec 31, 2016 at 4:49 PM

Fixed, Changeset 32557 by David Lundell

wrote Dec 31, 2016 at 6:13 PM

wrote Dec 31, 2016 at 6:13 PM

wrote Dec 9, 2017 at 8:26 AM