Solved

CFFLE write Error

Posted on 2014-10-02
9
160 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:Gurpreet Singh Randhawa
ID: 40357518
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
ID: 40357563
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:Gurpreet Singh Randhawa
ID: 40359059
try like this :

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

Author Comment

by:Tpaul_10
ID: 40359856
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
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 
LVL 15

Expert Comment

by:Gurpreet Singh Randhawa
ID: 40360662
basically, it should work, if you remove comma and try again
0
 

Author Comment

by:Tpaul_10
ID: 40360688
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
ID: 40362840
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
ID: 40372023
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
ID: 40378830
Thanks AGX and I have created a new user to give the permission to the folder I am writing.

Thanks
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Batch, VBS, and scripts in general are incredibly useful for repetitive tasks.  Some tasks can take a while to complete and it can be annoying to check back only to discover that your script finished 5 minutes ago.  Some scripts may complete nearly …
I spent nearly three days trying to figure out how incorporate OAuth in Coldfusion for the Eventful API. Hopefully, this article will allow Coldfusion Programmers to buzz through the API when they need to. Basically, what this script does is authori…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
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.

920 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

14 Experts available now in Live!

Get 1:1 Help Now