Skip to main content
Solved

Too many recursive macro substitutions

  • March 6, 2024
  • 5 replies
  • 602 views

a_ericsson
Contributor
Forum|alt.badge.img+3

Hello! I have recently started working with FME Flow. I’m just testing the possibilities of writing to the Fme flow temporary resource directory, which causes the translation to fail immediatly. My script is just a reader, which in this case is reading from a shapefile, as well as a feature writer. The featurewriter is set to write to [FME_SHAREDRESOURCE_TEMP] and the response i’m getting when running the workspace is this: 

 

Has anyone encountered this before, and is there any hope for me and my workspaces in FME flow? 

Thanks!

/Alex

Best answer by becchr

You’re running it on Form, have you given the parameter FME_SHAREDRESORCE_TEMP a local value so it knows which folder to use for writing your result?

Yes, I’m running it on form, but writing to the FME-sharedresource_temp on fme flow in order to store data temporarily whilst the script is running. it is a FME Flow parameter that is predefined. Sorry if that was unclear. Would writing locally still be necessary?

if you run it on Flow, it will write to the temp folder on Flow, as Flow has a value attached to the parameter FME_SHAREDRESORCE_TEMP

but if you run it on Form, by default the parameter FME_SHAREDRESORCE_TEMP is empty (<not set>), so you have to give it a value to be able to use it

https://docs.safe.com/fme/html/FME-Form-Documentation/FME-Transformers/!Transformer_Parameters/FME-Flow-Parameters.htm

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.

5 replies

becchr
Influencer
Forum|alt.badge.img+32
  • Influencer
  • March 6, 2024

You’re running it on Form, have you given the parameter FME_SHAREDRESORCE_TEMP a local value so it knows which folder to use for writing your result?


nielsgerrits
VIP
Forum|alt.badge.img+62

You’re running it on Form, have you given the parameter FME_SHAREDRESORCE_TEMP a local value so it knows which folder to use for writing your result?

You can set this in the Navigator, FME Flow Parameters, [FME_SHAREDRESORCE_TEMP], right click, edit value.


a_ericsson
Contributor
Forum|alt.badge.img+3
  • Author
  • Contributor
  • March 6, 2024

You’re running it on Form, have you given the parameter FME_SHAREDRESORCE_TEMP a local value so it knows which folder to use for writing your result?

Yes, I’m running it on form, but writing to the FME-sharedresource_temp on fme flow in order to store data temporarily whilst the script is running. it is a FME Flow parameter that is predefined. Sorry if that was unclear. Would writing locally still be necessary?


becchr
Influencer
Forum|alt.badge.img+32
  • Influencer
  • Best Answer
  • March 6, 2024

You’re running it on Form, have you given the parameter FME_SHAREDRESORCE_TEMP a local value so it knows which folder to use for writing your result?

Yes, I’m running it on form, but writing to the FME-sharedresource_temp on fme flow in order to store data temporarily whilst the script is running. it is a FME Flow parameter that is predefined. Sorry if that was unclear. Would writing locally still be necessary?

if you run it on Flow, it will write to the temp folder on Flow, as Flow has a value attached to the parameter FME_SHAREDRESORCE_TEMP

but if you run it on Form, by default the parameter FME_SHAREDRESORCE_TEMP is empty (<not set>), so you have to give it a value to be able to use it

https://docs.safe.com/fme/html/FME-Form-Documentation/FME-Transformers/!Transformer_Parameters/FME-Flow-Parameters.htm


a_ericsson
Contributor
Forum|alt.badge.img+3
  • Author
  • Contributor
  • March 7, 2024

You’re running it on Form, have you given the parameter FME_SHAREDRESORCE_TEMP a local value so it knows which folder to use for writing your result?

Yes, I’m running it on form, but writing to the FME-sharedresource_temp on fme flow in order to store data temporarily whilst the script is running. it is a FME Flow parameter that is predefined. Sorry if that was unclear. Would writing locally still be necessary?

if you run it on Flow, it will write to the temp folder on Flow, as Flow has a value attached to the parameter FME_SHAREDRESORCE_TEMP

but if you run it on Form, by default the parameter FME_SHAREDRESORCE_TEMP is empty (<not set>), so you have to give it a value to be able to use it

https://docs.safe.com/fme/html/FME-Form-Documentation/FME-Transformers/!Transformer_Parameters/FME-Flow-Parameters.htm

I see, that makes sense! I find it a bit confusing that it is listed as a fme flow parameter however. As long as it works :) 

Thanks for your help and input!

 

/Alex