Solved

CFIndex problem

Posted on 2002-07-11
6
362 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
Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

 
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

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

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

When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

773 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