Skip to main content
Solved

Too many recursive macro substitutions


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

a_ericsson wrote:
becchr wrote:

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

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

5 replies

becchr
Influencer
Forum|alt.badge.img+25
  • 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+54
becchr wrote:

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
becchr wrote:

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+25
  • Influencer
  • Best Answer
  • March 6, 2024
a_ericsson wrote:
becchr wrote:

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
becchr wrote:
a_ericsson wrote:
becchr wrote:

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


Reply


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