Difference between revisions of "Error Messages/42350"

 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
= Error Text =
+
[[Category: Error messages]]
  
:In the call to Function [[ParsedExprParameter]](..), the value ''Revenue'' passed to the second parameter, «param», was not a number or textual name of a parameter.
+
== Error text ==
  
= Cause =
+
<pre style="background:white; border:white; margin-left: 1em; font-style:italic">
 +
In the call to Function ParsedExprParameters(), the value 'Revenue' passed to the second parameter, «param»,
 +
was not a number or textual name of a parameter.
 +
</pre>
  
You will see this error when the second parameter to [[ParsedExprParameters]] is something other than a number or text value (i.e., a [[handle]], [[Using References|reference]], the value [[Null]], etc.).
+
== Cause ==
  
You may also see this if the second parameter to [[ParsedExprParameters]](expr,param) is a text value, but does not coincide with the name of a parameter to the function called in «expr».
+
You will see this error when the second parameter to [[Parsed_Expressions#ParsedExprParameters.28expr.29|ParsedExprParameters]] is something other than a number or text value (i.e., a [[handle]], [[Using References|reference]], the value [[Null]], etc.).
  
Note that use of the second parameter to [[ParsedExprParameters]] is not officially exposed.  It is expected that you will use [[ParsedExprParameters]] with only one parameter (the parsed expression).
+
You may also see this if the second parameter to [[Parsed_Expressions#ParsedExprParameters.28expr.29|ParsedExprParameters]](expr,param) is a text value, but does not coincide with the name of a parameter to the function called in «expr».
  
= Remedies =
+
Note that use of the second parameter to [[Parsed_Expressions#ParsedExprParameters.28expr.29|ParsedExprParameters]] is not officially exposed.  It is expected that you will use [[Parsed_Expressions#ParsedExprParameters.28expr.29|ParsedExprParameters]] with only one parameter (the parsed expression).
  
First, figure out what function is being called in «expr» (the first parameter you passed to [[ParsedExprParameter]]).  To do that, you can use the function [[ParsedExprFunction]].  Once you've identified which function is being called, then look at the Parameters attribute for that function to see the names of the parameters.  Make sure that the text value you pass to [[ParsedExprParameters]] is on of those listed.  Alternatively, use a number to identify the parameter by position.
+
== Remedies ==
  
We actually expect you to use [[ParseExprParameters]] with only a single parameterSo you can instead call it with one parameter, avoiding this error, and then subscript the result as desired to obtain the parsed parameter of interest.
+
First, figure out what function is being called in «expr» (the first parameter you passed to [[Parsed_Expressions#ParsedExprParameters.28expr.29|ParsedExprParameters]]).  To do that, you can use the function [[Parsed_Expressions#ParsedExprFunction.28expr.29|ParsedExprFunction]].  Once you've identified which function is being called, then look at the Parameters attribute for that function to see the names of the parameters.  Make sure that the text value you pass to [[Parsed_Expressions#ParsedExprParameters.28expr.29|ParsedExprParameters]] is on of those listed.  Alternatively, use a number to identify the parameter by position.
  
= See Also =
+
We actually expect you to use [[Parsed_Expressions#ParsedExprParameters.28expr.29|ParsedExprParameters]] with only a single parameter.  So you can instead call it with one parameter, avoiding this error, and then [[subscript]] the result as desired to obtain the parsed parameter of interest.
  
* [[ParsedExprParameters]]
+
== See Also ==
* [[ParsedExprFunction]]
+
* [[Function calls and parameters]]
 +
* [[Function parameter qualifiers]]
 +
* [[Parsed_Expressions#ParsedExprParameters.28expr.29|ParsedExprParameters]]
 +
* [[Parsed_Expressions#ParsedExprFunction.28expr.29|ParsedExprFunction]]
 +
* [[Expression Syntax]]
 
* [[TypeOf]]
 
* [[TypeOf]]
 +
* [[Subscript]]

Latest revision as of 19:17, 20 April 2016


Error text

In the call to Function ParsedExprParameters(), the value 'Revenue' passed to the second parameter, «param», 
was not a number or textual name of a parameter.

Cause

You will see this error when the second parameter to ParsedExprParameters is something other than a number or text value (i.e., a handle, reference, the value Null, etc.).

You may also see this if the second parameter to ParsedExprParameters(expr,param) is a text value, but does not coincide with the name of a parameter to the function called in «expr».

Note that use of the second parameter to ParsedExprParameters is not officially exposed. It is expected that you will use ParsedExprParameters with only one parameter (the parsed expression).

Remedies

First, figure out what function is being called in «expr» (the first parameter you passed to ParsedExprParameters). To do that, you can use the function ParsedExprFunction. Once you've identified which function is being called, then look at the Parameters attribute for that function to see the names of the parameters. Make sure that the text value you pass to ParsedExprParameters is on of those listed. Alternatively, use a number to identify the parameter by position.

We actually expect you to use ParsedExprParameters with only a single parameter. So you can instead call it with one parameter, avoiding this error, and then subscript the result as desired to obtain the parsed parameter of interest.

See Also

Comments


You are not allowed to post comments.