Probable error in function evaluation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Probable error in function evaluation
I am building an assembly in Creo 2.0 and got an error shown below. This is causing a "yellow light" regeneration as well. Any ideas?
This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.
Solved! Go to Solution.
- Labels:
-
General
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
I have not tested this but that is the way I am interpretting several previous case resolutions. They seem to say that if you try to extract a certain amount of characters from a string that has a total number of characters less than that number, you will see this message.
This is copied from a previous case:
"IF EXTRACT(DESCRIPTION,70,1))==""
In the above line, without checking if the String parameter contains 70 characters or not, you have used 70 in EXTRACT function.
If the string_length of the parameter DESCRIPTION is not greater than 70, Creo Parametric stops relations execution with error message "warning: Probable error in function evaluation".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Floyd, are you running the version manager extension?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Antonius,
See below. Not sure if I am or not.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
I guess this could be a PDM link thing. I have never been warned of a -POSSIBLE- function error. It either IS or it ISN'T! As a matter of fact, I've never been warned of ANY function error.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Floyd,
Were you able to locate the source of the problem?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Floyd,
Possibly this is due to relations in part 10812197. Check and verify the relations.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
This message is given when the EXTRACT function is used in Relations when the parameter length is greater as the parameter name to be extracted.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Please confirm - is this error generated when trying to Extract characters beyond what the target string contains?
Extract("12345",5,2) creates an error message because it can't extract the character beyond the fifth one?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
I have not tested this but that is the way I am interpretting several previous case resolutions. They seem to say that if you try to extract a certain amount of characters from a string that has a total number of characters less than that number, you will see this message.
This is copied from a previous case:
"IF EXTRACT(DESCRIPTION,70,1))==""
In the above line, without checking if the String parameter contains 70 characters or not, you have used 70 in EXTRACT function.
If the string_length of the parameter DESCRIPTION is not greater than 70, Creo Parametric stops relations execution with error message "warning: Probable error in function evaluation".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Thanks. That's funny. Most languages produce a 'subscript of range' message and could tell what the string and subscript was so the user had an idea where to look for the problem, like:
Relation evaluation error: extracting character 70 in DESCRIPTION with string length 45; model name PLATE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
You're just spoiled, David
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Sorry for the delay, I was on vacation last week. Thanks Clint for the help.
