Skip to main content

This should still work

 

<fmeblock>

<p style="font-family: Arial; font-size: 11px;">Din bestilling (id {id}) av data er nå ferdig produsert. Resultatdatasettet er tilgjenglig i 24 timer og kan lastes ned fra<br />

{urlPrefix}{ResultRootDir}/{@getFileName(@zip(OutputLocation))}

</p>

</fmeblock>

 

However when used in 2021 it still says: https://fmeserver.com/fmedatadownload_undefined_/_undefined_

 

Is this not valid anymore?

 

 

 

According to this: https://docs.safe.com/fme/2022.1/html/FME_Server_Documentation/ReferenceManual/EmailTemplateLanguage.htm#Function

Replacing:

{urlPrefix}{ResultRootDir}/{@getFileName(@zip(OutputLocation))}

with

{urlPrefix}{ResultRootDir}/{@getFileName(OutputLocation)}

 

Seemed to fix the problem!


Replacing:

{urlPrefix}{ResultRootDir}/{@getFileName(@zip(OutputLocation))}

with

{urlPrefix}{ResultRootDir}/{@getFileName(OutputLocation)}

 

Seemed to fix the problem!

It works, but any one at @safesoftware safesoftware​  can answer why? it should be (and it works at least on FME Server 2020.0.2.1 Build 20238 - win64) with:

 

{urlPrefix}{ResultRootDir}/{@getFileName(@zip(OutputLocation))}


Hi @tono​,

 

I looked into this. I can't find out when the @zip function was officially removed. However, in 2016.1 we removed it from our documentation. The note at the time was the @zip function did not work anymore.

 

See https://docs.safe.com/fme/2016.0/html/FME_Server_Documentation/Content/ReferenceManual/Email_Templates.htm

and

https://docs.safe.com/fme/2016.1/html/FME_Server_Documentation/Content/ReferenceManual/Email_Templates.htm

 

I'm not sure what caused it not to work again in 2021 but I'm honestly surprised it worked in 2020.


Reply