Solved

CFFLE write Error

Posted on 2014-10-02
9
156 Views
Last Modified: 2014-10-13
Experts,

I am getting the following error when I write a file (.html) to a shared network drive folder.

"An error occurred when performing a file operation WRITE on file \\folderpath\\First.html"
The cause of this exception was: java.io.FileNotFoundException: \\folderpath\\First.html"
Zachary-James Santos.html (The user name or password is incorrect).
The error occurred on line #."

I am using CF11.0 and the CF Application Server is running on an account created on the CF server.

Please let me know if you need any additional information and appreciate your help.

Thanks in advance
0
Comment
Question by:Tpaul_10
  • 5
  • 3
9 Comments
 
LVL 15

Expert Comment

by:myselfrandhawa
Comment Utility
can you show what the tag you are using i mean a code tag where you are using it, ike the cffile tag
0
 

Author Comment

by:Tpaul_10
Comment Utility
Here it is and the same code is working for CF9.0 and now I have CF 11 installed.
As I have mentioned CF Application Server is running on an account I have created on the server
and the network drive is mapped on the server.

<cffile action="WRITE" file="\\Abcd\folder1\Folder2\#subjectline#.html" output="#mystring#">

Open in new window


Thanks
0
 
LVL 15

Expert Comment

by:myselfrandhawa
Comment Utility
try like this :

<cfset subjectline = "fileme">
<cffile action="WRITE" file="\\Abcd\folder1\Folder2\#subjectline#.html" output="#mystring#">
0
 

Author Comment

by:Tpaul_10
Comment Utility
That is exactly what I am doing right now and here is the code. Is it related to CF11 upgrade and CF application running on a specific local user on the server?

<cfif refind("A|O",#MyQuery.ItemStatus#)>
	<cfset subjectline = "Active Item,  #MyQuery.ItemName#  Details">
<cfelse>
	<cfset subjectline =  "Deleted Item,  #MyQuery.ItemName#  Details">
</cfif>

Open in new window


Thanks
0
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 
LVL 15

Expert Comment

by:myselfrandhawa
Comment Utility
basically, it should work, if you remove comma and try again
0
 

Author Comment

by:Tpaul_10
Comment Utility
Here are couple of updates
1. The same code is working currently on CF 9.0 with no issues
2. The same code is working in CF 11.0 as well when I select the ColdFusion 11 Application Server under "Local System Account" and doesn't work when I chose ColdFusion 11 Application Server to run on an account I have created on the server.

Thanks
0
 
LVL 52

Accepted Solution

by:
_agx_ earned 500 total points
Comment Utility
Silly question, does that account have permission to access the UNC path? Try logging into the server using the account you created. Then try and access one of the UNC paths in windows explorer ie

          \\Abcd\folder1\Folder2\someFileNameHere.html
0
 

Author Comment

by:Tpaul_10
Comment Utility
Not a silly question AGX and you have helped with me many problems.

SInce the user is created locally on the server to run CF Admin and I am not sure whether I can give the permissions to that user on the mapped network drives on a different server. Thinking of a different routes, but will keep updated
0
 

Author Closing Comment

by:Tpaul_10
Comment Utility
Thanks AGX and I have created a new user to give the permission to the folder I am writing.

Thanks
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

There is an easy way, in .NET, to centralize the treatment of all unexpected errors. First of all, instead of launching the application directly in a Form, you need first to write a Sub called Main, in a module. Then, set the Startup Object to th…
Recently while working on a project I got a very annoying cfdocument has no body error message. I had never seen this error before. So I checked the code. The code was pretty simple; it was Just showing me the cfdocumnt tag and inside that tag a …
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.

772 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