Skip to main content
Question

[FME Server] custom WebApplication fails while uploading data

  • January 25, 2018
  • 1 reply
  • 15 views

gpt_geoinfo
Contributor
Forum|alt.badge.img+2

Hi FME-Users and -Experts!

I am creating a custom WebApplication for my co-workers to use some workbenches on their own with FME Server instead of asking me all the time.

 

So far it works quite well. The site can load the parameters of a workbench automatically. I can even submit a job and retrieve the results as a download-link. But: Every now and then the upload-function stucks. On the server I can see that the specific folder is created (System/temp/upload/<repository-name>/<workspace-name>/<session>), but the content is empty. After some minutes the session-folder is deleted. Furthermore the parameters are not completey loaded. The default values are missing.

 

When using the plain example from FME Server Playground (Upload File In Session) and just replace the server, token, repository and workspace it works.

suspect my modified JavaScript has a bug, but I can not find it, nor do I know what to look for.

Any suggestions?!

FME Server 2016.1.0.1 - Build 16494 - win64

 

WebApplication with Bootstrap and JS
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.

1 reply

Forum|alt.badge.img
  • 288 replies
  • January 25, 2018

Hi @gpt_executer,

the missing default values is a known issue of the FME Server Java Script API. I will add an issue to our GitHub repo and will look into it. I believe currently the default values are only kept for very few parameters. I let you know once we update the API.

The problem with the Upload could be related to this question:

 

https://knowledge.safe.com/questions/57605/javascript-rest-example-keeps-sessionid.html

 

You need to make sure that you create a new session right after you submit the job to make sure every job has his own upload data folder even if it's the same workspace that is submitted.

Please let me know if this works for you and feel free to ping me if you have more questions.

Kind regards,

Gerhard