Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

Dev Space

Customize and extend the power of Alteryx with SDKs, APIs, custom tools, and more.

Publishing workflows with encrypted password to the Gallery

pavloko
7 - Meteor

When I try to save a workflow to the Gallery, I get an error: 

 

 

RuntimeError: InternalError: DecryptPassword - buffer too small.

 

this error happens in Python SDK's decrypt_password and on the client I use the following to encrypt:

 

.postJsEventWithCallback('Encrypt', { text: this.state.apiToken, encryptionMode: 'machine' }, function (encryptedToken) {

 

I've noticed that Saleforce Input Tool uses the same method of encryption, but I don't get the same error when publishing workflows using it. 

How can I achieve the same with my tool?

 

25 REPLIES 25
BlytheE
Alteryx Alumni (Retired)

Hi @pavloko, this looks like it could be a defect. Do you get this error when you run the tool in Designer or is it isolated to Gallery runs? Can you share the source code for your tool with  me?

zhuyyu
8 - Asteroid

I have similar issue, it's the salesforce  input tool. The workflow I created stored with my salesforce password, when I share it using "Simplicity", a software for sharing within the company, when run on the server, shows these error. I have some old salesforce input tool, those tool works. The new version has this issue. 

BlytheE
Alteryx Alumni (Retired)

Because of the encryption methods we employed between the HTML GUI SDK and the Python SDK, tools built with those SDKs (like the latest version of Salesforce Input) cannot be scheduled or uploaded to the Gallery when there are encrypted fields present. The same limitations apply to other sharing software where the server is remote. We are working on alternatives that will allow users to do this, but I don't have a time frame for when it will happen.

vutmo
6 - Meteoroid

Hi @BlytheE 

 

I was just trying to publish a workflow with an Salesforce Input tool to a Gallery and got the same error (please see below). Has this issue been resolved or do you have a workaround?

 

InternalError: DecryptPassword - buffer too small

 

Thanks.

 

Vu.

BlytheE
Alteryx Alumni (Retired)

Hi @vutmo - unfortunately, I do not have any time frame for when this will be resolved. A potential workaround is to configure the tool on the Server and then upload it from the Server, however, that may not be feasible and depending on your deployment, it still might not work.

simon
11 - Bolide

Hi @BlytheE  - can you expand on your reply? 

We are getting this error with the salesforce input tool running from gallery:

 

Traceback (most recent call last): File "main.py", line 73, in pi_init RuntimeError: DecryptPassword only works with User and Machine encrypted passwords. (Tool Id: 36)

 

Does the DEPRECATED salesforce input tool work correctly?

BlytheE
Alteryx Alumni (Retired)

This issue only applies to tools with an HTML GUI SDK frontend and Python SDK backend (like v4 of Salesforce Input). The deprecated versions do work on the Gallery and can be scheduled because they don't have a Python backend. 

vutmo
6 - Meteoroid

Hi @BlytheE 

 

The deprecated Salesforce tool seemed to work on Gallery. What are the caveats of using the deprecated versions vs. the v4 Salesforce tool?

 

Thank you!

 

 

BlytheE
Alteryx Alumni (Retired)

Hello @vutmo - we added the ability to pull reports in v4 and you can query for deleted records from tables. Other than that, the functionality remains the same.