I am trying to create a simple script to extract the name of alignment, profile and surfaces in a file. I am able to list them out as I want to do. But the output is shown as null whenever I use it on further nodes including Transpose.
Correct. Transpose more or less inverts the list structure. You have to have a valid list structure for that to happen. If you have items at the levels being inverted then there will inherently be an issue with converting those lists.
What is your ultimate goal here? Excel requires a specific list structure so a transpose won’t matter if you don’t have an L3 list.