Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Cold Fusion Errors

Posted on 2000-02-21
8
Medium Priority
?
191 Views
Last Modified: 2013-12-24
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.
0
Comment
Question by:YvonneG
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
8 Comments
 
LVL 5

Expert Comment

by:nathans
ID: 2544254
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.
0
 

Author Comment

by:YvonneG
ID: 2544264
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
0
 
LVL 5

Expert Comment

by:nathans
ID: 2544853
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.
0
Learn how to optimize MySQL for your business need

With the increasing importance of apps & networks in both business & personal interconnections, perfor. has become one of the key metrics of successful communication. This ebook is a hands-on business-case-driven guide to understanding MySQL query parameter tuning & database perf

 
LVL 4

Expert Comment

by:FRehman
ID: 2545199
please post the code at leo_faisal@yahoo.com then i will come to know what is exactly problem
0
 
LVL 1

Expert Comment

by:bigbadb
ID: 2545983
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
0
 
LVL 5

Expert Comment

by:nathans
ID: 2546300
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.
0
 

Expert Comment

by:anusha
ID: 2546579
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.


0
 
LVL 4

Accepted Solution

by:
FRehman earned 300 total points
ID: 2549733
this will run only on that case when idvtable data type is text
SQL = "Select IdvIdNum FROM IdentityValue WHERE IdvTable = 'PgeNum'"
0

Featured Post

Building an interactive eFuture classroom

Watch and learn how ATEN provided a total control system solution including seamless switching matrix switch, HDBaseT extenders, PDU, lighting control to build an interactive eFuture classroom.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Lease-to-own eliminates the expenditure of hardware replacement and allows you to pay off the server over time. Usually, this is much cheaper than leasing servers. Think of lease-to-own as credit without interest.
When it comes to security, close monitoring is a must. According to WhiteHat Security annual report, a substantial number of all web applications are vulnerable always. Monitis offers a new product - fully-featured Website security monitoring and pr…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…

670 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question