0 votes

Hello,

I'm trying to run a script on uploading email and convert it to task using auto mail uploader (though "script" field in configuration of mail uploader), but i'm getting the following error when i run the service like in the screenshot below.

enter image description here

The script is like the following, simply link a user to created task:

    function BeforeCommit(EditHandle, Inserted){
    LinkUserToAction(EditHandle, Inserted);
}

function LinkUserToAction(EditHandle, Inserted){
    var USER = 4;
    Database.SetUsers(EditHandle, USER, false);
}

Please advise.

Thank you in advance for your help.

Best Regards.

asked in WorkFlow / Serverscript by (559 points)

3 Answers

0 votes

Access violations typically occur when you are mixing executables from different versions of Efficy. Are you sure the executable matches the targeted Efficy.dll and Application Server version?

answered by (6.8k points)
Hello Kristof,

yes they are, i've checked and both are 10.2.8930 release. it's new installation on client's new server.

Thank you.

Best Regards.
0 votes

Try removing the workflow to be sure if it's related or not.
I suspect the SetUsers method, it should have 4 arguments instead of 3

answered by (6.8k points)
Hello Kristof,

I've tried that, i removed commented the call for the function and even cleared the whole file from any script but same problem, then i removed the whole file, then the process runs normally. so when i define a js file in script field i got the error.

the function indeed has 4, but the fourth one is optional (explode groups)

Thank you.

Best Regards.
Double check your SYS_WORKFLOW line. Language OK, no special text encoding... Try to isolate at what point the workflow causes the issue.

Can you replicate this locally?
0 votes

Hello,

The issue is solved by disabling workflow from settings tab.

enter image description here

Thank you.

Best Regards.

answered by (559 points)
1,165 questions
1,423 answers
1,713 comments
325 users