This is what we do as part of our “upload a document to Sharepoint module” in our Fusion automations. The folder name is taken from the file name, but has all “illegal” characters removed via a regex in a text parser: [\\\/\*:<>?|.]
If you would like, I could provide you the blueprint for our file upload to WF automation. As mentioned, I “modularized” it so I can slip it into current and future automations. It uploads the document to Sharepoint, grabs the Web URL so it can be used as part of our review process. Pretty handy and it’s nice to have.
@sethuanand2626 Following up to see if this has been resolved. If you’ve found the answer—whether through the suggestions here or through your own troubleshooting—feel free to post the solution so others can benefit. If any reply helped along the way, marking it as accepted ensures the most useful information is easy to find. Thanks for helping close the loop!