Skip to main content

I'm newbie...

I adapted the code of FME's example

FME Server Playground - Upload File In Session

to run as custom-widget within ESRI Web AppBuilder (Developer Edition) and I have unexpected problem. This problem occurrs also if I run the exact code of the original FME's example, since the code is good, only my cloud workspace apparently lack some definitions. I'll explain -

 

If I run FME's original code example using FME's original easyTranslator.fme workspace, then for different input files I get different results (well, it's obvious expected behaviour...).

Same if I run it on easyTranslator.fme which FME has put inside "Sample" folder in my cloud (I assume it's exactly same workspace).

 

But when I run SAME exact FME's code example on MY FME's cloud workspace that was created independently, it returns ALWAYS the results zip code of the FIRST input file, no matter if I upload other file and run on it. And if I run it from the beginning on a new input file (without uploading and running also on my old input file) then it "succeeds" but does not return a zip file.

 

So this weird phenomenon stems from my workspace definitions...

 

My questions:

  1. What could be the problem and how to solve it?
  2. How can I define that after each transformation, the workspace will clear its memory of old input files?
  3. How can I instruct explicitly the workspace to clear its old input files?

 

Help will be greatly appreciated,

 

Michael

This sounds like an issue with the source dataset parameter. Doublecheck how your code is passing that on to the workspace, if that doesn't work properly the workspace will take its default value.


Thanks @Hans van der Maarel​ 

Problem solved.

Yes, it was the source dataset, only I already explained that the problem must be in my workspacce. I right clicked on source, chose "Edit User Parameter Definition" and cleared "Default Value" textbox. This solved the problem.

Michael


Reply