Skip to main content
Solved

@getFileName(@zip(OutputLocation))}

  • September 26, 2022
  • 3 replies
  • 27 views

sigtill
Supporter
Forum|alt.badge.img+25

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!

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

3 replies

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

Replacing:

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

with

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

 

Seemed to fix the problem!


tono
Supporter
Forum|alt.badge.img+13
  • Supporter
  • September 27, 2022

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+12

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.