Solved

CFIndex problem

Posted on 2002-07-11
6
360 Views
Last Modified: 2013-12-24
Hi

I have the following tag in my form:

<CFINDEX COLLECTION="Applicant_Temp_2002"
  ACTION="Refresh"
  TYPE="Path"
  Extensions=".pdf,.doc,.rtf,.htm,.html,.txt">

When I run the form I get the following error:

Error occurred in tag CFINDEX

Error during SetCurrentDirectory

The error occurred while processing an element with a general identifier of (CFINDEX), occupying document position (8:1) to (12:46) in the template file C:\Inetpub\wwwroot\apsintranet\searchcoll.cfm.

I have tried using a fully qualified path for the Collection parameter, but I get the unhelpful message of an "unknown error in CFINDEX"

Any ideas?

John

0
Comment
Question by:jdthedj
  • 3
  • 2
6 Comments
 
LVL 5

Expert Comment

by:CFXPERT
ID: 7147555
try changing TYPE="path" to TYPE="file"
0
 
LVL 2

Expert Comment

by:tleish
ID: 7147592
You can also try using the URLPath parameter:

<CFINDEX COLLECTION="Applicant_Temp_2002"
 ACTION="Refresh"
 TYPE="Path"
 URLpath = "http://127.0.0.1/myfolder/"
 Extensions=".pdf,.doc,.rtf,.htm,.html,.txt">
0
 
LVL 3

Author Comment

by:jdthedj
ID: 7147615
Thanks for the replies:

URLPath doesn't make any difference.

TYPE="File" removes the error, but it has not refreshed the collection  What now?

John
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 2

Accepted Solution

by:
tleish earned 50 total points
ID: 7147641
Try using the KEY attribute and changing the value to the path of the directory that stores the collection Applicant_Temp_2002

=== START CODE EXAMPLE ===
<CFINDEX ACTION="Refresh"
     COLLECTION="Applicant_Temp_2002"
     KEY="C:\CFusion\Verity\Collections\Applicant_Temp_2002"
     TYPE="Path"
     Extensions=".pdf,.doc,.rtf,.htm,.html,.txt">
=== END CODE EXAMPLE ===
0
 
LVL 3

Author Comment

by:jdthedj
ID: 7147660
I am still getting the original error.
0
 
LVL 3

Author Comment

by:jdthedj
ID: 7147665
I tried again with the UNC path in the KEY parameter.  It now works.

Thanks!

John
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

This is a guide to setting up a new WHM/cPanel Server to be used for web hosting accounts. It is intended for web hosting company administrators and dedicated server owners. For under $99 per month (considering normal rate of Big Data Cetnters like …
Article by: kevp75
Hey folks, 'bout time for me to come around with a little tip. Thanks to IIS 7.5 Extensions and Microsoft (well... really Windows 8, and IIS 8 I guess...), we can now prime our Application Pools, when IIS starts. Now, though it would be nice t…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

744 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now