Script Call Failed
I'm using BPM 7.6. when I try calling a script from my form, I get the following error:
"Unable to load script text, reason <0x80020101>. Procedure Script call failed. Position: 44"
-------------------------------------------
Pre Eval
%Script(VBScript,,,%MapName,"ClearValues()")
-------------------------------------------
Post Eval
%Script(VBScript,,,DA227a,ClearValues())
-----------------------------------------
The script name is 'Clearinformation'
-----------------------------------------
Function clearValues()
'empty out the values on the form
ework.ContactName = ework.Empty()
' ework.EmpSig = "THIS FIELD WILL BE AUTOMATICALLY POPULATED UPON SUBMITTAL."
' ework.Signature = "THIS FIELD WILL BE AUTOMATICALLY POPULATED UPON APPROVAL."
End Function
------------------------------------------
Am I not seeing something?
Comments
-
Unfortunately the error message may not be pointing you to the actual problem. You really need to review all scripts to ensure that there is not a syntax error somewhere else, most likely in another script or before this function in the same script. This would cause a downstream effect on your section of your script you are trying to access here.
0 -
It may be obvious, but you need to make sure that ContactName is created as a variable in your procedure. I also would try simply putting:
eWork.ContactName = ""
I know that vbscript is not case sensitive, but I always try to be consistent with cases as well: ClearValues() vs clearValues()
Let us know how it goes.
Kaan
0 -
I do recall that in version 6 and beyond you must have the Procedure name parameter for script calls. This was just one of the many things that caused a huge amount of editing to be done to move from version 5 to version 6, which is why I remember it well (and not with pleasure).
If you use the wizard to build the script call (even a dummy one), you can see what the parameter is and where it goes.
0 -
Thanks. I'm new at writing VBScripts in BPM. However, I'm trying out a simple "if" statement that goes like this:
I testing my script call by putting in something simple.
i.e. "ework.fielda = ework.Empty()" and it works. But
when I call the following function:
---
function IFTEST()
If ework.fielda = "w"
then ework.fieldb = "test"
End If
end function
---------------
I get the above mentioned error.
I checked serveral VBScript books. It looks like my script structure is correct. Is there something that I'm missing? Thanks.0 -
Try the following instead:
function IFTEST()
If ework.fielda = "w" thenework.fieldb = "test"
End If
end function0 -
WoW! Putting "then" at the end of the sentence!
My old COBOL programming days are still haunting me!
IT WORKS!
Thank you, thank you, thank you.0
Categories
- All Categories
- 123 Developer Announcements
- 54 Articles
- 156 General Questions
- 149 Thrust Services
- 57 Developer Hackathon
- 37 Thrust Studio
- 20.6K Analytics
- 4.2K AppWorks
- 9K Extended ECM
- 918 Core Messaging
- 84 Digital Asset Management
- 9.4K Documentum
- 33 eDOCS
- 190 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management
- 10 XM Fax
- Follow Categories