Santosh Philip
asked on
MICROSOFT ODBC TEXT DRIVER TOO FEW PARAMETERS. EXPECTED 48
This worked for over 5 years but today i got the above error message. Please advise. Thanks
Here is the connection string:
DBQ=J:\ISOURCE DATA REPOSITORY;DefaultDir=J:\I SOURCE DATA REPOSITORY;Driver={Microso ft Text Driver (*.txt; *.csv)};DriverId=27;FIL=te xt;MaxBuff erSize=204 8;MaxScanR ows=8;Page Timeout=5; SafeTransa ctions=0;T hreads=3;U serCommitS ync=Yes
This is the SQL:
SELECT otc_sales_history_product_ detail_spi ne.TERRITO RY_NUMBER, otc_sales_history_product_ detail_spi ne.TERRITO RY_DESC, otc_sales_history_product_ detail_spi ne.BRANCH_ ID, otc_sales_history_product_ detail_spi ne.BRANCH_ DESC, otc_sales_history_product_ detail_spi ne.CUSTOME R_NUMBER, otc_sales_history_product_ detail_spi ne.CUSTOME R_NAME, otc_sales_history_product_ detail_spi ne.CITY, otc_sales_history_product_ detail_spi ne.STATE, otc_sales_history_product_ detail_spi ne.MARKETI NG_DIVISIO N_CODE, otc_sales_history_product_ detail_spi ne.MARKETI NG_DIVISIO N, otc_sales_history_product_ detail_spi ne.PRODUCT _TYPE_CODE , otc_sales_history_product_ detail_spi ne.PRODUCT _TYPE, otc_sales_history_product_ detail_spi ne.PRODUCT _APPLICATI ON_CODE, otc_sales_history_product_ detail_spi ne.PRODUCT _APPLICATI ON, otc_sales_history_product_ detail_spi ne.PRODUCT _LINE_CODE , otc_sales_history_product_ detail_spi ne.PRODUCT _LINE, otc_sales_history_product_ detail_spi ne.PRODUCT _GROUP_COD E, otc_sales_history_product_ detail_spi ne.PRODUCT _GROUP, otc_sales_history_product_ detail_spi ne.ITEM_GR OUP_CODE, otc_sales_history_product_ detail_spi ne.CATALOG _NUMBER, otc_sales_history_product_ detail_spi ne.SURGEON _NUMBER, otc_sales_history_product_ detail_spi ne.SURGEON _NAME, otc_sales_history_product_ detail_spi ne.PRIORYE AR_JAN, otc_sales_history_product_ detail_spi ne.PRIORYE AR_FEB, otc_sales_history_product_ detail_spi ne.PRIORYE AR_MAR, otc_sales_history_product_ detail_spi ne.PRIORYE AR_APR, otc_sales_history_product_ detail_spi ne.PRIORYE AR_MAY, otc_sales_history_product_ detail_spi ne.PRIORYE AR_JUN, otc_sales_history_product_ detail_spi ne.PRIORYE AR_JUL, otc_sales_history_product_ detail_spi ne.PRIORYE AR_AUG, otc_sales_history_product_ detail_spi ne.PRIORYE AR_SEP, otc_sales_history_product_ detail_spi ne.PRIORYE AR_OCT, otc_sales_history_product_ detail_spi ne.PRIORYE AR_NOV, otc_sales_history_product_ detail_spi ne.PRIORYE AR_DEC, otc_sales_history_product_ detail_spi ne.CURRENT YEAR_JAN, otc_sales_history_product_ detail_spi ne.CURRENT YEAR_FEB, otc_sales_history_product_ detail_spi ne.CURRENT YEAR_MAR, otc_sales_history_product_ detail_spi ne.CURRENT YEAR_APR, otc_sales_history_product_ detail_spi ne.CURRENT YEAR_MAY, otc_sales_history_product_ detail_spi ne.CURRENT YEAR_JUN, otc_sales_history_product_ detail_spi ne.CURRENT YEAR_JUL, otc_sales_history_product_ detail_spi ne.CURRENT YEAR_AUG, otc_sales_history_product_ detail_spi ne.CURRENT YEAR_SEP, otc_sales_history_product_ detail_spi ne.CURRENT YEAR_OCT, otc_sales_history_product_ detail_spi ne.CURRENT YEAR_NOV, otc_sales_history_product_ detail_spi ne.CURRENT YEAR_DEC, otc_sales_history_product_ detail_spi ne.F47, otc_sales_history_product_ detail_spi ne.F48
FROM `J:\Isource Data Repository`\otc_sales_hist ory_produc t_detail_s pine.txt otc_sales_history_product_ detail_spi ne
Here is the connection string:
DBQ=J:\ISOURCE DATA REPOSITORY;DefaultDir=J:\I
This is the SQL:
SELECT otc_sales_history_product_
FROM `J:\Isource Data Repository`\otc_sales_hist
Double-check the column names in the file against your Select clause.
ASKER
Thanks for your response. Already did that before posting it here. The file worked till Monday , Tuesday morning is when we started having issues. Anything else you could think of? Thanks
* A blank line at the beginning
* A space character in one or more column names
* You have back-tick characters where apostrophe characters were expected
* The database engine suddenly became sensitive to field names in the query string and you need to delimit table and field names with "[" and "]"
* A space character in one or more column names
* You have back-tick characters where apostrophe characters were expected
* The database engine suddenly became sensitive to field names in the query string and you need to delimit table and field names with "[" and "]"
ASKER
Thanks, what makes the database engine sensitive suddenly. This used to work. I am not an expert at ODBC's i am simply an end user. Would you be able to show me how to fix this by delimiting the table and the field names? Thanks for your help
please post the input file
ASKER
Thanks, file is attached. Appreciate your willingness to help.
Do you think this has something to do with any Microsoft updates or drivers that our IT dept pushes on to our machines? Thanks
July-18.xlsm
Do you think this has something to do with any Microsoft updates or drivers that our IT dept pushes on to our machines? Thanks
July-18.xlsm
You posted an Excel workbook. Please post the text file.
ASKER
okay sorry, i should have explained if you go to connections , you should be able to see the connections and SQL's. But here is the text file. The highlighted tabs towards the end has the connections. Here is the text file as well. Thank you!!
ODBC-TEXT-DRIVER-ERROR.txt
ODBC-TEXT-DRIVER-ERROR.txt
your posted text file is not the data
ASKER
Okay sorry, i wasnt sure as to what you were asking for. Attached is one of the data source files which is housed in our data repository. Thanks
ASKER
sorry, forgot to hit upload file, Here it is... Thanks!
otc_sales_history_product_detail_spi.txt
otc_sales_history_product_detail_spi.txt
1. the file is malformed at line 126597.
2. Do you have a schema.ini file in that folder? If so, please post it.
2. Do you have a schema.ini file in that folder? If so, please post it.
ASKER
That's how it has been always. I have these files saved for the last two years and beyond and each of them are like that. Those are the lines for freight.
I will find out if there is a schema file . I dont see it in here. Thanks for your help with this.
I will find out if there is a schema file . I dont see it in here. Thanks for your help with this.
ASKER
just wanted to let you know that your last message prompted me to look at the folder again for the Schema file. I know i have seen it in there but could not find it so i looked a screenshot of the folder that i had from last year and it was there. Our IT was able to restore that folder and the file works again. Thanks again for all your help.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you so much. Not very familiar with the intricacies of how it works, we are just the end users , as long as it works there is no issue and never bothered to understand how it works . Have a great day!
You're welcome. Please close this question.
ASKER
Aikimark provided the best solution to my issue. He stayed at it till it got resolved, did not give up easily. He isa true professional and my hats off to him . He is very knowledgeable and resourceful.
ASKER
Thank you