Skip to main content
Solved

@getFileName(@zip(OutputLocation))}

  • September 26, 2022
  • 3 replies
  • 10 views

sigtill
Supporter
Forum|alt.badge.img+24

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

Best answer by sigtill

Replacing:

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

with

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

 

Seemed to fix the problem!

View original
Did this help you find an answer to your question?

3 replies

sigtill
Supporter
Forum|alt.badge.img+24
  • Author
  • Supporter
  • Best Answer
  • September 27, 2022

Replacing:

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

with

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

 

Seemed to fix the problem!


tono
Contributor
Forum|alt.badge.img+11
  • Contributor
  • September 27, 2022
sigtill wrote:

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))}


siennaatsafe
Safer
Forum|alt.badge.img+11

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.


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