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!

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.

Attribute not found

patricklshan
6 - Meteoroid

I tried running this Alteryx Python Workflow yet I get this error message saying 'Collection' object has no attribute "assets". What should I do?

2 REPLIES 2
clmc9601
13 - Pulsar
13 - Pulsar

Hi @patricklshan,

 

Please make sure you run the cells in order and install all the packages first. If you get any errors before cell 4, stop and correct those first. I just ran your workflow, and it actually worked for me.

 

If you want to check the attributes of a Python object, you can use the following code. Creating attributes for custom objects like this is fairly advanced Python. I'd recommend checking other websites like the Python documentation or Stack Overflow.

 

dir(objName)

 

For the collection object, here are the attributes I see:

Screen Shot 2022-04-25 at 11.31.33 PM.png

I hope this helps!

clmc9601
13 - Pulsar
13 - Pulsar

Just noticed that in your post, you mentioned "Collection" not "collection". Python is very case sensitive. Be sure you are referencing an object/variable by the same name you define it :)

Labels