What's the limit?
Thank you.
"...PowerBuilder 10.0 and later versions are Unicode enabled. If your
application uses the ImportFile method to import very large text files
(approximately 839,000 lines) into a DataWindow or DataStore, ImportFile
returns the error code -15. Larger text files could be imported in ANSI
versions of PowerBuilder..."
http://infocenter.sybase.com/help/topic/com.sybase.dc33822_1150/html/pbentrb/BABEBACG.htm?resultof=%22%69%6d%70%6f%72%74%66%69%6c%65%22%20%22%69%6d%70%6f%72%74%66%69%6c%22%20
--
John Strano - Sybase Technology Evangelist
blog: http://powerbuilder.johnstrano.com/
"kilstromcraig" <kilstr...@yahoo.com> wrote in message
news:eceed565-ccbf-4280...@q9g2000yqc.googlegroups.com...
Is the issue the number of rows/lines or the total file size? The
file size appears to be the problem. I've isolated the issue at
approximately 56 Megs.
Any thoughts?
Thanks.
We really didn't work around the problem -- we just had our
app check the file size prior to attempting the
ImportFile(), and if it exceeded what we had identified as
the max file size, then we advised the user that the file
could not be imported.
Totally off the top of my head (i.e., no testing or
otherwise deep thinking about the feasibility), I'm
wondering if maybe you could use the file functions to split
an excessively large file into multiple files, and then
import each in succession. You probably would take a hit in
performance, but at least it would work.
Anyway, hope this helps...
I think this is a simple question for which there may be no easy
answer.
In the meantime, I have to make code change that will allow our
customers to save as large a file as possible without having the
application crash.
Is there someone else that can offer further insight?
--
Report Bugs: http://case-express.sybase.com/cx/welcome.do
Product Enhancement Requests:
http://my.isug.com/cgi-bin/1/c/submit_enhancement
<John H> wrote in message news:49e63354.532...@sybase.com...
--
Report Bugs: http://case-express.sybase.com/cx/welcome.do
Product Enhancement Requests:
http://my.isug.com/cgi-bin/1/c/submit_enhancement
"kilstromcraig" <kilstr...@yahoo.com> wrote in message
news:4a8e60cd-4aef-4d85...@g20g2000vba.googlegroups.com...
One thing that tripped me up once was that the user had embedded line
breaks in the data. The DataWindow thought that was the start of a new
record, so the DW racked up a whole lot more rows than my user thought
he was sending. You might want to write a quick program to ensure
you've got the right number of CR/LFs in your file. (I've got a vague
memory that you have to count stand-alone CRs and LFs, but I'm not
100% sure, and that idea may be PB-version dependent.)
Good luck,
Terry and Sequel the techno-kitten
*********************************
Build your vocabulary while feeding the hungry
http://www.freerice.com
*********************************
Newsgroup User Manual
=====================
TeamSybase <> Sybase employee
Forums = Peer-to-peer
Forums <> Communication with Sybase
IsNull (AnswerTo (Posting)) can return TRUE
Forums.Moderated = TRUE, so behave or be deleted
*********************************
Sequel's Sandbox: http://www.techno-kitten.com
Home of PBL Peeper, a free PowerBuilder Developer's Toolkit.
Version 4.0.4 now available at the Sandbox
PB Futures updated June 25/2008
See the PB Troubleshooting & Migration Guides at the Sandbox
^ ^
o o
=*=
Read the file in smaller chunks yourself and call importstring?
"kilstromcraig" <kilstr...@yahoo.com> wrote in message
news:4668b42a-0205-405a...@r34g2000vba.googlegroups.com...
I'll fix the system fault now by establishing a size limit and then go
back and incorporate your feedback into a more-complete resolution.
I appreciate the help.
Craig
I implemented a new output file type (XML), custom-building it to meet
some internal requirements (instead of using SaveAs) and wrote out
(using the new FileWriteEx function) to a unicode file (opened in
TextMode!) and it works well.
Thanks to all of you for your help.