Forum Discussion

Jeffrey_Silver1's avatar
Jeffrey_Silver1
Icon for Nimbostratus rankNimbostratus
Nov 15, 2016

iControl API errors with ContentPolicy methods

I am unable to retrieve ContentPolicy conditions or actions. Parameters passed are of type System.String[] and System.String[][]. Both are poplulated with data. Does anyone have an example where these work?

 

ERROR: Exception calling "get_rule_condition" with "2" argument(s): "There is an error in XML document (11, 2)." test.ps1 (193, 2): ERROR: At Line: 193 char: 2 ERROR: + $VSPolicyRulesCond = (Get- ... ERROR: + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ERROR: + CategoryInfo : NotSpecified: (:) [], MethodInvocationException ERROR: + FullyQualifiedErrorId : InvalidOperationException ERROR: ERROR: Exception calling "get_rule_action" with "2" argument(s): "There is an error in XML document (11, 2)." test.ps1 (194, 2): ERROR: At Line: 194 char: 2 ERROR: + $VSPolicyRulesAction = (Get- ... ERROR: + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ERROR: + CategoryInfo : NotSpecified: (:) [], MethodInvocationException ERROR: + FullyQualifiedErrorId : InvalidOperationException ERROR:

 

No RepliesBe the first to reply