dar100111 Posted May 30, 2014 Share Posted May 30, 2014 I am wondering if my file is too big to read to Array. I have about 5000 rows and 77 columns I am getting this error: @error = 5, @extended = -2147352571 I cut down the number of lines and it works. What should I do in this instance? Thanks! #include <IE.au3> #include <File.au3> #include <Excel.au3> #include <Array.au3> #include <GUIConstantsEx.au3> #include <MsgBoxConstants.au3> #include <WindowsConstants.au3> $oApp=_Excel_Open() $oExcel = FileOpenDialog("Select", @ScriptDir & "\", "Files (*.csv)", 1) $oWorkbook=_Excel_BookOpen($oApp, $oExcel, Default) $aResult=_Excel_RangeRead($oWorkbook, Default) If @error Then Exit MsgBox($MB_SYSTEMMODAL, "Error Reading File to Array", "Error with Excel Range Read." & @CRLF & "@error = " & @error & ", @extended = " & @extended) _ArrayDisplay($aResult) Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted May 30, 2014 Moderators Share Posted May 30, 2014 (edited) I thought the row limit for anything beyond 2003 was 16,384, but water may be able to speak to it better (can't find the link I am looking for online at the moment). There is something in the help file remarks about a row limitation. Edited May 30, 2014 by JLogan3o13 "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
dar100111 Posted May 30, 2014 Author Share Posted May 30, 2014 I tried it as xlsx rather than csv and it worked! Maybe it's the file type. Link to comment Share on other sites More sharing options...
water Posted May 30, 2014 Share Posted May 30, 2014 @error = 5 is returned when an error occurred when reading data. @extended is set to the COM error code Do you have any invalid data (division by 0 or similar) in the range you read? My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
dar100111 Posted May 30, 2014 Author Share Posted May 30, 2014 Hey Water! Was looking in the help file to see what they meant. Where can I file a list of all those error messages and @extended com errors.? I doubled up the line amounts and it read 8000 rows just fine when I changed the excel file type. Link to comment Share on other sites More sharing options...
water Posted May 30, 2014 Share Posted May 30, 2014 Which version of Excel do you run? My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
dar100111 Posted May 30, 2014 Author Share Posted May 30, 2014 2010 Link to comment Share on other sites More sharing options...
dar100111 Posted May 30, 2014 Author Share Posted May 30, 2014 Correction 2013 now Link to comment Share on other sites More sharing options...
water Posted May 30, 2014 Share Posted May 30, 2014 Do you still get the error when you try: $aResult=_Excel_RangeRead($oWorkbook, Default, Default, Default, True) PoojaKrishna 1 My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
water Posted May 30, 2014 Share Posted May 30, 2014 I forgot to ask: Which AutoIt version do you run? My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
dar100111 Posted May 30, 2014 Author Share Posted May 30, 2014 (edited) Yes it looks like will run on the csv version Water with those parameters. Running the latest beta. Edited May 30, 2014 by dar100111 Link to comment Share on other sites More sharing options...
water Posted May 31, 2014 Share Posted May 31, 2014 I've modified the function so it automatically sets $bForceFunc to True when the copied range has > 65536 cells. Unfortunately the limitation of the transpose method hasn't been documented by MS My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now