Solved

CFIndex problem

Posted on 2002-07-11
6
361 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

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.

Question has a verified solution.

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

Suggested Solutions

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 …
Introduction This article explores the design of a cache system that can improve the performance of a web site or web application.  The assumption is that the web site has many more “read” operations than “write” operations (this is commonly the ca…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…

861 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

23 Experts available now in Live!

Get 1:1 Help Now