Import-FIMConfig Exception RRS feed

  • Question

  • Hi Folks,

    I am trying to import a single Workflow from Dev to UAT env. Below is the code snippet I used to export the WF into a xml file.

    $WorkflowsInFIM = Export-FIMConfig -Uri $URI –OnlyBaseResources -CustomConfig "/WorkflowDefinition[DisplayName='ABC']"     

    $WorkflowsInFIM | ConvertFrom-FIMResource -file E:\WorkSpaces\MyFolder\Sample.xml

    Now when I try importing it, using the CommitChanges.ps1(From the TechNet blog), I get the below exception

    Import-FIMConfig : The input object cannot be bound to any parameters for the command either because the 
    command does not take pipeline input or the input and its properties do not match any of the parameters that 
    take pipeline input.
    At line:15 char:29
    + $undoneImports = $imports | Import-FIMConfig
    +                             ~~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidArgument: (Microsoft.Resou...el.ExportObject:PSObject) [Import-FIMConfig], 
        + FullyQualifiedErrorId : InputObjectNotBound,Microsoft.ResourceManagement.Automation.ImportConfig

    Can someone guide me here. Also is this the correct way to export and import a single Workflow from one env. to another or is there any other approach. Please guide.

    Thanks in Advance.


    Wednesday, July 29, 2015 9:46 AM

All replies

  • For a single workflow, you can simply do this.

    1. Create a dummy workflow in Target Env.

    2. Copy the XOML from Souce Env. Export as xml file

    3. Replace XOML in Target Env.

    Nosh Mernacaj, Identity Management Specialist

    Wednesday, July 29, 2015 3:03 PM