MIM Portal Powershell Workflow Error Missing expression after unary operator '-'. RRS feed

  • Question

  • Hey Everyone, 

    i'm going crazy here i really hope someone can explain to me what is going on

    i'm executing a powershell script that checks for accountname uniqueness before writing it to FIM

    the powershell is configured to accept those parameters: 

    PARAM([string]$SQLAttributeName, [string]$AttributeValue, [string]$FIMAttributeName, [string]$FirstName, [string]$LastName)


    i then call it from the powershell workflow:

    powershell Parameters: 

    -SQLAttributeName UPN -AttributeValue [\\Target\AccountName] -FIMAttributeName AccountName -FirstName [\\Target\FirstName] -LastName [\\Target\LastName]

    when i do the change in the portal on a user the worklow is executed but i get this error :

    Powershell exited with error: Missing expression after unary operator '-'.

    i have no idea why this is happening... nothing is clear on the net

    can anyone save me ? :)


    Hitch Bardawil

    Wednesday, November 13, 2019 12:33 PM


  • Parameters are mapped like this

    Nosh Mernacaj, Identity Management Specialist

    • Edited by Nosh Mernacaj Sunday, November 17, 2019 5:11 PM
    • Marked as answer by HitchB52 Friday, November 22, 2019 9:44 AM
    Sunday, November 17, 2019 5:11 PM

All replies