Skip to main content
Question

write hyperlink: different behaviour FME desktop - FME server


vki
Contributor
Forum|alt.badge.img+7
  • Contributor

I have a workbench that creates a html-file with a table. In one field, there's a hyperlink. I write the file with a feature-writer and copy it to our webserver with a filecopy-writer.

To make the link clickable, I also use a StringPairReplacer, replacing this: &lt; < &gt; >

This works fine, as long as I run the workbench in FME-Desktop.

When I put the workbench on FME-Server and run it, the line with the link in the html looks like this:

<td><a href=&quot;https://www.xy.com&quot;>Text</a></td>

 

instead of

<td><a href="https://www.xy.com">Text</a></td>

 

in the browser, the address of the hyperlink is:

(value of filecopy_dest_filename)https://www.xy.com, so the user gets an error...

 

How can I get FME-Server to write the link correctly? It would be great, if the same syntax would be valid for desktop and FME-Server...

Thanks, Vera

4 replies

laurawatsafe
Safer
Forum|alt.badge.img+11

Hi @vki,

Sorry to hear you're having trouble with this! The behaviour should be the same for both FME Desktop and FME Server, so it sounds like something is wrong here.

Would you be able to provide a sample workspace that shows the behaviour difference you're running into with this? Also what version and build number of FME Workbench and FME Server are you using?


vki
Contributor
Forum|alt.badge.img+7
  • Author
  • Contributor
  • August 7, 2019

FME Desktop = FME(R) 2018.1.0.2 (20180903 - Build 18547 - WIN32), FME Server = 2019.0.0.1, Build 19246 - win32

The different versions are probably the problem. We will update FME Desktop and then I'll try again...

Thanks, Vera

 


laurawatsafe
Safer
Forum|alt.badge.img+11
vki wrote:

FME Desktop = FME(R) 2018.1.0.2 (20180903 - Build 18547 - WIN32), FME Server = 2019.0.0.1, Build 19246 - win32

The different versions are probably the problem. We will update FME Desktop and then I'll try again...

Thanks, Vera

 

Sounds good! Just let me know if that doesn't help


Forum|alt.badge.img+1
  • August 9, 2019

@lauraatsafe ,

I've encountered the same issue as @vki.

 

 

I use the same version of FME on desktop and server (2019.1.0.0-win64 build 19608) and write my hyperlinks using the jsontemplater transformer.

On desktop I can clearly see that the double quotes are replaced by &quote;

<a href=&quot;myURL&quot;>Text</a>

Using the stringreplacer in FME I was able to fix this.

I simply replaced &quote; by an escaped double quote (\\")

I than use this input in an FMEServerNotifier transformer to send an e-mail using this hyperlink content.

It all works fine when I run it on desktop. Hyperlinks are now processed correctly:

<a href="myURL">Text</a>

When I run it directly on FME server however, the escaped double quotes are not recognized as such. Because of that, the hyperlinks are not processed correctly.

<a href=\\"myURL\\">Text</a>

 

I hope this extra information will help in finding the source of the problem.

 

Best regards,

Kris

 

P.S: The workspace worked fine on FME 2016.10.1 (WIN64- Build16494 if I'm not mistaken).

Double quotes were not replaced by &quot;.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings