Problem loading Resource_Utilities file




Sablona.html.txt (2.0 KB)

Even though the file Sablona.html exists in ASSET, the GetStringFromAsset block does not load the file and loads the string “Šablóna neexistuje” into the SablonaHTML variable. I can’t figure out where the problem is.

Where do you call this procedure, PripravHtmlText? Screen initi or a button click?

Clicking the button

Hi dear,

Try this

In GotText you’ll get the html text


I also tried renaming the file from HTML to TXT, it didn’t help. I also tried this, it didn’t help either. It gives me a message that it can’t find either the Sablona.txt file or the //Sablona.txt file. I’ve tried everything I can think of, nothing has helped.
It looks like there’s a problem in Asset, because even preview can’t do that for that file.

This component is used in this way

If you need to use replace on text from a file in the assets use File component instead, read the file, and then modify the text.

Try it like this

I am also experiencing this issue. The Resource_Utilities file fails to load, which is causing disruption in normal usage. :face_with_steam_from_nose:

Please look into this bug and provide a fix as soon as possible! :folded_hands:

Hi dear,

Try using File.MakeFullPath when loading the file.

This is how I managed to solve it.
Thank you all for your cooperation. I have my program ready.

So the Resource component… only works on structured JSON data?

Look at my solution below. Maybe it will help you. I completely left out the “Resource” component from the project. The HTML code is better loaded via FileRead… I then filled the HTML code with data by replacing the PlaceHolders that I prepared in advance in the HTML code. The resulting code is an HTML table page with data, which I export to email.

Hey dear,

Yes, I confirm that this is how it works :grin: