cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3934
Views
15
Helpful
23
Replies

UCCX Subflow issue with Write document step

Scott Brien
Level 1
Level 1

Hi,


We are currently having an issue with our subflow script which alters an XML file.


This Script has been functional in the past however it was when we were running UCCX 7.0 on windows and we used the windows paths to reference the XML document.


We have migrated to the Document repository and have worked through most errors like replacing the create file document step with the Create XML Document step however we receive the following error on the Write Document step:

AccessControlException:access denies (java.io.FilePermission DOC[/XMLs/business_fwd.xml] read)

I have attached the Script and XML documents.

Any help would be greatly appreciated.
Scott

23 Replies 23

Error "expecting string"

Sorry, you only need the "business_fwd.xml"

You only invoke DOC[foobar] when you want to pull the file. Saving it just requires the name.

Tanner Ezell www.ctilogic.com

Removed the DOC and only had "business_fwd.xml".. still no joy unfortunately, we can now debug the script again though, and we see the upload step hitting unsuccesful...

Dumb question, do both the Get User and Authenticate User steps succeed?

If so, you may need to gather the MIVR logs and determine exactly why it's

failing.

Tanner Ezell www.ctilogic.com

both get user and auth user steps succeed

after looking through look MIVR logs we have found the following:

%MIVR-STEPS_DOCUMENT-7-DOCUMENT_UPLOAD_EXCEPTION:Executing: Task id=25000002875,Step=java.lang.SecurityException: controlled operation requires authenticated user.0290082334 is not authenticated user.

6874812: Sep 30 16:13:13.001 EST %MIVR-STEPS_DOCUMENT-7-EXCEPTION:java.lang.SecurityException: controlled operation requires authenticated user.0290082334 is not authenticated user.

6874813: Sep 30 16:13:13.001

%MIVR-STEPS_DOCUMENT-7-DOCUMENT_UPLOAD_EXCEPTION:Executing: Task id=25000002875,Step=java.lang.SecurityException: controlled operation requires authenticated user.0290082334 is not authenticated user.

6874812: Sep 30 16:13:13.001 EST %MIVR-STEPS_DOCUMENT-7-EXCEPTION:java.lang.SecurityException: controlled operation requires authenticated user.0290082334 is not authenticated user.

6874813: Sep 30 16:13:13.001

However 0290082334 is an appadmin administrator/supervisor/agent


Any ideas?

Scott

Hi Scott

You have  a get user step, which is good..

Then an auth user, which references the userid again - this should reference the UserAuth object that you just obtained with the get user step. If you just reference the userid and PIN, you are basically 'testing' the auth, not authenticating your user object.. see?

You are already correctly using UserAuth for the actual upload step, but because the Auth User step hasn't done the business on UserAuth, it fails..

Regards

Aaron

Aaron Please remember to rate helpful posts to identify useful responses, and mark 'Answered' if appropriate!

Hi Aaron,


Thank you for the information there very helpful as we have had no need for the Auth or user steps for subflows etc in the past with the IPCX 7.x


Scott

Hi,


We have resolved this issue, the error being that we were authenticating a user rather than the users extension, once this was changed fieles started uploading.Thank you for your help