Skip to main content
Solved

Job Result Data: numFeaturesOutput = 0


nielsgerrits
VIP

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.

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

10 replies

redgeographics
Celebrity
Forum|alt.badge.img+48
  • 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
Evangelist
  • 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
redgeographics wrote:

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
Evangelist
  • July 19, 2017
redgeographics wrote:

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

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
Evangelist
  • July 19, 2017
nielsgerrits wrote:
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+48
david_r wrote:
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
david_r wrote:
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
redgeographics wrote:
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+48
geosander wrote:
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)

 

 


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