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 / Impossible to rename f...
Power Automate
Answered

Impossible to rename files with an extraction of a data web page

(0) ShareShare
ReportReport
Posted on by 37

Hello,

 

A have trouble with an automate.

 

Context :

 

This automate :

 

  1. Check on a local folder (get the name file) files stored on a certain path.
  2. From the name of these files, the autoamte construct a valid URL and open webrowser and load the URL
  3. When the page is loaded, an extraction is performed to get two information :

The name of the author and the title of the art :

 

Magic_0-1648403007848.png

 

This two information are stored in two tables named :

  • ListAuthorPixiv
  • ListArtPixiv

Magic_1-1648400173519.png

 

     4. Rename files (copied in another folder) with this two information previously stored in the two tables.

 

The problem :

 

When power automate wants to rename the file, I get the followed error :

 

Sous-flux : Main, action : 23, nom de l’action : Renommer le(s) fichier(s)

 

Impossible de renommer le fichier

 

Caractères non conformes dans le chemin d'accès.: Microsoft.Flow.RPA.Desktop.Modules.SDK.ActionException: Impossible de renommer le fichier ---> System.ArgumentException: Caractères non conformes dans le chemin d'accès.
à System.IO.Path.CheckInvalidPathChars(String path, Boolean checkAdditional)
à System.IO.Path.Combine(String path1, String path2)
à Microsoft.Flow.RPA.Desktop.Modules.File.Actions.RenameFilesAction.Execute(ActionContext context)
--- Fin de la trace de la pile d'exception interne ---
à Microsoft.Flow.RPA.Desktop.Modules.File.Actions.RenameFilesAction.Execute(ActionContext context)
à Microsoft.Flow.RPA.Desktop.Robin.Engine.Execution.ActionRunner.Run(IActionStatement statement, Dictionary`2 inputArguments, Dictionary`2 outputArguments)

 

In other words, it's impossible to rename files because they are unauthorized character. It's strange because, they are authorized character in my two tables :

 

Magic_2-1648401011231.pngMagic_3-1648401033102.png

 

The command to rename the file :

 

Magic_4-1648401114972.png

 

I just want to try a basic rename to exclude a maximum of potential error and with a simple rename of a file with the first entry of the table "ListArtPixiv" but I have the error. To understand why the reanme is impossible., here what i'have already tried :

 

- Display a message to see what is stored in the 1st entry of the table "ListArtPixiv" :

 

Magic_5-1648401447111.png

 

It's strange, a notice of a final space. But the space character is an authorized character. So it isn't a space, when I try to rename manually with the explorer a get this error :

 

Magic_6-1648401864809.png

 

I think when the extraction is perform, the data from the web page, a non-authorized character is extracted. But it's strange, because the web extraction is correct :

 

Magic_1-1648403105061.png

 

We see clearly that the text extracted contains none space or other non-authorized characters.

 

Something is strange in this web extraction. Any idea to solve this problem ?

 

Thanks per advance.

 

I have the same question (0)
  • VJR Profile Picture
    7,635 on at

    The space may not be a space. It could also be some other character like a carriage return, line feed, newline or TAB or any other invisible character.

     

    Such invisible characters can be viewed in a Hex editor like Notepad++ (Free to use)

    For eg, look at the before/after turning on the setting to show invisible characters.

     

    Before:

     

    VJR_1-1648437139231.png

     

    After:

     

    VJR_0-1648437069411.png

     

  • Verified answer
    Magic Profile Picture
    37 on at

    I figured out that the invisible character was a newline. But according to the web extraction, only the character is extracted. Anyway, i try to find another way to rename this files. So i try to cut the last string and display the contents of the variable and it confirms that the chain string is correct :

     

    Screenshot_20220401-213509.png

    we can see the string contain only the 'W' is affected to the table ListArtPixiv :

     

    Screenshot_20220401-214004.png

     

    but i have the same error when i rename with ListArtPixiv[0]...

     

    Any solution?

    Thanks per advance

  • Magic Profile Picture
    37 on at

    Finally i solve the problem with the method a describe in my previous reply.

  • VJR Profile Picture
    7,635 on at

    Okay, good so the issue was indeed with an invisible newline character.

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 252 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 169

#3
Haque Profile Picture

Haque 154

Last 30 days Overall leaderboard