Welcome to the Gallery. Please feel free to post and comment, and check out our FAQ!

Community Gallery

Post, download, and share all of your favorite tools and workflows — from Alteryx supported to user-built.
Introducing Alteryx Marketplace

Easily access verified, supported, and secure Add-Ons.

LEARN MORE
Comments
SeanAdams
17 - Castor
17 - Castor

This is super useful - it's the API toolkit that the server has been lacking all this time!

Thank you

TimManning0422
5 - Atom

I've very happy there is a supported tool for the Gallery API, so first of all, thank you Alteryx.

 

It appears to work well when testing as I successfully retrieve records both in the authentication output and the success output anchor; though I get a lot of (seemingly inconsequential) field conversion errors for different endpoints:
 /v3/collections:

TimManning0422_1-1687259997969.png

 

/v3/users:

TimManning0422_0-1687259813854.png

 

/admin/v2/users:

TimManning0422_1-1687259577265.png


/v3/workflows:

TimManning0422_2-1687260091340.png


Would you be able to look into removing these field conversion errors please for your next version? Assuming it's not only me seeing them when I use the tool.
That would be much appreciated,

Tim

JarrodT
Alteryx
Alteryx

@TimManning0422, Thank you for the feedback. You are correct that the conversion errors are inconsequential. This part of the macro is there to fill in metadata for the expected responses, and those values are in a table that is then filtered before being rolled up with a crosstab. I agree that it shouldn't have any conversion errors when run successfully. The good news is there should be a way to clean that up so these don't appear. I've added this to the list of enhancements for the next version. 

 

- Jarrod

TimManning0422
5 - Atom

@JarrodT thanks for the response.

 

The only other bit of feedback I have at the moment is the speed of the tool for applications such as event triggering.

My understanding is that this tool needed to be python based for better reliability, but having to open python, activate the environment etc takes a long time.

 

It would be great if (even just for the POST call to trigger gallery jobs) there was an option to not use python, but instead use alteryx's native tools for better performance in workflows which are running sub 1 minute.

 

