?
Solved

CFFLE write Error

Posted on 2014-10-02
9
Medium Priority
?
174 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
[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
  • 5
  • 3
9 Comments
 
LVL 16

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 16

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
Application Discovery Service in AWS

In the era of the cloud, customers migrating away from their existing on-premise infrastructure. This requires lots of planning, strategies, and effort to identify their existing resources and determine how best to migrate.  Datacenter migrations happen in four phases -

 

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
 
LVL 16

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 2000 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

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

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

Active Directory replication delay is the cause to many problems.  Here is a super easy script to force Active Directory replication to all sites with by using an elevated PowerShell command prompt, and a tool to verify your changes.
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
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…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Suggested Courses

771 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