Skip to main content

Hi All,, i'm seeing a strange issue with FeatureWriter not outputting features correctly. I've noticed this behavior at least once before, but kind of ignored it and worked around it.

In this particular example, I have 1056 features that should be output and written to a text file using the CSV writer.

 

Checking the inspector, i'm seeing the features coming through correctly.

 

Writing to the CSV using the standard CSV Writer works fine and features are output how they should be. However, trying to write to a CSV using the FeatureWriter results in a blank text file being output.

Here is the configuration of the FeatureWriter. User Attributes are set to Automatic in this case, but attempting to manually specify attributes results in a blank text file as well.

 

 

 

Attached in the log output when attempting to run through the FeatureWriter.

@util_ryan Looks like it should work and I can't reproduce the issue here. in 2018 One thing to try is running it with Feature Caching OFF. Sometimes the cache gets out of sync.

Can you bundle up a small example that reproduces this.? Perhaps add a Recorder at the Junction labeled Internal Objects.


What does the user attributes tab look like? The log suggests it's written features. Do you have 1056 blank lines?


@util_ryan Looks like it should work and I can't reproduce the issue here. in 2018 One thing to try is running it with Feature Caching OFF. Sometimes the cache gets out of sync.

Can you bundle up a small example that reproduces this.? Perhaps add a Recorder at the Junction labeled Internal Objects.

Mark can you do me a favor and test it out with a user parameter as part of the file name?

I was just creating a new workbench using a similar file naming scheme for an Excel file. Initially the file wrote the results out correctly, but was not writing out the user parameter. I saved the workbench out, reopened it, and now the user parameter is being written to the file name correctly, but now i'm seeing no results exported to the file.

 


What does the user attributes tab look like? The log suggests it's written features. Do you have 1056 blank lines?

Interestingly it does look like the lines are being written out. Opening up the text file in something where I can see line breaks (Notepad++ in this case) I can see it's writing new lines.


Reply