Hello everyone,
I am building a web scraper, and I’m stuck trying to save the HTML content of a webpage to a local text file.
My Goal:
I have the HTML content in a string variable named pageHtml`` and the desired file path in a string variable namedfullFilePath`. I want to save the content to the file.
The Problem:
I am using the Write Text File activity from the UiPath.System.Activities package. Even though this is a core system activity, I keep getting a validation error that seems related to modern design: BC30512: Option Strict On disallows implicit conversions from ‘String’ to ‘ILocalResource’.
What I’ve Tried:
- Using the Write Text File activity from UiPath.System.Activities.
- Ensuring the UiPath.Classic.Activities package is installed.
- Using Invoke Code and Invoke Power Shell as alternatives, but they also failed.
- I’ve confirmed the “Use Local File” option still gives the error.
My Environment: UiPath Studio Version:
Studio 2026.0.181-cloud.21801 - 11/20/2025
Enterprise License
Pro
User-mode Installation
License Provider: Orchestrator
Activation ID:
Microsoft Windows 11 Pro 64-bit
8.0.15
Could someone please help me understand why this is happening and how I can save this file correctly?
Thank you!
