Skip to main content
1-Visitor
July 22, 2014
Solved

Probable error in function evaluation

  • July 22, 2014
  • 4 replies
  • 5804 views

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?

Probable_Error_in_function_evaluationJPG.JPG


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.
Best answer by ClintWalton

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".

4 replies

17-Peridot
July 22, 2014

Floyd, are you running the version manager extension?

version_rev.PNG

1-Visitor
July 22, 2014

Antonius,

See below. Not sure if I am or not.

Probable_Error_in_function_evaluation_version_manager.JPG

17-Peridot
July 22, 2014

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.

Mahesh_Sharma
22-Sapphire I
July 22, 2014

Floyd,

Possibly this is due to relations in part 10812197. Check and verify the relations.

1-Visitor
July 28, 2014

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.

1-Visitor
July 28, 2014

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?

1-Visitor
July 28, 2014

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".

1-Visitor
August 4, 2014

Sorry for the delay, I was on vacation last week. Thanks Clint for the help.