Once again, thank you for building an easy to use tool for calling the API, hopefully the above is possible (though I'm confident the field conversions from my comment above are much easier to deal with!).

 

Tim

JarrodT
Alteryx
Alteryx

@TimManning0422 v1.2.2 includes the conversion error fix. Thank you for your suggestion!

csh8428
11 - Bolide

Can this be used to download workflows? If so how?

JarrodT
Alteryx
Alteryx

@csh8428, Yes. You can download workflows via the API using one of the following GET Endpoints:

/admin/v1/{appId}/package

/v1/workflows/{appId}/package

/v3/workflows/{workflowId}/package

aehrenwo
11 - Bolide

Getting this error? Is there anything I need to do to fix this? 

 

Error: Server API (1): HTTPSConnectionPool(host='myserver.mycompany.com', port=443): Max retries exceeded with url: //oauth2/token (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1123)')))

 

Error: Server API (1): Tool #684: The test "Error retrieving authorization token" failed: ExpectedNumRecords==0, NumRecords(#1)==1

 

Error: Server API (1): This machine is missing the following package: pip_system_certs

 

UPDATE

I figured out I needed to install the package as an admin but that did not seem to fix the authorization problem. Still getting this error now:

 

Error: Server API (1): Tool #684: The test "Error retrieving authorization token" failed: ExpectedNumRecords==0, NumRecords(#1)==1

 

I have Access Key and Secret I am using from the Gallery (was just granted API permission) -- do I have to be a full admin for this to work? 

jarrod
ACE Emeritus
ACE Emeritus

Hi, @aehrenwo. If you have API keys, then you should be able to at least authenticate. Some endpoints are admin only and some are accessible to both the admin and user. Are you able to test your API key and secret in the swagger documentation? Also, double check that the keys are copying correctly and you are directing to the right server url. Let me know if that doesn't work. Thanks!

StevenWhite
6 - Meteoroid

I am getting the same "Max retries exceeded with URL" error. I had just connected a few minutes before and didn't change anything. I can still authenticate in swagger. I am an admin. I tried re-opening designer. 

 
 

Max retries exceeded.png

 

 

 

 

JarrodT
Alteryx
Alteryx

Hi, @StevenWhite. This is showing a certificate verification error. This is usually caused by self-signed certificates that haven't been added to the local machine's cert store. Either your IT can add the certificate, or you can add it locally. 

 

Go through Step 6 here:

https://community.alteryx.com/t5/Alteryx-Designer-Knowledge-Base/Connection-Errors-with-Python-based... 

 

Then add the certificate to the MMC:

https://learn.microsoft.com/en-us/biztalk/adapters-and-accelerators/accelerator-swift/adding-certifi... 

 

Let me know if you have any questions or if this doesn't resolve the issue.

Thanks!

Jarrod

StevenWhite
6 - Meteoroid

@JarrodT I'm still getting the same error. We also tried adding the full certificate to C:\Program Files\Alteryx\bin\RuntimeData\Certificates where python was looking for it. I still keep getting the same error.

Razb
7 - Meteor

Hi @StevenWhite

 

Did you manage to solve this? I'm facing the same error

 

 

jasonMMedina
7 - Meteor

Installing pip_system_certs from inside the Alteryx python tool helped fix a similar error @Razb 

StevenWhite
6 - Meteoroid

I already had pip_system_certs installed. We were given a custom version of this tool that is less strict on the cert verification. And that worked for us.

dheissner
Alteryx
Alteryx

Does this installer generate a log file if there are errors installing?

 

Installing this on a 22.3 Server and the installer never returns with the "Installation Successful" message. 

 

The Server API Tool does show up with it's icon in the Developer tools section of Designer, but when you drag in onto a workflow you get the blue circle icon and message that the Server API Tool.yxmc can't be found.   

JarrodT
Alteryx
Alteryx

@dheissner, did you install the yxi for "all users" or "my account"?

"All Users" will save the tool to ProgramData\Alteryx\Tools and

"my account" will save the tool to AppData\Roaming\Alteryx\Tools

Right-click on the icon and check the path it's using when attempting to open the macro - that will be the nested folder name in the corresponding Tools directory above

 

Did you restart Designer after installing it? (restart is necessary if it's the first time you are installing that particular yxi's "version")

dheissner
Alteryx
Alteryx

@JarrodT we tried installing both ways (all users and my account). The yxmc file is out in both locations (ProgramData.. and  AppData...) under ServerAPI_1_2\Supporting_Macros.

 

It's odd that we never get the message box that the install completed?  We can restart Designer as we may not have...

Razb
7 - Meteor

@StevenWhite 

 

Is that version specific to your environment or you able to share it? 

 

Thanks,

Raz.

StevenWhite
6 - Meteoroid

@Razb This is a supported tool, so I would refer you to Alteryx support to get a version that works for your environment.

alevin
5 - Atom

@aehrenwo I am new to Alteryx Server management, specifically the Server API tool. I am getting all 3 of the same errors you did last year (see below). How did you resolve each one?

Error: Server API (1): HTTPSConnectionPool(host='myserver.mycompany.com', port=443): Max retries exceeded with url: //oauth2/token (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1123)')))

 

Error: Server API (1): Tool #684: The test "Error retrieving authorization token" failed: ExpectedNumRecords==0, NumRecords(#1)==1

 

Error: Server API (1): This machine is missing the following package: pip_system_certs

JarrodT
Alteryx
Alteryx

@alevin , You might want to try the Server API Tool version currently posted in Marketplace. It removed the pip_system_certs package requirement. If that new version doesn't solve the first error, then it may be an issue with the cert itself. In that case, refer to the links below on how to add certs manually:

 

Go through Step 6 here:

https://community.alteryx.com/t5/Alteryx-Designer-Knowledge-Base/Connection-Errors-with-Python-based... 

 

Then add the certificate to the MMC:

https://learn.microsoft.com/en-us/biztalk/adapters-and-accelerators/accelerator-swift/adding-certifi...