1

Resolved

Get-ExportAttributeFlow Cannot add a member with name ScriptContext

description

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

The following line was modified:
$rule | Add-Member -MemberType NoteProperty -Name 'SyncRuleValue' -Value ( ...
To
$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

comments

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