Import-FIMConfig Exception

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], 
    ParameterBindingException
    + 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.

July 29th, 2015 5:49am

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.

Free Windows Admin Tool Kit Click here and download it now
July 29th, 2015 11:06am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics