Focal Point
[SOLVED] Access database (FOC1400 error)

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/1471060692

August 19, 2008, 10:31 AM
Luminita
[SOLVED] Access database (FOC1400 error)
Hi,

Here is the code that I execute:

TABLE FILE ACC_PREDICTIONS
PRINT
MIN.BMA_LIBOR
BY WEEKS
WHERE ( UPDATE_TIME EQ '06/01/2005' );
END

and this is the error I get:
(FOC1400) SQLCODE IS -3030 (HEX: FFFFF42A)
: [22005] [Microsoft][ODBC Microsoft Access Driver] Data type mismatch in
: criteria expression.

If I comment out the WHERE line I get data. This is what I have in the master file for the UPDATE_TIME field:

FIELDNAME=UPDATE_TIME, ALIAS=UPDATE_TIME, USAGE=MDYY, ACTUAL=DATE,
MISSING=ON, $

If I just do:

TABLE FILE ACC_PREDICTIONS
PRINT
UPDATE_TIME
END

I get this:

UPDATE_TIME
09/27/2004
09/27/2004
09/27/2004
....

Has anyone seen this before? Any ideas?

This message has been edited. Last edited by: Kerry,


7.6.6 on AIX platform
Output: variety (Excel, HTML and PDF)
August 19, 2008, 11:00 AM
GinnyJakes
Try taking the quotes and slashes out of your date literal to start. If that doesn't work, talk to someone who is doing straight sql into Access and find out the true date format and use that.


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
August 19, 2008, 12:31 PM
j.gross
Capture the SQL and see how iWay is presenting the WHERE clause to Access.

Aside from any DATE field issue, PRINT and MIN. don't go together. Try is with SUM.


- Jack Gross
WF through 8.1.05
August 19, 2008, 04:29 PM
Darin Lee
As Ginny infers in her remarks, there is a difference between what you see when printing a field (as determined by USAGE=) and what you should use in your selection criteria (as determined by ACTUAL=). You need to find out what the real format of the date is (20040927 or 2004-09-27 or 09-27-2004 or one of hundreds of variations) in the database and set the format in your selection criteria to match it.


Regards,

Darin



In FOCUS since 1991
WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex
Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex
WF Client: 77 on Linux w/Tomcat
September 25, 2008, 03:40 PM
Luminita
Hi all,
Thank you for your suggestions, I've tried everything and when I didn't know what else to do I asked some other people in our company for help. They opened a case with IBI and got a solution. The change we had to make was to add a SQL setting code to the edasprof of the sub server (in our case the Wintel reporting server). And now my dates are working fine.

Regards,
Luminita


7.6.6 on AIX platform
Output: variety (Excel, HTML and PDF)
September 25, 2008, 03:44 PM
GinnyJakes
Can you tell us what the setting was and could you put [SOLVED] in the topic heading?

Thanks.


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google