0
votes

I have a view in Lotus Notes 8.5 that I want to export the data to a csv file. There are these kind of fields that are list. Say I have a field called "editors".It has multiple editors for one document. When I export the data to a csv file, the field is "frank, john, Tom". It is comma separated. But I found that sometimes, it is losing data. Sometimes I only got "frank, john". "Tom" is lost.

2
How are you doing the export? Are you 100% sure that the list is stored properly as multi-values? (I.e., have you examined the field data in the Document Properties dialog or in NotesPeek to see whether it might actually be stored as "frank, john" : "Tom"?)Richard Schwartz
I am exporting using Files/Export. Not using any scripts or code to do so. For the field, the Data Type is Text List. When I examine the data in Documents Properties dialog. It is always the right data. "Frank""john""Tom".Frank Zhang
Okay. That sounds strange. Perhaps a bug in the export facility. You may have to follow Karl-Henry's advice and write code to work around it.Richard Schwartz

2 Answers

0
votes

Please show your code for exporting the view to CSV. Are you looping through the NotesView, opening each document and using the GetItemValues method to get the values, or are you looping through a NotesViewEntryCollection, getting each NotesViewEntry and then using the ColumnValues property to get the visible values in the view?

I suspect that your problem is that you are not treating the values you get back as arrays, but instead only read the first value of the array. If you could post your code, it would help.

You could take a look at some code I posted on my blog a while back, perhaps that can help you: http://blog.texasswede.com/export-notes-view-to-excel-with-multi-value-fields/

0
votes

I have had the same thing happen to me.... losing data. I found that in some of the fields there were commas included in the field values and this is how the data did not completely export.

I ended up writing an agent with Lotusscript and exported the data in that manner.