Skip to main content
Solved

Job Result Data: numFeaturesOutput = 0

  • July 19, 2017
  • 10 replies
  • 47 views

nielsgerrits
VIP
Forum|alt.badge.img+62

Dear FMEers,

We are using the API to submit transformations and get jobs with the result when completed. This works fine but the numFeaturesOutput is always 0 even when features are written. Must be something simple but I can't find how to get this to work.

Using FeatureWriters in 2016.1.

And how can we put text in the Description Parameter?

Best answer by redgeographics

Features written by a FeatureWriter don't count towards the total number of features written. They do show up in the log though.

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.

10 replies

redgeographics
Celebrity
Forum|alt.badge.img+62
  • Celebrity
  • Best Answer
  • July 19, 2017

Features written by a FeatureWriter don't count towards the total number of features written. They do show up in the log though.


david_r
Celebrity
  • July 19, 2017

If you look at the job log, how many features is reported as written at the end?

You can specify the description in the TMDirectives block of the API call used to submit your job, here's an example using json:

{
  "FMEDirectives": {},
  "NMDirectives": {
    "failureTopics": [],
    "successTopics": []
  },
  "TMDirectives": {
    "rtc": false,
    "description": "This is a description of my job submission",
    "priority": 100,
    "tag": ""
  },
  "publishedParameters": [
    {
      "name": "MY_PARAMETER",
      "value": "1234"
    }
  ],
  "subsection": "REST_SERVICE"
}

nielsgerrits
VIP
Forum|alt.badge.img+62

Features written by a FeatureWriter don't count towards the total number of features written. They do show up in the log though.

Thanks, good to know.

 

 


david_r
Celebrity
  • July 19, 2017

Features written by a FeatureWriter don't count towards the total number of features written. They do show up in the log though.

Didn't have to wait long to learn something new today, thanks Hans. Sounds like it's something that Safe should look into.

nielsgerrits
VIP
Forum|alt.badge.img+62

If you look at the job log, how many features is reported as written at the end?

You can specify the description in the TMDirectives block of the API call used to submit your job, here's an example using json:

{
  "FMEDirectives": {},
  "NMDirectives": {
    "failureTopics": [],
    "successTopics": []
  },
  "TMDirectives": {
    "rtc": false,
    "description": "This is a description of my job submission",
    "priority": 100,
    "tag": ""
  },
  "publishedParameters": [
    {
      "name": "MY_PARAMETER",
      "value": "1234"
    }
  ],
  "subsection": "REST_SERVICE"
}
This is what we have implemented succesfully. But now I want to ask server what it did. I do get the "status": "SUCCESS" but I would like some more info... So I am looking for a way to communicate back from server to my other application via the API so I can tell the user how many features were processed..

 


david_r
Celebrity
  • July 19, 2017
This is what we have implemented succesfully. But now I want to ask server what it did. I do get the "status": "SUCCESS" but I would like some more info... So I am looking for a way to communicate back from server to my other application via the API so I can tell the user how many features were processed..

 

Short of using your workspace to store the results somewhere and then letting your application read them back, I'm not sure that's possible.

redgeographics
Celebrity
Forum|alt.badge.img+62
Didn't have to wait long to learn something new today, thanks Hans. Sounds like it's something that Safe should look into.
I agree, especially if we start seeing more and more workspaces using FeatureWriters this becomes an issue. I have a workspace running on FME Cloud that writes to a temporary Excel file and then uploads it to Dropbox. Same issue: 0 features written...

 

 


nielsgerrits
VIP
Forum|alt.badge.img+62
Short of using your workspace to store the results somewhere and then letting your application read them back, I'm not sure that's possible.
That's good to know. I can stop smashing my face at the desk then, thinking I'm to stupid to find out how it works LOL.

 

 


geosander
Forum|alt.badge.img+7
  • July 19, 2017
I agree, especially if we start seeing more and more workspaces using FeatureWriters this becomes an issue. I have a workspace running on FME Cloud that writes to a temporary Excel file and then uploads it to Dropbox. Same issue: 0 features written...

 

 

I believe I heard a Safer say at the FME UC that they are working on this.

 

 


redgeographics
Celebrity
Forum|alt.badge.img+62
I believe I heard a Safer say at the FME UC that they are working on this.

 

 

I've created an idea for it (please vote)