I tried running this Alteryx Python Workflow yet I get this error message saying 'Collection' object has no attribute "assets". What should I do?
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:
I hope this helps!
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 :)