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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Type 'File' isn't acce...
Power Automate
Answered

Type 'File' isn't acceptable as an input argument type - Error, when running flow from Web

(0) ShareShare
ReportReport
Posted on by 109

rolign_0-1631274788904.png

Hi,

 

Could anyone explain what the error means:

Type 'File' isn't acceptable as an input argument type

 

This error appears when the desktop flow is run from another desktop flow. I tried to run it separately and it works, created another desktop flow that only runs this desktop flow within it, setting variables manually, and it works too. Fails also in debug mode etc. Cannot find any mention of this error on the web.

I have the same question (0)
  • Verified answer
    rolign Profile Picture
    109 on at

    Seems that PAD thinks I am passing a File, but it is only a string of the filepath. I added "" to the filepath and was able to pass the string that way, so that's sort of a solution. Weird that it worked before, but today stopped.

  • Community Power Platform Member Profile Picture
    on at

    I am having this issue as well!  After putting the quotes around my variable name, I was able to get rid of the File type error but now the flow I was triggering stops working after it calls the file path location.  Since it's a flow being ran from the flow I'm working on, I'm not able to see the error code (Am I?), so I'm not sure what the error is.

    I've attached pics of the flow action and the variables' information being passed.

     

    Screenshot 2022-11-06 102804.pngScreenshot 2022-11-06 102942.png

    Screenshot 2022-11-06 102910.png

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

     

     

     Since it's a flow being ran from the flow I'm working on, I'm not able to see the error code (Am I?)

     

     

    If you run the flow from the console (not designer/debugging), then from the www portal/logs, there is no difference if you run the flow directly or via another flow.

    Logs of the Desktop flows run from other desktop flows appear in the Power Automate web portal under "Monitor" -> Desktop flow runs. You can go there and look for failed flow to see errors.

     

     

    I am having this issue as well! After putting the quotes around my variable name, I was able to get rid of the File type error but now the flow I was triggering stops working after it calls the file path location.

     

    I don't know if I understand correctly what you are doing in both flows without seeing the code:

     

    1. In the first flow, you use "File" actions to do some logic that produces a "file" object variable, and you pass that variable as an output variable.

    2. In the second flow, you intend to take the Input variable holding the "file" object from flow one and use another "File" action to work on the file.

     

    So if my understanding of the above is correct:

    - Input variable error makes sense - You take the "file" object as an output variable from flow one as a "string" input variable in flow 2 - no go here

    - After you added "to the output variable, you converted the output variable to a string, so flow 2 accepts it. But it is no longer a "file" object in flow two but a simple string. So you cannot do any "File" actions.

     

    So, you would need to convert that "string" object into a "file" object again in flow 2 to be able to use "File" actions.

    For example:

     

    Flow 1:

    Output variable 1: String with the folder where the file sits

    Output variable 2: filename

     

    Flow 2:

    Get files in a folder and use path and filename to filter files, this will give you a variable of a "file" type, and you can use "files" actions.

     

    Is that what you are looking for?

  • Community Power Platform Member Profile Picture
    on at

    Thanks for the info on finding the errors!

     

    I fixed my issue.  The folder name was being generated by two other variables (borrower first name and borrower last name).  Therefore the child flow couldn't get the name because it didn't know what the value was for those two variables that made up the folder name (I guess).  What confused me was that the actual folder path was displayed as the output for the variable so I thought that the value would pass to the child flow. 

    I tried to create output/input variables for the two variables (borrower first name and borrower last name), that made up the folder name in order to pass these values on to the child flow but still couldn't get it to work.... I was probably going too fast and didn't type something correctly.

    I'm using an Excel sheet to work with so I ended up telling the flow to write the result of the folder path to one of my unused cells.  Then I had the flow grab that text as the folder name.  That way there were no variable names included when it passed the value on to the child flow. 

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard