Problem with the FIM PowerShell Workflow Activity

Hi.

i'm trying to use the FIM PowerShell Workflow Activity from CodePlex, but cannot get the Transcript-command working

Start-Transcript -Path C:\FIM\PowerShell\log.txt -Append
Stop-Transcript

This gives a PostProsessing error

EXCEPTION DATA\r\n\r\nMESSAGE: Exception of type 'Microsoft.ResourceManagement.Workflow.WorkflowExtensionException' was thrown.\r\n\r\n**METHOD:System.Workflow.ComponentModel.ActivityExecutionStatus Execute(System.Workflow.ComponentModel.ActivityExecutionContext)\r\n\r\n**METHOD:System.Workflow.ComponentModel.ActivityExecutionStatus Execute(T, System.Workflow.ComponentModel.ActivityExecutionContext)\r\n\r\n**METHOD:System.Workflow.ComponentModel.ActivityExecutionStatus Execute(System.Workflow.ComponentModel.Activity, System.Workflow.ComponentModel.ActivityExecutionContext)\r\n\r\n**METHOD:Boolean Run(System.Workflow.ComponentModel.IWorkflowCoreRuntime)\r\n\r\n**METHOD:Void Run()\r\n\r\n
------------------------------------------------------------

Any ideas why? Other scripts works perfectly.



August 13th, 2013 6:12am

Check the event log, there should be more detail as to what failed. Did you make sure the user running the workflow has the ability to browse to that directory and read/write the file ... also not so sure this would work with multiple workflows running at the same time, unless the FIM WF engine is synchronous and I didn't know...
Free Windows Admin Tool Kit Click here and download it now
August 13th, 2013 5:27pm

Check the event log, there should be more detail as to what failed.


That same error is in the evet log, but nothing more.

Did you make sure the user running the workflow has the ability to browse to that directory and read/write the file ... also not so sure this would work with multiple workflows running at the same time, unless the FIM WF engine is synchronous and I didn't know...

This works, so it's not permission issue

"ABC" | Out-File  C:\FIM\PowerShell\log.txt -Append


August 14th, 2013 6:49am

try {
Start-Transcript -Path C:\FIM\PowerShell\log.txt -Append
Stop-Transcript
} catch {
 $_ | Format-List -Property * | Out-String | Out-File C:\FIM\PowerShell\error.txt -Append
}

Can you try this in your workflow and see if it generates the error info in the error file ...

Free Windows Admin Tool Kit Click here and download it now
August 14th, 2013 8:12am

It seems that it isn't supported this way

Start-Transcript : This host does not support transcription.
At C:\FIM\PowerShell\Test.ps1:2 char:17
+ Start-Transcript <<<<  -Path C:\FIM\PowerShell\log.txt -Append
    + CategoryInfo          : NotImplemented: (:) [Start-Transcript], PSNotSuppo
rtedException
    + FullyQualifiedErrorId : NotSupported,Microsoft.PowerShell.Commands.StartTr
anscriptCommand

August 14th, 2013 9:35am

It seems that it isn't supported this way

Start-Transcript : This host does not support transcription.
At C:\FIM\PowerShell\Test.ps1:2 char:17
+ Start-Transcript <<<<  -Path C:\FIM\PowerShell\log.txt -Append
    + CategoryInfo          : NotImplemented: (:) [Start-Transcript], PSNotSuppo
rtedException
    + FullyQualifiedErrorId : NotSupported,Microsoft.PowerShell.Commands.StartTr
anscriptCommand


Correct. Transcription is a host feature which I expect this activity doesn't support.
Free Windows Admin Tool Kit Click here and download it now
August 14th, 2013 11:51am

Thanks Adam and Brian
August 15th, 2013 1:16am

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

Other recent topics Other recent topics