Fusion Manage Validation Script

Fusion Manage Validation Script

matteo_pallaroni
Advocate Advocate
311 Views
3 Replies
Message 1 of 4

Fusion Manage Validation Script

matteo_pallaroni
Advocate
Advocate

Hi, today is not a good day for scripting:

Context: Validation Script

var Messages = [];

....

Messages.push("Error, T2 End Date is Null");

...

returnValue(Messages);

 

Execution result: ERROR

From Log: [TASK CLOSING CHECK (line 48, col 0)] org.mozilla.javascript.EcmaError: TypeError: Cannot call method "push" of undefined (TASK CLOSING CHECK#48)

 

it's a copycat of other Autodesk validation script messages...so what?

please help

0 Likes
312 Views
3 Replies
Replies (3)
Message 2 of 4

maciej_stawowski
Enthusiast
Enthusiast

The problem is probably in global / local scope of variable or overwriting Messages. Can you upload whole script? 

0 Likes
Message 3 of 4

bhavani_sankuratri
Autodesk
Autodesk

Hi @matteo_pallaroni ,

 

Hope you are doing good! just checking in. Were you able to share the full script requested by maciej_stawowski? If you are still facing the error, please post the script. We look forward to hearing from you.

Bhavani Sankuratri | Community Manager
0 Likes
Message 4 of 4

matteo_pallaroni
Advocate
Advocate

hi, too much time passed by; i re-wrote the script and managed to do it differently.

thx

0 Likes