Link to home
Start Free TrialLog in
Avatar of YvonneG
YvonneG

asked on

Cold Fusion Errors

I continue to receive the following errors from my code. Any help in resolving them would be greatly appreciated.

Error #1
Error Diagnostic Information
ODBC Error Code = 22005 (Error in assignment)


[Microsoft][ODBC Microsoft Access Driver] Data type mismatch in criteria expression.


SQL = "Select IdvIdNum FROM IdentityValue WHERE IdvTable = 'PgeNum'"

Data Source = "devfolder"


Error #2
Cannot convert stk_real data

Error#3
Error Diagnostic Information
ODBC Error Code = 07001 (Wrong number of parameters)


[Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 2.

Hint: The cause of this error is usually that your query contains a reference to a field which does not exist. You should verify that the fields included in your query exist and that you have specified their names correctly.

SQL = "Select PgeTitle From Page, StylesheetPage Where SpgPgeNum = PgeNum AND SpgStyNum = 41 AND SpgStyDelVer IS NULL AND SpgPgeDelVer IS NULL AND PgeDevDeleted = 'N'"

Data Source = "devfolder"

Error#4
Error Diagnostic Information
Parameter 2 of function ListDeleteAt which is now "0" must be a positive integer

The error occurred while evaluating the expression:


 TestPgeKeyIdList = ListDeleteAt(TestPgeKeyIdList,ListLen(TestPgeKeyIdList))




The error occurred while processing an element with a general identifier of (CFSET), occupying document position (248:4) to (248:86).


Please any help would be greatly appreciated.
Avatar of Nathan Stanford Sr
Nathan Stanford Sr
Flag of United States of America image

Post some of your code...

What is wrong is you have a number referenced as a Char or Vice Versa.

If you post your code we can help you find it.
Avatar of YvonneG
YvonneG

ASKER

I have so many files though. All of the errors I am receiving are within different sections of the site I am building! It is possible for me to post you the files seperately??

Please let me know.

And thanks for your swift response.

YvonneG
Let's Start with one page that you know is not working and work from there.  Maybe you will see the problems in others as we go.
please post the code at leo_faisal@yahoo.com then i will come to know what is exactly problem
please post code and more importantly table structures and data type.  If you post it here we all have an equal chance of helping you out
Yes, Post it here and we will let you know what we think.   Maybe with all of our two cents you can get a dollar.
From what I can see so far.....
------------------------
Error #1
means  IdvTable = 'PgeNum' does not match. Check the type of IdvTable to see whether it is varchar()
------------------------
Error #2

convert errors usually happen when you try to insert values to a field which is of the wrong data type.

------------------------
Error #3

SQL = "Select PgeTitle From Page, StylesheetPage Where SpgPgeNum = PgeNum AND SpgStyNum = 41 AND SpgStyDelVer IS NULL AND SpgPgeDelVer IS NULL AND PgeDevDeleted = 'N'"

Try running this locally on SQL client. See whether it works. Without looking at the table structure, cannot really see what is wrong here. It might be helpful to alias the table names you are using in these queries as it is a better practice when writng SQL, cos it is easier to see what fields are in what tables.
as in .......Select a.PgeTitle From Page a, StylesheetPage b where .......


------------------------
Error #4

 TestPgeKeyIdList=ListDeleteAt(TestPgeKeyIdList,ListLen(TestPgeKeyIdList))

This error means that the value getting assigned to TestPgeKeyIdList is zero and that is not valid. To by pass that try using a CFIF between the assignment statement.


ASKER CERTIFIED SOLUTION
Avatar of FRehman
FRehman

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial