Advertisement

[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

05/17/2005 at 11:18AM PDT, ID: 21427308
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.6

Query Of Queries runtime error. Can't convert the string to java type DOUBLE

Asked by sulzener in ColdFusion Application Server

Tags: query, runtime, error

Not sure if anyone can help me on this unless they can see the dump of the data, but I will try.  I have a Custom Tag that retrieves data from a secured external DB.  It returns the requested data back in the form of a query.  I then do a Query of Query to display the info in the needed format.  This works 90% of the time but every now an then I get the QofQ runtime error when trying to query over the returned data.  When I CFDUMP the returned (qryShpDetail), it looks exactly like it should.  Can anytime spot a problem?

<!--- Query Of Queries runtime error. - Can't convert the string to java type DOUBLE  --->
<cfoutput>

<cfset Session.OH.ORDNO = 123456>
<cfset Session.bgHeader = 'green'>
<cfset Session.ShowShipments = 'Y'>

<!--- CF_SELECT is a custom tag to retrieve data from external db. It returns data in query form --->
<CF_SELECT SUCCESS="yesOrdDetail" ERRORS="noOrdDetail" QUERY="qryOrdDetail">
      SELECT       ORDNO, LINEN2, PRDNO, QTYORD, QTYSHP
      FROM       #tblOrdDetail#
      WHERE       ORDNO = #Session.OH.ORDNO#
</CF_SELECT>      
<cfif session.ShowShipments IS 'Y'>
      <CF_SELECT SUCCESS="yesShpDetail" ERRORS="noShpDetail" QUERY="qryShpDetail">
            SELECT       ORDNO, LINEN3, SSTAT, SEQNO, QTYSHP, SHPDT, ROLLNO
            FROM       #tblShpDetail#
            WHERE       (ORDNO = #Session.OH.ORDNO#) and (SSTAT = 'N' or SSTAT = 'S')
      </CF_SELECT>
</cfif>

<cfif yesOrdDetail>
<TABLE WIDTH="670" BGCOLOR="#Session.bgHeader#" BORDER="0" CELLPADDING="0" CELLSPACING="1">
<TR><TD>
<TABLE WIDTH="670" BGCOLOR="white" BORDER="0" CELLPADDING="0" CELLSPACING="0">                                    
<TR CLASS="userinfo">                  
      <TD ALIGN="left" WIDTH="25"><strong>Line</strong></TD>
      <TD ALIGN="left">&nbsp;</TD>                                    
      <TD ALIGN="left"><strong>Product</strong></TD>                                                      <TD ALIGN="right"><strong>Ordered</strong></TD>                                                      <TD ALIGN="right"><strong>Shipped</strong></TD>      
</TR>
<TR>
      <TD colspan="13" style="border-top: 2 solid green; font-size:2px">&nbsp;</TD>                                                                  
</TR>      
<cfloop query="qryOrdDetail">
<TR>
      <TD ALIGN="left">#qryOrdDetail.LINEN2#</TD>
      <TD ALIGN="left">&nbsp;</TD>                                                
      <TD ALIGN="left">#qryOrdDetail.PRDNO#</TD>                                                      <TD ALIGN="right">#NumberFormat(qryOrdDetail.QTYORD, ",___")#</TD>                                          <TD ALIGN="right">#NumberFormat(qryOrdDetail.QTYSHP, ",___")#</TD>                              
</TR>
<cfif session.ShowShipments IS 'Y'>
<cfif yesShpDetail>
<TR>                                          
<TD colspan="5">
<TABLE WIDTH=100% BORDER="0" CELLPADDING="0" CELLSPACING="1">
      <TR>
            <TD WIDTH="25">&nbsp;</TD>      
            <TD ALIGN="left">&nbsp;</TD>                                                                  <TD WIDTH="70" ALIGN="left"><strong>Roll No.</strong></TD>      
            <TD ALIGN="left">&nbsp;</TD>                                                                  <TD ALIGN="left"><strong>Ship Date</strong></TD>
            <TD ALIGN="right"><strong>Ship Qty</strong></TD>                              
            <TD ALIGN="right"></TD>                                                      
      </TR>

      <!--- <CFDUMP VAR=#qryOrdDetail#/><br> --->
      <!--- <CFDUMP VAR=#qryShpDetail#/><br> --->
      <!--- <cfabort> --->
      <!--- THIS IS THE QUERY THAT BOMBS --->
      <cfquery name="qryShipments" dbtype="query">
            Select            *
            From              qryShpDetail
            Where             LINEN3 = #qryOrdDetail.LINEN2#
      </cfquery>
                                                      
      <cfloop query="qryShipments">
      <TR>
            <TD WIDTH="25">&nbsp;</TD>      
            <TD ALIGN="left">&nbsp;</TD>                                                                  <TD WIDTH="70" ALIGN="left">
                                <cfif trim(qryShipments.ROLLNO) IS NOT "">#qryShipments.ROLLNO#
                                <cfelse>&nbsp;</cfif></TD>                                                                  <TD ALIGN="left">&nbsp;</TD>                                                                  <TD ALIGN="left">#DateFormat(qryShipments.SHPDT, "mm/dd/yy")#</TD>
            <TD ALIGN="right">#NumberFormat(qryShipments.QTYSHP, ",___")#</TD>
            <TD ALIGN="right"></TD>                                                            </TR>                                                
      </cfloop>
</TABLE>
</TD>
</TR>            
<cfelse>
<TR>                                          
      <TD colspan="5">
            <TABLE WIDTH=100% BORDER="0" CELLPADDING="0" CELLSPACING="1">
            <TR>
            <TD ALIGN="left">Shipment lines do not exist for this order.</TD>                                          <TD ALIGN="right"></TD>                                                                  </TR>      
            </TABLE>
      </TD>
</TR>      
</cfif>
</cfif>

</cfloop>
</TABLE>      
</TD></TR>                                          
</TABLE>
<cfelse>
No order lines for #Session.OH.ORDNO#<br>
</cfif>      
</cfoutput>View the Solution FREE for 7 Days
 
Keywords: Query Of Queries runtime error. Can…
 
Loading Advertisement...
 
[+][-]05/17/05 11:26 AM, ID: 14021270

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]05/17/05 11:34 AM, ID: 14021320

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05/17/05 11:54 AM, ID: 14021471

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05/17/05 11:55 AM, ID: 14021476

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05/17/05 01:16 PM, ID: 14022196

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: ColdFusion Application Server
Tags: query, runtime, error
Sign Up Now!
Solution Provided By: mrichmon
Participating Experts: 3
Solution Grade: A
 
 
[+][-]05/17/05 01:20 PM, ID: 14022222

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05/18/05 04:58 AM, ID: 14026165

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05/18/05 06:01 AM, ID: 14026605

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20090114-EE-VQP-51