Select to view content in your preferred language

Workflow Manager, encrypted user-defined settings not working as input in custom web tool

69
0
Thursday
dhuartf
New Contributor

Hi there,

 

I created a python custom web tool and I'm using  gis = GIS(portal, username, password, verify_cert = False) as authenticator, because I use api for python functions.

I set as input of my web tool, username and password, therefore, I need to define an encrypted user-defined setting to store my password.

Nevertheless, when I try to use it in my custom web tool (setting('Password')), I get this error : 

GP job failed. Errors: Error in main process: A general error occurred: 'error' object is not subscriptable Error in main process: , import_Survey123.py, line 355 Failed to execute (PublishSurvey123). Failed.

Is this a well know bug ? How use encrypted settings ?

0 Kudos
0 Replies