Solved

CFIndex problem

Posted on 2002-07-11
6
364 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
[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
  • 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
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 
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

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

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

Most ColdFusion developers get confused between the CFSet, Duplicate, and Structcopy methods of copying a Structure, especially which one to use when. This Article will explain the differences in the approaches with examples; therefore, after readin…
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.
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

730 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