Filepath variable not working

Hi I have a page builder form and when the user is finished building her page, she can click "Write File" and the file will actually be saved to a particular folder as an html file.  All this worked fine until I wanted to try and save these new files to a network shared folder so that our employer could copy the files over to his pc and review them before uploading to the remote server.
Here is the new file path variable and the path I assigned to it.
<!--- Set Path and File Name --->
<cfset fileExtension = ".html">
<cfset pathToFile = "C:\webdes-pc\newPageFiles">
<cfset fileToWrite = pathToFile & SESSION.fileName & fileExtension>
Here is the original code that worked perfectly.
<!--- Set Path and File Name --->
<cfset fileExtension = ".html">
<cfset pathToFile = "C:\ColdFusion8\wwwroot\replacememntlightbulbs\pageBuilder\">
<cfset fileToWrite = pathToFile & SESSION.fileName & fileExtension>
Is there a reason why I could not write a file to a networked folder? I would have thought there wouldnt have ben a problem with that idea. Thanks for any help in advance!

function(){return A.apply(null,[this].concat($A(arguments)))}
ilssac wrote:
<cfset pathToFile = "C:\webdes-pc\newPageFiles\">
That worked?  That looks like a mapped folder and those usually do not work because ColdFusion runs as a different user then the whomever might have mapped the folder?
What usually works is a UNC path more like "\\webdes-pc\newPageFiles\" after ColdFusion has been configured to run as a domain user that has the permissions to that network path rather than the default "localSystem" user which usually has NO network permissions.
Actually you might be right. I think I have a folder named webdes-pc in my C drive as well. I had the file path set as \\webdes-pc\newPageFiles\ as you suggested before, but might have not had the last backslash on there either. So I think when I get to work tomorrow I will try this path again. Thanks!

