Paul Bente wrote:
I have seen mention on this list of success in importing into LSMB
lists of customers, vendors, and parts from csv files, but not in a
form simple and detailed enough to for me to follow and succeed.
I was able to get the sample file "lsmb02-cli-example.pl" in
ledgersmb/doc/samples to work apparently (it reported the 3 sample
records as SAVED, etc and when I log in the records are there) but it
then follows with about 40 lines reporting errors of the type:
Use of uninitialized value in substr at importvendor.pl line 61,
<DATA> line 4.
Use of uninitialized value in scalar assignment at importvendor.pl
line 130, <DATA> line 4.
Use of uninitialized value in concatenation (.) or string at
importvendor.pl line 61, <DATA> line 4.
...
Use of uninitialized value in concatenation (.) or string at
importvendor.pl line 86, <DATA> line 4.
<snip />
...
There were blank lines after the data.
Any idea as to the source or significance of these errors or how I
might modify the script to eliminate them?
Make sure there are no blank lines -- only data -- in the section
after
the __END__.
I'll look at a simple check for a blank line and quit if found. This
will not protect against bad data. That will take a few more fixes to
handle that and will probably in a simplistic way. Put a blank or
'UKN'
for strings and zero '0' for numbers. What do folks think or want?