web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Error is not supported...
Power Automate
Answered

Error is not supported as nested types in List input and output arguments

(0) ShareShare
ReportReport
Posted on by 929 Super User 2024 Season 1

I have a flow that has all of a sudden started to "fail" randomly with this error. Any idea what it means? The bot runs just fun, it doesn't give me an error message on a certain step, but it caused the bot to "fail" and therefore it messes up my Flow and I can't get the output variables.

 

ryule_0-1674611951405.png

 

 

I have the same question (0)
  • Kaif_Siddique Profile Picture
    2,108 Super User 2024 Season 1 on at

    This likely means that the action or flow you are trying to create is not configured correctly and you need to adjust the input/output argument types accordingly.

     

    Review the action or flow that is causing the error and make sure that the input and output argument types for the List are correct. For example, if you are expecting a List of strings, make sure that the input or output argument is set to a "String" type.

     

    Check if there is any problem with the flow and try to fix it.

  • ryule Profile Picture
    929 Super User 2024 Season 1 on at

    Yeah, unfortunately it doesn't tell me the Action that causes the issue, and I obviously know which flow it is......the only list that I would think could be causing the error is a list that I'm adding variables that hold a value from the "Get last error" step. This hasn't been an issue until recently, as I don't think I changed anything. But for the time being, I don't really need it all that badly, so I've deleted that list and applicable actions, and we'll see how it goes.

  • momlo Profile Picture
    1,527 Super User 2024 Season 1 on at

    Are you trying to use the Last Error as an output variable?

    Never tired of that as you can stop the flow with an error where you can use Last Error (or custom text) and then work with that in PA flow.

  • ryule Profile Picture
    929 Super User 2024 Season 1 on at

    Yeah. And I just ran into this on another bot:

    ryule_0-1675098865333.png

     

    So yeah, I think what these are saying is you can't include a File path variable nor an Error Code value in a list...........what is up with that? I know for a fact my File path output list variable used to work.........

  • momlo Profile Picture
    1,527 Super User 2024 Season 1 on at

    And are you using the right Output type?

     

    momlo_0-1675099832723.png

     

  • ryule Profile Picture
    929 Super User 2024 Season 1 on at

    Yeah

    ryule_0-1675100178950.png

    and here is what populates it:

    ryule_1-1675100258677.png

     

  • ryule Profile Picture
    929 Super User 2024 Season 1 on at

    To me, that error message sounds like we can't use Error codes (from my original post) and File names (from my more recent post) in Lists (aside from their pre-built Actions, obviously), regardless of input/output.

     

    Maybe I can add extra steps to try to make them look like strings versus their native formats, but that seems like some unnecessary additional work.

  • Verified answer
    momlo Profile Picture
    1,527 Super User 2024 Season 1 on at

    I'm not surprised that the error type is not supported as direct output; you would need to use "stop flow" to get it to the cloud or:

    - convert it to a text variable and output it as text (can be formatted as csv or JSON)

    - or convert that JSOn variable into a custom object and return it as a custom object output

     

    When it comes to lists, you can return "genera;" values, so a list of text, no a list of objects.

    So instead of adding file objects, add their full path.

     

    momlo_0-1675100979885.png

     

    I did test this:

     

     

    SET OutBoolean TO InBoolean
    SET OutDataTable TO InDataTable
    SET OutNumber TO InNumber
    Folder.GetFiles Folder: $'''C:\\Test''' FileFilter: $'''*.txt''' IncludeSubfolders: False FailOnAccessDenied: True SortBy1: Folder.SortBy.NoSort SortDescending1: False SortBy2: Folder.SortBy.NoSort SortDescending2: False SortBy3: Folder.SortBy.NoSort SortDescending3: False Files=> TempList
    LOOP FOREACH File IN TempList
     Variables.AddItemToList Item: File.FullName List: OutFilesList
    END
    BLOCK test
    ON BLOCK ERROR
    
    END
     System.RunApplication.RunApplicationAndWaitToLoad ApplicationPath: $'''ThisAppDoesNotExist.exe''' WindowStyle: System.ProcessWindowStyle.Normal Timeout: 5 ProcessId=> AppProcessId WindowHandle=> WindowHandle
    END
    ERROR => temperror Reset: True
    SET OutTextLastError TO $'''{
    \"ActionIndex\":\"%temperror.ActionIndex%\",
    \"ActionName\":\"%temperror.ActionName%\",
    \"ErrorDetails\":\"%temperror.ErrorDetails%\"
    }'''
    Variables.ConvertJsonToCustomObject Json: OutTextLastError CustomObject=> OutErrorCustomObject

     

     

     

  • ryule Profile Picture
    929 Super User 2024 Season 1 on at

    Ironically, I do use Stop Flow, so that still doesn't help out apparently. But I do appreciate the tips and guidance and I will give these options a shot!!  

    Funny enough, my original issue was fairly simple enough to understand after seeing this List issue, as I thought Microsoft was using "Error" generically, but they were actually referring to my use of the error codes.

    Thanks again!

  • twilkins0n Profile Picture
    15 on at

    I am encountering the exact same problem and this is a recent development, something changed with getting last error that is breaking flows.  Even when I change LastError to text with Trim text, using TrimmedText fails.  That's a bug that needs to be fixed.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 378

#2
Valantis Profile Picture

Valantis 329

#3
David_MA Profile Picture

David_MA 283 Super User 2026 Season 1

Last 30 days Overall leaderboard