Similar Messages

  • (Substitution Variables) not working in "SQL Developer" Environment !!!!!!!

    this photo illustrate how that (Substitution Variables) not working in "SQL Developer" Environment :-
    http://www.imagehosting.com/show.php/1555180_ddddd.PNG.html
    any solve for this problem ?????!!!!!!!!!!

    There is a dedicated forum for SQL Developer related questions
    SQL Developer
    I should admit however, that query you have provided ( with substitution variables) works like a charme in my environment (SQL Developer 1.1.0.23 build 23.64)
    Best regards
    Maxim

  • Payload variables not working

    Hi all,
    I've been trying to use Profile Manager to specify user e-mail accounts on Mac devices (eg, MacBooks) but I've been encountering a couple of problems. I've tried searching around and didn't find any answers.
    First of all I'm running the latest Mountain Lion Sever. All clients have up-to-date Mountain Lion too.
    Problem 1: Payload variables not working
    I'd like to automatically setup Gmails on the MacBooks. Now the users' email addresses are already set to their gmail accounts. So all I have to be able to do is use the %email% payload variable as the username when I go set up the (IMAP) mail accounts in the Profile Manager. However, when I download the profile to the device, it does not convert the payload variable; ie, it tries to log into gmail with the username '%email%'. Other payload variables do not work either.
    Oddly enough, the payload variables work as they should with iOS devices...
    Problem 2: Profiles stuck on 'Sending'
    After enrolling the devices, it seems a hit and miss whether the MacBook downloads the correct profiles from the server... Is there a way to force on the MacBook to update/refresh its profiles? Also, when I update profiles within Profile Manager, the changes are pushed to iOS devices fine but not to MacBooks. Those tasks are all stuck on Sending... Logging in, restarting etc. sometimes helps but not always... Is there a reason why?
    Thanks in advance.
    P.S. Sorry I posted in the wrong forum first...

    Same problem here. Some profiles are being sent, some are stuck on the server. I have no idea why this difference.
    Any luck solving the issue?

  • Payload variables not working & Profiles stuck on 'Sending'

    Hi all,
    I've been trying to use Profile Manager to specify user e-mail accounts on Mac devices (eg, MacBooks) but I've been encountering a couple of problems. I've tried searching around and didn't find any answers.
    First of all I'm running the latest Mountain Lion Sever. All clients have up-to-date Mountain Lion too.
    Problem 1: Payload variables not working
    I'd like to automatically setup Gmails on the MacBooks. Now the users' email addresses are already set to their gmail accounts. So all I have to be able to do is use the %email% payload variable as the username when I go set up the (IMAP) mail accounts in the Profile Manager. However, when I download the profile to the device, it does not convert the payload variable; ie, it tries to log into gmail with the username '%email%'. Other payload variables do not work either.
    Oddly enough, the payload variables work as they should with iOS devices...
    Problem 2: Profiles stuck on 'Sending'
    After enrolling the devices, it seems a hit and miss whether the MacBook downloads the correct profiles from the server... Is there a way to force on the MacBook to update/refresh its profiles? Also, when I update profiles within Profile Manager, the changes are pushed to iOS devices fine but not to MacBooks. Those tasks are all stuck on Sending... Logging in, restarting etc. sometimes helps but not always... Is there a reason why?
    Thanks in advance.

    Same problem here. Some profiles are being sent, some are stuck on the server. I have no idea why this difference.
    Any luck solving the issue?

  • BW hierarchy variable not working in Crystal Report 2008

    Hi,
    I have created BEx 7.0 report which has hierarchy on 0customer object, the report is working fine whith hierarchy variable. I have created Crystal Report by using this query as source. I have followed below link to create grouping to get data through hierarchy variable.
    http://wiki.sdn.sap.com/wiki/display/BOBJ/BWHierarchiesinCrystalReports
    But report does not work for hierarchy variable and report is blank. When I give filter of child node which has actual data then I get report output. For ex.
    Below hierarchy for 0customer
    11396
         - 737007
         - 123456
    When I run report for 11396 then no data display but when I run 737007 child node I get report output but with blank group name.
    Can anyone came accross this issue. Please guide me . Thanks in advance.

    Thanks Ingo for your reply..
    The word filter means, I have hierarchy node variable in the BEx report that has become Parameter in CR. When I give hierarchy node variable value of parent node then there is not data display but for the child node I get the data.
    For ex. In the info cube there is data for 730707 customer but in the customer hierarchy the parent node of 73707 is 11396. I am giving 11396 in the variable pop screen for hierarchy variable. I do not see any data but for 73707 I get data.
    User does not know 73707, he always enter 11396 customer no. and he gets data in BEx query that is source of CR. but crystal report is not showing data for 11396.
    One more point I want to tell here, I am saving CR at my local system not to SAP BW server.
    Hope this clear my issue.
    Harish Swami
    Edited by: hswami27 on Jan 31, 2011 8:17 PM

  • Row Level Security - Data filter - Roles Variable Not working in OBIEE 11.1.1.7.1

    Hi all,
    Previously, we were using OBIEE 11.1.1.5.0 and we were able to assign users to application roles by using the initialization block to assign the ROLES session variables.
    1. My USER_SECURITY table in Oracle database:
    USER_NAME | USER_ID | ROL
    user1       | 1723    | GobalDataRole
    user2       | 1739    | GobalDataRole
    user3      | 1743    | GobalDataRole
    2. The SQL query in my session initialization block:
    select USER_NAME, USER_ID, ROL
    from USER_SECURITY
    where USERNAME = ':USER'
    3. The row-wise initialization option is not checked.
    4. In the Oracle Enterprise Manager Fusion Middleware Control, we created new application role: GobalDataRole and sync with rpd.
    5. The GobalDataRole is used in the RPD to filter the data under permissions --> data filter. GobalDataRole only has access to Country A data.
    6. Result: under my account, also in rpd Manage --> Sessions, user variable details
    User_name , user_id & Rol variable is working fine as expected,
    When we log in as user1, we can see in My Account, user assigned to: BI Consumers; Authenticated Role; GobalDataRole
    When we log in as user2, we can see in My Account, user assigned to: BI Consumers; Authenticated Role; GobalDataRole
    When we log in as user3, we can see in My Account, user assigned to: BI Consumers; Authenticated Role; GobalDataRole
    User1, User2, and User3 are able to see the data correctly according the their data access setup.
    Now, we using OBIEE 11.1.1.7.1 and using the same method, but we not able to assign users to application roles by using the initialization block to assign the ROLES session variables anymore.
    Result:
    User_name & user_id variable is working fine as expected, but the ROl variaible is not capturing the DB value,
    When we log in as user1, we can see in My Account, user assigned to: BI Consumers; Authenticated Role
    When we log in as user2, we can see in My Account, user assigned to: BI Consumers; Authenticated Role
    When we log in as user3, we can see in My Account, user assigned to: BI Consumers; Authenticated Role
    User1, User2, and User3 can see all data (which is wrong) because they are not assigned to the correct application role that sets the data restriction/filter.
    Has anyone encountered the same issue? Any advice on how to solve this?
    Thanks in advance!
    Satheeshkumar P

    Thanks user10615659     ,
    - Yes the variable ROLES available in OBIEE 11.1.1.7.1
    - Tested the init block and variables in offline rpd its working as expected.
    - In online rpd, except ROLES and GROUP variable remaining variables working fine.
    - Verified log file in both online and offline init block testing - the init block execution is successful.
    Thanks

  • Text Variable not working correctly

    In CS3 I could create a TEMPLATE (.indt) with the "creation date" text variable in it and when I opened it it would have the CURRENT DATE (the date the new file was generated from the template) . In CS4 it opens with the date the TEMPLATE was MADE and not the current date (the day the new file was generated). I need the template to open with the current date (the day the template was opened). I tried using the "modification date" variable which works the FIRST time but if I open it the next day the date changes. I need the date to remain the same as the creation date. Does this make sense? Why did Adobe change the behavior of this? Please help.
    -John Streeter

    Hi Rakesh,
    Just curious what is the purpose of creating a hidden column as suggested? Anyway, I have created it but nothing changes.
    Allow me to clarify my situation again.
    I have three columns:
    1. Actual This Year
    Type: Selection
    2. Actual Last Year
    Type: Selection
    3. % of Actual This Year / Actual Last Year
    Type: Formula
    Definition: (Actual This Year) %A (Actual Last Year)
    All columns use &0T_FYEAR& as text replacement variable. As such, all title would have year text.
    The first two columns have been restricted with Fiscal Year variable, 0P_FYEAR.
    1. Actual This Year
    0P_FYEAR
    2. Actual Last Year
    0P_FYEAR - 1
    Upon executing the query, I got the first two columns displaying their titles right, but the third column does not.
    For example, let's assume I entered 2008 for 0P_FYEAR variable, the columns would display the following titles:
    1. 2008
    2. 2007
    3. &0T_FYEAR&
    I need the third column to display current fiscal year i.e. 2008 but it does not.
    Appreciate your help!

  • Bind Variable NOT working in APEX 4.0 within charts SQL

    All,
    I had a chart working fine in 3.2 which had a bind variable like :P11_EMP_NAME, when I created the same chart in 4.0 using the same query it did not work, until I changed the variable to v('P11_EMP_NAME'). Does anyone have experienced the same behaviour?
    Thanks
    Venkat

    Hi Deb,
    Both of your queries are using multi-series syntax i.e. returning more than one series of data, therefore your generated chart is actually generating 6 series rather than just the two that you're aiming for. You could try changing your queries to ensure they each generate a single series of information, which would then result in the extra Y-axis being applied to your "Series 2". Here's an example of what I mean:
    Series 1:
    select null link, label, value from (
    select 'test' label, 1 value from dual
    union all
    select 'test2' label, 2 value from dual
    union all
    select 'test3' label, 3 value from dual
    )Series 2:
    select null link, label, value from (
    select 'test' label, 100 value from dual
    union all
    select 'test2' label, 200 value from dual
    union all
    select 'test3' label, 300 value from dual
    )I hope this helps.
    Regards,
    Hilary

  • Evaluate variable Not working properly

    Hi
    When i used Evaluate variable , It is having list of Operator (=,<>,IN etc).
    When is specified operator '=' and give one value its working properly.
    eg. Select name from table ;
    O/p = AA
    In ODI , Operator =AA its working .
    But when i specified Operator "IN" and giving value ('AA','AB') Or value (AA,AB) its not working propelry.
    Any other operator or any other option to use IN operator.
    Thanks
    Ashwini

    Hi,
    I never saw that "IN" woks!
    There is a workaround, use a at variable refresh tab a command like: (you can refresh the variable from itself)
    select case when '#project_code.my_var' in ('ab','a','x')
    then 'OK'
    else 'KO'
    end
    from dual
    put it as refresh step and add a new instance as evaluate "= OK"
    Does it help you?
    Edited by: Cezar Santos on 05/02/2009 08:59

  • I/o server shared variable not working in deployment system ( error no-1950679034 (0x8BBB0006) (Warning))

    Hello ,
             am using shared variable from opc client in labview when am run a exe file at development system its working fine but when am running it in deployment system its not working am using same configuration file in opc server at development and deployment system error -1950679034 (0x8BBB0006) (Warning)

    First Root cause needs to be identified before any actions.
    I would suggest first check if you can access the shared variable hosted in PC from RT using other ways like using SVE API (Logos and PS protocols, Datasocket etc..)
    Check if antivirus or firewall is playing...
    Check the same experiment with some other PC if you can.
    You can also try creating another Shared Variable in RT and binding the same to the PC and try to access it...
    Since you have did all the reinstallations already
    Best Regards,
    Vijay.

  • Query key Date Variable not working

    Hi Folks -
         I am coming across an issue with which some of you might be able to help me. I have a time dependent master data object which I've marked as a datatarget and have created a report on it. I wanted to give the user an option of specifying the key date and hence have created a variable in the query properties for the key date. This variable is of the type SINGLE VALUE, MANDATORY, USER ENTRY and CAN BE CHANGED DURING QUERY NAVIGATION.
         Now my issue is that even though I enter a specific key date, the query is not pulling the records according to the key date. But instead if I use the option of specifying a particular date (instead of a variable in query properties), the query is running fine!!! Can someone please let me know why this is happening? Why is the query working fine when I mention a single constant value but not when I use a variable? Thanks for your help in advance.

    hi
    This clearly shows your variable is not working fine
    So in RSRT transaction debug using your variable
    See in every step whether the variable is working properly
    Assign points if useful
    Thanks
    N Ganesh

  • HFM Rules - Variable not working

    Hi,
    I am trying to setup a rule to calculate using balances from other scenarios. Instead of writing 100's of rows of rules I have created a variable. For some reason the variable is not working as it should. Below is what I have
    If value="<Entity Currency>" or value = "<Entity Curr Total>" then
    'Define prior forecast variable "PrForecast"
    If pov_scenario = "S#JANFCST" then CrForecast = "S#JANFCST" and PrForecast = "S#BUDGETV1"
    ElseIf pov_scenario = "S#FEBFCST" then CrForecast = "S#FEBFCST" and PrForecast = "S#JANFCST"
    ElseIf pov_scenario = "S#MARFCST" then CrForecast = "S#MARFCST" and PrForecast = "S#FEBFCST"
    ElseIf pov_scenario = "S#APRFCST" then CrForecast = "S#APRFCST" and PrForecast = "S#MARFCST"
    ElseIf pov_scenario = "S#MAYFCST" then CrForecast = "S#MAYFCST" and PrForecast = "S#APRFCST"
    ElseIf pov_scenario = "S#JUNFCST" then CrForecast = "S#JUNFCST" and PrForecast = "S#MAYFCST"
    ElseIf pov_scenario = "S#JULFCST" then CrForecast = "S#JULFCST" and PrForecast = "S#JUNFCST"
    ElseIf pov_scenario = "S#AUGFCST" then CrForecast = "S#AUGFCST" and PrForecast = "S#JULFCST"
    ElseIf pov_scenario = "S#SEPFCST" then CrForecast = "S#SEPFCST" and PrForecast = "S#AUGFCST"
    ElseIf pov_scenario = "S#OCTFCST" then CrForecast = "S#OCTFCST" and PrForecast = "S#SEPFCST"
    ElseIf pov_scenario = "S#NOVFCST" then CrForecast = "S#NOVFCST" and PrForecast = "S#OCTFCST"
    ElseIf pov_scenario = "S#DECFCST" then CrForecast = "S#DECFCST" and PrForecast = "S#NOVFCST"
    End if
      If Right(pov_Scenario,4) = "FCST" then
       HS.EXP "A#YVR_SALES" &Dync3& ".C3#YVR_CY_IMP = A#YVR_CUSTPRICE_TOT.S#" &CrForecast & ".Y#CUR.P#CUR" &Dync3& ".C3#YVR_CY_IMP"
       HS.EXP "A#YVR_SALES" &Dync3& ".C3#YVR_CY_POT = A#YVR_CUSTPRICE_TOT.S#" &CrForecast & ".Y#CUR.P#CUR" &Dync3& ".C3#YVR_CY_POT"
       HS.EXP "A#YVR_SALES" &Dync3& ".C3#YVR_PY = A#NET_SALES.S#Actual.Y#PRIOR.P#CUR.W#YTD" &Tops
       HS.EXP "A#YVR_SALES" &Dync3& ".C3#YVR_CY_FCST = A#NET_SALES.S#" &CrForecast & ".Y#CUR.P#CUR.W#YTD" &Tops
       HS.EXP "A#YVR_SALES" &Dync3& ".C3#YVR_PR_FCST = A#NET_SALES.S#" &PrForecast & ".Y#CUR.P#CUR.W#YTD" &Tops
    The rule loads fine without any error but after the calculation is performed the values are only pulled from the POV_Scenario not the scenario referenced in the variable. Any suggestion on how this could be fixed would be greatly appreciated.
    Thanks

    Hi,
    You have already defined CrForecast = "S#JANFCST"
    In that case, your right hand side should just be A#YVR_CUSTPRICE_TOT." &CrForecast & ".Y#CUR.P#CUR" &Dync3& ".C3#YVR_CY_IMP" and not A#YVR_CUSTPRICE_TOT.S#" &CrForecast & ".Y#CUR.P#CUR" &Dync3& ".C3#YVR_CY_IMP"
    Regards,
    S

  • Shared variables not working on PC

    Can anyone tell from the attached screen shot, why my one shared variable is not working with the labview application I'm running on my PC. I set the variable to 48 (I thought), and yet in the NI Distributed System Manager the value doesn't changed. 
    Solved!
    Go to Solution.
    Attachments:
    shared_var_not_working.JPG ‏255 KB

    Its not likely to be a deadband problem if you haven't touched the settings. I would check it out just in case though. In the project window, right click on the shared variable>>properties and select Update Deadband. See attached image. If it's not this, I shall have to think some more about what else could cause this.
    As for ensuring it works when setting it from DSM...from your screenshot you appear to have a VI that writes to the SV. Change the code ore create a new VI so that it reads the SV and then double check that if you change the value in DSM, the VI also reads back the updated value. It may be that the number changes in DSM but does not update the SV in the VI - this would indicate a problem with the shared variable engine or the deployed variable library...Reboot PC and retry... if the problem persists let me know or attach the SV library!
    Regards,
    Dave
    Senior Software Engineer
    www.Adansor.com
    Attachments:
    SV_deadband.PNG ‏8 KB

  • Variable not working with IF Statement

    I'm having issues creating a Variable that examines a Date field called Customer Need Date in which, depending on the value of this Date I wish to either return "N/A" or the [Customer Need Date] less the Current Date (which is today's date). There are three scenario's that can appear in the [Customer Need Date], it will either be: blank (in which I want it to return "N/A"), have a value of 1/1/99 (in which I want it to return "N/A"), or have any other date (in which I want it to return the number of days between the Current Date and the Customer Need Date).
    My initial attempt at creating the variable which works fine (but doesn't remove the 1/1/99) is:
    =If(IsNull([Customer Need Date]);"N/A";DaysBetween([Current Date];[Customer Need Date]))
    But now I want to also show "N/A" if the [Customer Need Date] is equal to 1/1/99.  I've tried two different ways (below) both of which do not work.
    =If(IsNull([Customer Need Date]);"N/A";if([Customer Need Date]="1/1/99";"N/A";DaysBetween([Current Date];[Customer Need Date])))
    This gives me an error at pos 63, the '=' function uses an invalid data type.
    I also tried these (two different ways both with same error message):
    =if([Customer Need Date]InList("1/1/99";" ");"N/A";DaysBetween([Current Date];[Customer Need Date]))
    and
    =if([Customer Need Date]InList("1/1/99";" "))Then("N/A")Else(DaysBetween([Current Date];[Customer Need Date]))
    Both returned this error, The "InList" function uses an invalid data type (pos 31)
    **Please note both Customer Need Date and Current Date are Variables and have square parenthesis around them but I am unable to do so as it creates a hyperlink in this format.
    Any help to make this formula work would be greatly appreciated!!
    Thanks
    -Trevor

    you cant compare a date with a string.
    use:
    =If(IsNull(Customer Need Date);"N/A";if(Customer Need Date=ToDate("01/01/99";"MM/dd/yy");"N/A";DaysBetween(Current Date;Customer Need Date)))

  • Variable not working with APD

    Greetings,
    Have the following setup:
    - am trying to run a query in apd  as a source and output to a local file- want to only extract invoices which were billed  the last 7 days
    - in query designer, use a restriction for biling date --> use current calendar day(SAP exit)  variable to pull the last 7 days which were billed
    - when I run the query the report looks fine in analyzer - only pulls the last 7 days
    - when I run the apd, every billed dated for a business partner is displayed
    Why the variable only works when running the analyzer and not the apd?
    Any suggestions is greatly appreciated.
    B.A.

    Did you assign the query to the APD first an then added the variable to the query??? In that case, remove the query from the APD and re-assign to it.
    or try doing it in the Transformation of APD
    http://help.sap.com/saphelp_nw70/helpdata/en/6a/c70b40c6c01961e10000000a155106/content.htm

Maybe you are looking for

  • TooManyObjectsException: JBO-25013 but with autosubmit

    Hi all! I have this problem with my dialog ADF form. I have two combos with districts and counties. When i have autosubmit on create it gives me this error when i select some district to filter my counties table. I don't want him to insert on combo s

  • MacBooks 2012 lid should be closed but still in use. Please advice how.

    Hi, I like to use Skype by using an external webcam and also using the apple tv in order to view the display on TV. It is working ok but I also like to close the display of the macbook pro 2012. How can I do so? Please advice step by step. Please do

  • Using MySql and PHP with Dreamweaver on a Mac

    Hello all, As always if the answers to these questions are obscenely obvious please humour me. I use XHTML and CSS in my websites and realise that it is time that I dabbled with SSI. So I've started using PHP. However, I have been following the insta

  • I can't find some apps in iTunes store

    I can't find some apps in iTunes app store when searching for those apps on an iPad.  I can find them when searching on an iPhone.  Why is this happening?

  • IPhone mail download problem

    My brand new 3GS iphone has stopped downloading one of my Comcast email accounts. I have talked to iPhone support and am now talking to Comcast. Nobody seems to know why or have a solution. Here are the details: Midday Friday I noticed that I wasn't