BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
rasc42
Fluorite | Level 6

I have various automated processes here, and I run all of them using the same sequence. In each I have a series of Ordered Lists which I run using the script. To get the Ordered Lists I use this line:

 

ordered_lists = self._project.ContainerCollection.Item("Ordered Lists")

And I've never had an error before. Today I tried running a new process and got this error:

 

pywintypes.com_error: (-2147352567, 'Exception.', (0, 'SASEGScripting', 'Invalid index Ordered Lists.\r\n\r\n\r\n', None, 0, -2147220490), None)

 

Never ran into this one before and didn't find any documentation regarding it on the internet.

 

If I try to access the ordered lists using the index of the Ordered List Item, I can access it fine.

 

Thanks for any help regarding this error.

1 ACCEPTED SOLUTION

Accepted Solutions
rasc42
Fluorite | Level 6

Solved it. The issue was that the "Ordered Lists" tab on that project was called "0-Ordered Lists" for some reason. I thought that calling ContainerCollection.Item("Ordered Lists") would call some sort of default "Ordered Lists" object, and not the tab that had that name.

 

Fixed by changing the name of the tab back to "Ordered Lists"

View solution in original post

1 REPLY 1
rasc42
Fluorite | Level 6

Solved it. The issue was that the "Ordered Lists" tab on that project was called "0-Ordered Lists" for some reason. I thought that calling ContainerCollection.Item("Ordered Lists") would call some sort of default "Ordered Lists" object, and not the tab that had that name.

 

Fixed by changing the name of the tab back to "Ordered Lists"

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 798 views
  • 0 likes
  • 1 in conversation