Import issues characters / punctuation in CSV format to IBM Doors
3 answers
First, you should better familiarize yourself with the rules for CSV, especially in terms of commas, quotes, and newlines.
https://en.wikipedia.org/wiki/Comma-separated_values#Basic_rules
Second, experiment. Make some artifacts in a DNG sandbox area. Put some commas, (single/double) quotes, newlines, etc in the strings of their attributes and then export them to CSV. Review the CSV (not with Excel, with a text editor) to see how DNG exported the data. That's how DNG expects an import to look. Then make minor changes (not with Excel, with a text editor) to the exported CSV and import to DNG, see how it affects the data in DNG. Rinse and repeat until you understand. :)
Comments
Ha M K,
Can you successfully perform a round-trip without manual adjustments?
- export from DNG to CSV
- open CSV in Excel, make some changes, save to new CSV
- import new CSV into DNG without errors and see the modifications in DNG
What kind of "adjustments" are you making before importing Excel-generated CSV to DNG, or can you give an example of a CSV line that is causing errors?
Comments
Hello M.K,
- The part where I used a ; in DNG is cut off and the following text is in the next cell. I made 1 line again. Otherwise I got the error that the Attribute "Artifact Type" could not be found.
Row Number: 2
Error Message: CRRRS4212E The server encountered an exception: Index: 8, Size: 1
Row Number: 1
Error Message: CRRRS4212E The server encountered an exception: Index: 8, Size: 1
id,Primary Text,Artifact Type ,"This is a testing artifact. I will test ""Quotation marks"", of course comma's, question? marks, das-hes, numerical 1002 and last but not least: this one; and we will and with a dot.",Generic Text ,"And another 1, ""quotation"" mark and the question? with a slash / and also some :.",Generic Text
Imported it into DNG, it created two new artifacts, exported the two artifacts, and got back the same (plus id's of course).
Can you give me the exact text from DNG (not filtered through Excel or your adjustments) that is causing the problem? And can you use "pre" tags around it?