Hi,
Unfortunately this error occured at the production environment so not able to give you more info
and also it is occuring sometimes.
Sometimes it is executed successfully.
Below code snippet where it is getting exception:
Command input is :Get-Ncsnapmirror
>>public Collection<PSObject> RunCommand(Command command, IEnumerable input = null)
>>{
>>
>>Collection<PSObject> output = null;
>>try
>>{
>>if (command == null)
>>{
/* GLOBALYZER_EXTERNALIZED_TEXT:Input command object is null */
>>throw new ArgumentNullException(SDResources.PSHELPER_INPUTCOMMA_213);
>>}
/>>/ Create new pipeline
>>Pipeline pipeline = NewPipeline(command);
>>// Invoke the pipeline (execute commands) and return the results to caller.
>>output = pipeline.Invoke(input); *******//Exception occured here************
>>}
>>catch (Exception ex)
>>{
>>/* GLOBALYZER_EXTERNALIZED_TEXT:Failed to run a command {0} */
>>string formattedCommandString = string.Format(SDResources.PSHELPER_FAILEDTORU_216, command.ToString());
>>NsfLogger.LogCriticalError(formattedCommandString, ex);
>>if (ex.Message.ToLower().Contains("specified vserver not found"))
>>{
>>string controllerName = command.Parameters.Where(p => p.Name.Equals("Controller")).Select(p => p.Value).First().ToString();
>>output = StorageConnectionFaultPublisher.OnConnectionFault(controllerName, command);
>>}
>>else
>>{
>>throw new PSHelperException(formattedCommandString, ex);
>>}
>>}