i use the smlets to automate tasks in orchestrator.
I have the smlets installed and succesfully working for a few weeks.
no suddenly when i do the following:
get-scsmobjecttemplate -displayname "templatename"
i receive the error:
Get-SCSMObjectTemplate : Value cannot be null.
Parameter name: input
At line:7 char:18
+ $FoundTemplate = Get-SCSMObjectTemplate -DisplayName “templatename“
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Get-SCSMObjectTemplate], ArgumentNullException
+ FullyQualifiedErrorId : System.ArgumentNullException,SMLets.GetSCSMObjectTemplateCommand
the Get-SCSMObjectTemplate command without parameters returns the complete template list correctly without errors.
any ideas?
Comments: ** Comment from web user: LouisJenema **
I have the smlets installed and succesfully working for a few weeks.
no suddenly when i do the following:
get-scsmobjecttemplate -displayname "templatename"
i receive the error:
Get-SCSMObjectTemplate : Value cannot be null.
Parameter name: input
At line:7 char:18
+ $FoundTemplate = Get-SCSMObjectTemplate -DisplayName “templatename“
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Get-SCSMObjectTemplate], ArgumentNullException
+ FullyQualifiedErrorId : System.ArgumentNullException,SMLets.GetSCSMObjectTemplateCommand
the Get-SCSMObjectTemplate command without parameters returns the complete template list correctly without errors.
any ideas?
Comments: ** Comment from web user: LouisJenema **
thanks for the reply,
correct, with the -Id its works fine. (and faster).
weird thing is that on another environment it still works with the first opion. (same version of OS, SCSM and SMlets).