ISHRemote PowerShell script stops due to a communication exception

I created the following PowerShell script in order to gather all publication information from the server using ISHRemote.

New-IshSession -WsBaseUrl https://********/ISHWS/ -IshUserName ***** -IshPassword *****
Find-IshPublicationOutput | Select-Object fishpublicationtype_logical_value,fishpublngcombination,ftitle_logical_value,IshRef,version_version_value,fishoutputformatref,fishpubstartdate,fishpubenddate | sort @{Expression="fishpublicationtype_logical_value";Descending=$false}, @{Expression="fishpublngcombination";Descending=$false}, @{Expression="IshRef";Descending=$false}, @{Expression="version_version_value";Descending=$true}, @{Expression="fishoutputformatref";Descending=$false} | Export-Csv C:\********\publications.csv -Encoding UTF8 -NoTypeInformation

Basically, this script works fine and I can get a all publication list as I expect. However, this PowerShell script often stops with the following error and I have to re-execute the script several times.

Find-IshPublicationOutput : 接続が切断されました: 接続が予期せずに閉じられました。
発生場所 C:\*****\PowerShell\publications_statistics.ps1:2 文字:1
+ Find-IshPublicationOutput | Select-Object fishpublicationtype_logical ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Find-IshPublicationOutput], CommunicationException
+ FullyQualifiedErrorId : FindIshPublicationOutput,Trisoft.ISHRemote.Cmdlets.PublicationOutput.FindIshPublicationOutput

I appreciate if anyone suggest to resolve the issue.

Thank you, in advance.

Parents Reply Children