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 / Can not create folder ...
Power Automate
Unanswered

Can not create folder with info from web extract

(0) ShareShare
ReportReport
Posted on by 9

I'm trying to create a desktop flow that grabs a title from a web page, combines with a date and creates a folder with that info. It errors out with the below result. I suspect it has to do with the way the data is extracted as there are no ilegal characters and If I remove the %datafromwebpage% variable the folder gets created with no issues. Appreciate any help.

 

cboy_0-1622115355067.png

 

 

Robin.Core.ActionException: Can't create folder 05-26-21 Question Info
into c:\scripts. ---> System.ArgumentException: Illegal characters in path.
at System.IO.Path.CheckInvalidPathChars(String path, Boolean checkAdditional)
at System.IO.Path.Combine(String path1, String path2)
at Robin.Modules.Folder.Actions.FolderActions.CreateFolder(Variant newFolderPath, Variant newFolderName, Variant& newFolder)
--- End of inner exception stack trace ---
at Robin.Modules.Folder.Actions.CreateFolder.Execute(ActionContext context)
at Robin.Runtime.Engine.ActionRunner.RunAction(String action, Dictionary`2 inputArguments, Dictionary`2 outputArguments, IActionStatement statement)

I have the same question (0)
  • cboy Profile Picture
    9 on at

    Trying other options:

     

    1. Create the file with the variable (A file is created but only contains the first of two words and does not have an extension (should be a docx))

    cboy_0-1622138492247.png

    2. Create a new file (new.docx), Copy to a clipboard the output of DatafromWebPage, then use that output to rename the file, this yields an ilegal character error. 

     

    The output works correctly if displayed in a message box, exported to excel etc, but breaks when creating the folder/file, so I suspect something is broken in PAD when using this functions that will not accept more than one word in that variable. 

     

    Robin.Core.ActionException: Can't rename file ---> System.ArgumentException: Illegal characters in path.
    at System.IO.Path.CheckInvalidPathChars(String path, Boolean checkAdditional)
    at System.IO.Path.Combine(String path1, String path2)
    at Robin.Modules.File.Actions.FileActions.RenameSingleFile(FileVariant currentFile, String eventualName, Boolean overwrite, ListVariant`1& result)
    at Robin.Modules.File.Actions.FileActions.RenameFile(Variant source, Variant newName, Variant textToAdd, Variant textToRemove, Variant textToReplace, Variant replaceWith, Variant newExtension, Variant customDateTime, Variant seqNewName, Variant startNumberingAt, Variant incrementBy, Variant& renamedFiles, Boolean overwrite, Int32 fileRenameScheme, Boolean newNameKeepExtension, Boolean addTextBeforeName, Int32 newCaseForName, Int32 newCaseForExtension, Int32 dateTimeToAdd, Boolean addDateTimeBeforeName, Int32 addDateTimeSeparator, String addDateTimeCustomFormat, Boolean addSequenceBeforeName, Boolean sequenceUseExistingName, Int32 sequenceSeparator, Boolean usePadding, Int32 paddingLength)
    --- End of inner exception stack trace ---
    at Robin.Modules.File.Actions.RenameFiles.Execute(ActionContext context)
    at Robin.Runtime.Engine.ActionRunner.RunAction(String action, Dictionary`2 inputArguments, Dictionary`2 outputArguments, IActionStatement statement)

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 248 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 204

#3
Haque Profile Picture

Haque 179

Last 30 days Overall leaderboard