Office 365 App using NAPA - "The system cannot find the file specified. (Exception from HRESULT: 0x80070002)"

Hello,
I am creating an app using NAPA tool in Office 365. I am trying to "Add an attachment" to a custom list item using SPServices. When I am using my code  (jquery code) in content editor web part on a page, its working fine, but when I am adding
the same code in an app, its giving me error :  "The system cannot find the file specified. (Exception from HRESULT:
0x80070002)" - 500 Internal Server error.
(function () {
// This code runs when the DOM is ready and creates a context object which is
// needed to use the SharePoint object model
$(document).ready(function () {
//alert('In doc ready');
$('.attachmentButton').change(function(event){
var listName = 'UploadTest',
itemId = 2;
handleFileChange(listName,itemId,event.target.files);
function handleFileChange(listName,itemId,files){
alert('In handleFileChange :=' + listName + "" + itemId + "" + files[0]);
alert('files.length :=' + files.length);
var filereader = {},
file = {},
i=0;
//loop over each file selected
for(i = 0; i < files.length; i++) {
alert('In for loop');
file = files[i];
filereader = new FileReader();
filereader.filename = file.name;
alert('filereader.filename :=' + filereader.filename);
filereader.onload = function() {
var data = this.result;
var n=data.indexOf(";base64,") + 8;
//alert('n :=' + n);
//removing the first part of the dataurl give us the base64 bytes we need to feed to sharepoint
data= data.substring(n);
//alert('data :=' + data);
alert('Above SPServices this.filename :=' + this.filename);
$().SPServices({
operation: "AddAttachment",
listName: listName,
asynch: false,
listItemID:itemId,
fileName: this.filename,
attachment: data,
completefunc: function (xData, Status) {
console.log('attachment upload complete',xData,status);
alert('Status :=' + Status);
if (Status.toLowerCase() == "error"){
alert(xData.responseText);
alert(xData.status);
alert(xData.statusText);
filereader.onabort = function() {
alert("The upload was aborted.");
filereader.onerror = function() {
alert("An error occured while reading the file.");
//fire the onload function giving it the dataurl
filereader.readAsDataURL(file);
alert(xData.responseText); - gives error - " "The system cannot find the file specified. (Exception from HRESULT: 0x80070002)""
alert(xData.status); - gives error - "500"
alert(xData.statusText); - gives error - "Internal server error"
Server Publishing infrastructure and Server publishing features are activated on site collection and site respectively.
Any suggestions, why I am getting this error in NAPA ?

Hi,
According to your post, my understanding is that you have an issue about adding attachments to list items in app.
To add attachment to list item in the host web, we should first get the list and the list items from the host web, then add the attachments to the list items.
There are two articles about retrieve the list and list items in the host web, you can refer to them.
http://www.dotnetcurry.com/showarticle.aspx?ID=1028
http://www.c-sharpcorner.com/UploadFile/93cb27/retrieve-sharepoint-app-host-web-list-items-in-sharepoint-ho/
What’s more, we can also use the REST API to achieve the same scenario.
http://www.c-sharpcorner.com/UploadFile/472cc1/add-attachments-to-list-items-in-sharepoint-2013-using-rest/
Thanks & Regards,
Jason
Jason Guo
TechNet Community Support

Similar Messages

  • I use Microsoft Office Professional Plus 2010, when clicking a link in Outlook I always get a General Failure box stating 'The system cannot find the file specified' yet it still goes to the specified page. Any ideas on how to resolve this

    I use Microsoft Office Professional Plus 2010, when clicking a link in Outlook I always get a box stating
    General Failure. The URL was "http:// etc etc".The system cannot find the file specified.
    Yet it still goes to the specified page. Any ideas on how to resolve this

    I am having the exact same problem with Windows 7 Professional. Out of the blue, this issue just started a few months ago when running my monthly Windows Backup where I have used a USB drive for the last 3 years, and never ever had this issue before. Most
    of the solutions listed on the Microsoft websites and answers deal with
    "Restore" functions, not the
    "Backup" itself. I have 3 folders being skipped during the backup.
    So I went and changed the Backup from "let Microsoft choose files, directories, etc" to "Let me choose". I included the files and folders that were being skipped, and ran the "Backup" again, and got the same error message,
    but the files that were skipped the first time were "Backed up" finally. This issue is somehow related to my "Libraries"?
    The 3 backup problems are:
    Backup encountered a problem while backing up file C:\Windows\System32\config\systemprofile\My Audio Books\Audio Book Recordings. Error:(The system cannot find the path specified. (0x80070003))
    Backup encountered a problem while backing up file C:\Windows\System32\config\systemprofile\My Audio Books\Audio Book CD Label-Cover Art. Error:(The system cannot find the path specified. (0x80070003))
    Backup encountered a problem while backing up file C:\Windows\System32\config\systemprofile\My Audio Books\Audio Book MP3 Tag Art. Error:(The system cannot find the path specified. (0x80070003))
    Did a "checkdisk" - no problems. Ran a program to fix registry - no problems. All updates up to date. I guess I could eliminate these folders from the Backup folders in the
    Library, and just choose them under the "Users" locations, and be done with it. But I really want to understand this, and fix it. This is within Windows 7 and may be related to Windows Media Player or
    some recent Windows update.  Thanks.

  • App-v 4.6 The system cannot find the path specified. Error code: 4625DD4-07D0082C-00000003

    Below is our environment,
    App-v 4.6 SP2 Client installed on Windows Server 2008 R2 and managed with SCCM 2012 R2. 
    This server is part of Terminal Server Farm which contains two members.
    Only one user is getting the error when launching one application. It doesn't happen when he launches other applications
    The system cannot find the path specified.
    Error code: 4625DD4-07D0082C-00000003
    corrupt cp file detected ('Q:\AppName\osguard.cp'). osguard cp file, NO CORRECTIVE ACTION TAKEN
    I have renamed the Application's userdata in both roaming and local appdata.
    I have researched quite a bit about this and haven't anything solid. Most of the discussions suggest to clear the .fsd file and let the whole app layer re installed. 
    I am hesitant to do that as this is happening for only one user and for particular app.

    you can try to 'repair' the application: Ask the user to close all applications of that package, then use the App-V client MMC (sftcmc.msc) to locate the application entry. Right-click and 'repair'. This has to be done in the user's context/session
    Falko
    Twitter
    @kirk_tn   |   Blog
    kirxblog   |   Web
    kirx.org   |   Fireside
    appvbook.com

  • Windows 7 Backup "The System cannot find the path specified" - Error Code 0x80070003

    I'm having severe problems backing up my own machine to a share on our
    FILE-SERVER as \\FILE-SERVER\Backup\
    I have already backed up another PC successfully using exactly the same settings I have used on my own PC. So I presume it is nothing to do with the
    FILE-SERVER or the Backup settings.  It has to be something to do with what I'm trying to backup from my machine.
    First some background.
     This exercise all began when the Windows Server 2008 r2
    O/S fell over on one of our Servers. I tried reinstalling the O/S several times, without success. In the end I grabbed another drive and re-built the O/S. I then had problems promoting it to a Domain Controller on the network.
     In the end I renamed the Server from FILESERVER
    to FILE-SERVER.
    We routinely share four folders on what is now
    FILE-SERVER:
    \\FILE-SERVER\Backup
    - a Folder where backups from all other machines are written, so that they will be backed up with the Server
    \\FILE-SERVER\Company
    - holds all our Company data
    \\FILE-SERVER\GEM
    - this is the application folder for our own database
    \\FILE-SERVER\Install
    - holds all Install files for the software we use
    These are all held on a RAID 1 Array that is separate from the System Disk that fell over.
    Prior to the Server falling over, I had Backup working fine on my machine. 
    On my Notebook PC I had made these shared folders 'Available Offline', so that I still had everything available to me when I was out of the office. They were
    of course shared as \\FILESERVER\... not \\FILE-SERVER\...
    Having got the Server up and going again, I began to get the Backups from the Windows 7 Client PC's going again.
     I started with a Desktop, which of course did not have any Offline Files.
     That proved relatively straight-forward.
    I then started with my machine. Initially I did not make the above shared folders 'Available Offline'. I set up my Backup using exactly the same settings that
    had worked OK on the desktop machine. But when I ran the backup I got:
    The System cannot find the path specified, Error Code 0x80070003
    I tried all sorts of things to get it to work:
    I restored the system to the earliest point possible,
    I ran chkdsk,
    I defragged the drive
    All to no avail, so I tried backing up:
    with and without a system image,
    reducing the backup to a single folder, 
    a single Folder with only one .txt file in it, 
    making the Folders 'Available Offline' again.
    Nothing made any difference.
     In the end I looked in the Sync Center to look at the Offline Files Folder.
     Under Mapped Network Drives I discovered I still had the Files and Folders from
    \\FILESERVER.  In their Shortcut Menu 'Always Available Offline' was greyed out. So I deleted the Offline Copies. This deleted the Files in the Folders but not the Folders.
    Since I could find no way of deleting the old Mapped Network Drives, I decided I'd painted myself into a corner by renaming the Server.
     So I bit the bullet and re-installed my Notebook too.  This did get rid of the unwanted old Mapped Network Drives - BUT NOT THE ERROR!!
    I’ve been through all the troubleshooting procedures in: 
    http://social.technet.microsoft.com/Forums/windows/en-US/629597bb-7be0-455c-b81e-a149472d3f9b/windows-7-backup-the-system-cannot-find-the-path-specified-error-0x80070003?forum=w7itprogeneral
    Method 1
    It had none of the symptoms reported in  
    http://support.microsoft.com/kb/973455 
    but I scanned for ‘reparse’ points anyway.  Found several “Junction Points” but none that were “Mounted Volumes”, just ordinary ‘File Folders’.
    Method 2
    Check a drive for errors. 
    Looked at: 
    http://windows.microsoft.com/en-us/windows7/Check-a-drive-for-errors
    Checked
    both boxes.  I closed machine down, to check for errors when it re-started. 
    It didn’t seem to find anything. 
    I say seem, because I did not actually see it finishing checking the empty space, but stages 1-4 found no problems and Windows 7 restarted normally. 
    It did detect 66 ‘Reparse’ Points, which is more than it found when I scanned for them earlier. 
    Method 3
    Yes, I am an administrator or my own machine and, as such, I have ‘Full Access’.
    I downloaded an ran the Process Monitor, filtering for Process Name “Wbengine.exe”, but did dot get a single event. 
    So I’m not sure what’s going on.
    HELP - I'm out of ideas!
    I have a WORD Document that documents all the Settings I've used on both the Server and the Clients, together with the reasoning behind those settings, but
    I cannot find a way of uploading it.

    I am having the exact same problem with Windows 7 Professional. Out of the blue, this issue just started a few months ago when running my monthly Windows Backup where I have used a USB drive for the last 3 years, and never ever had this issue before. Most
    of the solutions listed on the Microsoft websites and answers deal with
    "Restore" functions, not the
    "Backup" itself. I have 3 folders being skipped during the backup.
    So I went and changed the Backup from "let Microsoft choose files, directories, etc" to "Let me choose". I included the files and folders that were being skipped, and ran the "Backup" again, and got the same error message,
    but the files that were skipped the first time were "Backed up" finally. This issue is somehow related to my "Libraries"?
    The 3 backup problems are:
    Backup encountered a problem while backing up file C:\Windows\System32\config\systemprofile\My Audio Books\Audio Book Recordings. Error:(The system cannot find the path specified. (0x80070003))
    Backup encountered a problem while backing up file C:\Windows\System32\config\systemprofile\My Audio Books\Audio Book CD Label-Cover Art. Error:(The system cannot find the path specified. (0x80070003))
    Backup encountered a problem while backing up file C:\Windows\System32\config\systemprofile\My Audio Books\Audio Book MP3 Tag Art. Error:(The system cannot find the path specified. (0x80070003))
    Did a "checkdisk" - no problems. Ran a program to fix registry - no problems. All updates up to date. I guess I could eliminate these folders from the Backup folders in the
    Library, and just choose them under the "Users" locations, and be done with it. But I really want to understand this, and fix it. This is within Windows 7 and may be related to Windows Media Player or
    some recent Windows update.  Thanks.

  • "The system cannot find the file specified." on BackgroundDownloader.getCurrentDownloadsAsync

    The method 
    Windows.Networking.BackgroundTransfer.BackgroundDownloader.getCurrentDownloadsAsync()
    will consistently error out for me. 
    To repro this: 
    Start a bunch of (preferably large) download operations using the BackgroundDownloader. 
    Wait for a couple to start. 
    Kill the app with Alt+F4.
    Try to load the previously added downloads using the above method. 
    For me the method consistently fails and calls the error callback on the promise with the message "The system cannot find the file specified."
    Seeing this happen in prod too and it is causing all kinds of havoc. The BackgroundDownloader does not continue to function at all, until the /AC/BackgroundTransferApi folder is removed from the app directory or the app is reinstalled.
    Can anyone confirm this? Is there a solution? 
    Cheers, 
    Felix

    Hi CensoredUser,
    Thank you reporting this issue, I can reproduce it as you provided, but I think this is not the common status in
    app life cycle. Can you tell me why you need do ALT+F4 action?
    For a quick work around, reinstall app is an option to ignore this issue.
    Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. Click HERE to participate
    the survey.

  • The system cannot find the path specified.---- Error code:-2147467259 Error code name:failed

    Friends,
                I'm facing below issue while accessing a crystal report. I heard it might be an access issue. But i'm able to access a report within a same folder.
    com.crystaldecisions.sdk.occa.report.lib.ReportSDKServerException : The system cannot find the path specified.---- Error code:-2147467259 Error code name:failed
    at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)
    at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)
    Any suggestions would be very helpful.
    Thanks in Advance,
    Bharath

    Apply trace on RAS and look for errors in the RAS logs at the same timestamp.
    These errors come for various errors and tracing RAS would give us a better idea.
    It might hapen that you observe these errors for reports which takes more than the RAS timeout to export the reports.
    Post getting the RAS logs you can try below steps if we see timeout errors in RAS logs.
    Copy clientSDKOptions.xml file from <BO install path>\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\java\lib to the machine where your app is running Open clientSDKOptions.xml and change CORBARequestTimeOut from 600000 to a value large enough to allow the report to render, for instance 1200000. Default value is 600000 (10 minutes)
    Specify the location of the clientSDKOptions.xml file at run-time. In your JSP or Java files, use the Java method setProperty from the System class. Set the system property indicated by the ras.config key to the specified directory as: system.setProperty("ras.config","c:\temp"). This function call specifies that the clientSDKOptions.xml file in c:\temp is to be used for locating RAS servers.
    Thanks,
    Prithvi

  • Getting ComException (0x80004005):The system cannot find the file specified

    Our customer is getting an error from her remote location via the internet, running a report that has not changed in a year.  None of our other customers are having this problem.  When we sign in from our office with her credentials, we do not get the error.  We've had her reboot, clear cache, etc.  She has tried from Firefox and IE ... same result.
    She is running WindowsXP and signs into our website VB program on a 2008Server under IIS aspx.net and SQL Server.  We are using Crystal Reports 2008 v12.2.0.290 full.
    The error is:
    [COMException (0x80004005): The system cannot find the file specified.
       CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object& DocumentPath, Int32 Options) +0
       CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object& DocumentPath, Int32 Options) +95
       CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened() +356
    [Exception: Load report failed.]
       CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened() +419
       CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob) +895
       CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename) +84
       nettax.newtax_cr_1.GenerateReport(String Reportname)  in  F:\the cloud nettax with codebehind\nettax\newtax_cr_1.aspx.vb:137
       nettax.newtax_cr_1.page_load(object sender, eventargs e)  in  F:\the cloud nettax with codebehind\nettax\newtax_cr_1.aspx.vb:1316
       System.Web.UI.Control.OnLoad(EventArgs e) +99
       System.Web.UI.Control.LoadRecursive() +50
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627
    Again, we have made no changes ... it has just stopped working for her, yet other remote users are creating the report just fine .... BUT, each has their own SQL database that the report is being created from.  Any help??

    I moved your post to the .NET - SAP Crystal Reports forum.
    Only idea I have at this time is to get [Process Monitor|http://technet.microsoft.com/en-ca/sysinternals/bb896645.aspx] on this. You'll have to download it on to the server. Filter for the worker process so you limit the log size. Then have the customer attempt to load the report. Once she gets the error, you can save the log. Look for any errors re. load of files (DLLs, rpt files, etc.) and also look for "Access Denied" errors on files as well as registries.
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup
    Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]

  • ORA-20100 The system cannot find the file specified 0RA-06512

    I can create and deploy a .NET stored procedure but when I run it either from Visual Studio 2005 Oracle Explorer or TOAD or SQLPlus I get the following:
    ORA-20100: The system cannot find the file specified.
    ORA-06512: at "SYS.DBMS_CLR", line 211
    ORA-06512: at "PROD.GETSEGADDRNO", line 7
    ORA-06512: at line 1
    It is basically the same C# code as the OTN sample except for accessing a table in my database.
    I found a forum thread dated 2006 with basically the same error message and it said the problem was fixed in Oracle Database patched to 10.2.0.2 but I can't find such a patch for 10g R2 Enterprise.
    This is my first time setting up Server 2003, Oracle 10g and ODT for .NET
    (I successfully created and deployed an external procedures for Oracle 8.1.7 on Windows 2000 a couple of years ago)
    This is the code:
    using System;
    using System.Collections.Generic;
    using System.Text;
    using System.Data;
    // use the ODP.NET provider
    using Oracle.DataAccess.Client;
    using Oracle.DataAccess.Types;
    namespace CLRLibrary1
    // Sample .NET stored function returning address number (ADDR_NO) for
    // a given segment number (SEG_NO)
    public class Class1
    public static int GetSegAddrNo(int segno)
    int addrno = 0;
    // Check for context connection
    OracleConnection conn = new OracleConnection();
    if (OracleConnection.IsAvailable == true)
    conn.ConnectionString = "context connection=true";
    else
    throw new InvalidOperationException("context connection" +
    "not available");
    conn.Open();
    // Create and execute a command
    OracleCommand cmd = conn.CreateCommand();
    cmd.CommandText = "SELECT ADDR_NO FROM SEG WHERE SEG_NO = :1";
    cmd.Parameters.Add(":1", OracleDbType.Int32, segno,
    System.Data.ParameterDirection.Input);
    OracleDataReader rdr = cmd.ExecuteReader();
    if (rdr.Read())
    addrno = rdr.GetInt32(0);
    rdr.Close();
    cmd.Dispose();
    conn.Close();
    return addrno;
    } // GetSegAddrNo
    } // Class1
    } // CLRLibrary1
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    was installed from the Oracle downloads site: 10201_database_win32.zip
    On Windows Server 2003 R2 Standard Edition SP2
    Oracle .NET tools was installed using: ODTwithODAC1020221.exe
    The CLR Service is running
    Deployment says that it is successfull.
    The DLL is in the expected Oraclehome\BIN\CLR folder
    The deployment script is:
    CREATE OR REPLACE LIBRARY "SYS"."ORATEST6_DLL" AS '$ORACLE_HOME\bin\clr\OraTest6.dll';
    GRANT EXECUTE ON "SYS"."ORATEST6_DLL" TO PROD;
    GRANT EXECUTE ON "SYS"."DBMS_CLR" TO PROD;
    GRANT EXECUTE ON "SYS"."DBMS_CLRTYPE" TO PROD;
    GRANT EXECUTE ON "SYS"."DBMS_CLRPARAMTABLE" TO PROD;
    CREATE OR REPLACE FUNCTION PROD.GETSEGADDRNO wrapped
    a000000
    1f
    abcd
    abcd
    abcd
    abcd
    abcd
    abcd
    abcd
    abcd
    abcd
    abcd
    abcd
    abcd
    abcd
    abcd
    abcd
    8
    147 138
    ePHIr6kvu6nZ9gYrxgs40akg18owg1zQf/ZqZ3QC2vjqaIs25soMp1nBmBfBj1ZboVvNkdPT
    8qhpuEVdmv4n2nlF5ynrhLsm3F0h9ZGrTQ4tGYIybWjMFxYNlDDeBOx1i7O0GviP8AxHys23
    kW8aTVA2xV8IuLNlwP7KWFw70tGbg+lUIlRhYo5WmLW6N9wcjOCeLZK6W6s6tvd4zKAQykzc
    sIsaneE0FWyV9Q1BD0yJpLoCfWH+f6fVXsne5Feyxu68k5geCJ8F5FCLm2ycvxIiKNKTIpiD
    q4wshbsYLTTPHX3F6pA=
    The parameter mapping is:
    return value int32 number
    segno int32 number
    Bob Sorrell
    [email protected]
    863-662-5524

    These are the Reference Properties for Oracle.DataAccess in the OraTest6 app:
    Aliases: Global
    Copy Local: False
    Description: Oracle.DataAccess.dll
    File Type: Assembly
    Identity: Oracle.DataAccess
    Path: c:\oracle\ora102\odp.net\bin\2.x\Oracle.DataAcess.dll
    Resolved: True
    Runtime Version: v2.0.50727
    Specific Version: False
    Strong Name: True
    Version: 2.102.2.20
    This is what GacUtil shows:
    The Global Assembly Cache contains the following assemblies:
    Oracle.DataAccess, Version=2.102.2.20, Culture=neutral, PublicKeyToken=89b483f429c47342, processorArchitecture=x86
    Oracle.DataAccess, Version=1.102.2.20, Culture=neutral, PublicKeyToken=89b483f429c47342
    Number of items = 2
    The GAC seems to contain both 2.102.2.20 and 1.102.2.20
    Do I need to remove one?

  • Running config.cmd produces - The system cannot find the path specified

    I had successfuly installed Weblgic/OSB and cofigured a domain on 64 bit windows 2008
    I then uninstalled all components and re-installed everything |( including deleting all directires ) .
    When I come to run config.cmd to create the OSB Weblogic domain I get :-
    The system cannot find the path specified
    I have set echo on and can see that the cmd file is attempting to acces directories that do not exist - so the command file is getting wrong info from somewhere but I just cannot figure out from where. I donlt think its a script issue, its more like an issue with some setting somewhere in windows regirsty or some cache that its pulinng it in from - the wrong directoties displayed seem to look like my existing dir's with ~1 and ~2 on the end.
    Any ideas suggestions greatly received.

    I have not edited any of the scipts at all - they are as they have been laid down byt the install.
    Contents of E:\Oracle\Middleware\Oracle_OSB1\common\bin\config.cmd below
    @ECHO ON
    SETLOCAL
    @REM Determine the location of this script...
    SET SCRIPTPATH=%~dp0
    FOR %%i IN ("%SCRIPTPATH%") DO SET SCRIPTPATH=%%~fsi
    @REM Set the ORACLE_HOME relative to this script...
    FOR %%i IN ("%SCRIPTPATH%\..\..") DO SET ORACLE_HOME=%%~fsi
    @REM Set the MW_HOME relative to the ORACLE_HOME...
    FOR %%i IN ("%ORACLE_HOME%\..") DO SET MW_HOME=%%~fsi
    @REM Set the home directories...
    CALL "%SCRIPTPATH%\setHomeDirs.cmd"
    @REM Set the config jvm args...
    SET CONFIG_JVM_ARGS=%CONFIG_JVM_ARGS% -DCOMMON_COMPONENTS_HOME=%COMMON_COMPONENTS_HOME%
    @REM Delegate to the main script...
    CALL "%WL_HOME%\common\bin\config.cmd" %*
    ENDLOCALContents of E:\Oracle\Middleware\Oracle_OSB1\common\bin\setHomeDirs.cmd
    @ECHO OFF
    @REM Temporary workaround:  normally use a hardcoded wls version (until the
    @REM installer can substitute it for us); but for now, need to work with multiple
    @REM versions.  Choose the highest avail.
    IF EXIST "%MW_HOME%\utils\config\10.3.3.0\setHomeDirs.cmd" (
      SET WLS_VER=10.3.3.0
    ) ELSE IF EXIST "%MW_HOME%\utils\config\10.3.2.0\setHomeDirs.cmd" (
      SET WLS_VER=10.3.2.0
    ) ELSE IF EXIST "%MW_HOME%\utils\config\10.3.1.0\setHomeDirs.cmd" (
      SET WLS_VER=10.3.1.0
    ) ELSE (
      SET WLS_VER=10.3
    IF EXIST "%MW_HOME%\utils\config\%WLS_VER%\setHomeDirs.cmd" (
      CALL "%MW_HOME%\utils\config\%WLS_VER%\setHomeDirs.cmd"
    @REM Set common components home...
    SET COMMON_COMPONENTS_HOME=%MW_HOME%\oracle_common
    IF EXIST %COMMON_COMPONENTS_HOME% FOR %%i IN ("%MW_HOME%\oracle_common") DO SET COMMON_COMPONENTS_HOME=%%~fsiContents of following :-
    dir /x E:\Oracle
    >
    Volume in drive E is Apps
    Volume Serial Number is 6CF4-6338
    Directory of e:\oracle
    22/06/2012 13:57 <DIR> .
    22/06/2012 13:57 <DIR> ..
    22/06/2012 14:00 <DIR> MIDDLE~1 Middleware
    0 File(s) 0 bytes
    3 Dir(s) 758,748,934,144 bytes free
    >
    dir /x E:\Oracle\Middleware
    >
    Volume in drive E is Apps
    Volume Serial Number is 6CF4-6338
    Directory of e:\oracle\middleware
    22/06/2012 14:00 <DIR> .
    22/06/2012 14:00 <DIR> ..
    22/06/2012 13:57 <DIR> COHERE~1.7 coherence_3.7
    22/06/2012 13:57 136 DOMAIN~1.XML domain-registry.xml
    22/06/2012 13:57 <DIR> logs
    22/06/2012 13:57 <DIR> modules
    22/06/2012 13:57 862 ocm.rsp
    22/06/2012 14:02 <DIR> ORACLE~1 oracle_common
    22/06/2012 14:02 <DIR> ORACLE~2 Oracle_OSB1
    22/06/2012 13:57 110,518 registry.dat
    22/06/2012 13:57 1,623 registry.xml
    22/06/2012 13:57 <DIR> utils
    22/06/2012 14:01 <DIR> WLSERV~1.3 wlserver_10.3
    4 File(s) 113,139 bytes
    9 Dir(s) 758,748,934,144 bytes free
    >
    dir /x E:\Oracle\MIDDLE~1\ORACLE~2\common\bin
    >
    Volume in drive E is Apps
    Volume Serial Number is 6CF4-6338
    Directory of e:\oracle\middle~1\oracle~2\common\bin
    22/06/2012 14:03 <DIR> .
    22/06/2012 14:03 <DIR> ..
    20/01/2010 15:11 640 CONFIG~1.CMD config - Copy.cmd
    22/06/2012 14:03 639 config.cmd
    20/01/2010 15:11 777 config.sh
    20/01/2010 15:11 638 pack.cmd
    20/01/2010 15:11 773 pack.sh
    20/01/2010 15:11 828 SETHOM~1.CMD setHomeDirs.cmd
    27/04/2010 06:04 839 SETHOM~1.SH setHomeDirs.sh
    20/01/2010 15:11 640 unpack.cmd
    20/01/2010 15:11 777 unpack.sh
    20/01/2010 15:11 538 WAS_CO~1.CMD was_config.cmd
    20/01/2010 15:11 638 WAS_CO~1.SH was_config.sh
    20/01/2010 15:11 1,344 wlst.cmd
    20/01/2010 15:11 1,579 wlst.sh
    20/01/2010 15:11 632 wsadmin.cmd
    27/04/2010 06:04 739 wsadmin.sh
    15 File(s) 12,021 bytes
    2 Dir(s) 758,748,934,144 bytes free
    >
    And also I am able to do the following :
    dir /x E:\oracle\MIDDLE~1\ORACLE~2\common\bin\setHomeDirs.cmd - ouptu below..
    >
    Volume in drive E is Apps
    Volume Serial Number is 6CF4-6338
    Directory of e:\oracle\MIDDLE~1\ORACLE~2\common\bin
    20/01/2010 15:11 828 SETHOM~1.CMD setHomeDirs.cmd
    1 File(s) 828 bytes
    0 Dir(s) 758,748,606,464 bytes free
    >
    So everythings look ok to me.
    So, it still begs the question why does my config.cmd script fall over doing the following :
    CALL "E:\oracle\MIDDLE~1\ORACLE~2\common\bin\\setHomeDirs.cmd"
    The system cannot find the path specified

  • ConvertTo-SecureString : The system cannot find the file specified.

    I have a Tidal job that executes a PowerShell script.  The encrypted password is stored in a password file on the application server.  In the PowerShell script, there is the line below that gets the contents of the password file.
        $encryptPW = Get-Content "C:\Program Files\MyCompany\MyApp\encryptPW.txt" | ConvertTo-SecureString
    On my development enviroment, Tidal was referencing the Agent/Adapter (app server name) and the Runtime User (domain\userID) fine.  The script was executing well  until recently when the Tidal server was rebooted.  After the reboot, the PowerShell script execution is erroring out with the message "ConvertTo-SecureString : The system cannot find the file specified."  It appears that when the PowerShell script is executed from Tidal, it is unable to find the password file using the Runtime User specified in the Tidal job.
    The Runtime User has the proper access on the application server because we must sign-on as that user in order to generate the password file to hold the encrypted password for the Runtime User.
    It is as if Tidal is not passing the right credentials when it is executing the PowerShell script.  Has anyone come across this issue?

    If you rebooted then it may be possible that your remoting setup was reset, was session based, or winrm service was set to manual, etc.
    Try these on the server that was rebooted
    get-service winrm
    Status        Name               DisplayName                          
    Running      winrm              Windows Remote Management (WS-Manag... get-service winrm
    Check execution policy settings:
    get-executonpolicy if this is restricted... you'll have problems
    you can try enable-psremoting you should get:
    WinRM is already set up to receive requests on this computer.
    WinRM is already set up for remote management on this computer.
    We use a similar setup however we use a certificate (installed on agent)  and password file w/ thumbprint (on central drive) to run with alternative credentials

  • BOXI3.1: Error during migration -The system cannot find the path specified

    Hi,
    I'm trying to migrate my reporting server from BOXIR2 to BOXI3.1.
    I have a Java App which uses the SDK to generate reports hosted on BOE.
    I have updated the SDK and when i attempt to generate a very simple test report, i get this error:
    The system cannot find the path specified.
    com.crystaldecisions.sdk.occa.report.lib.ReportSDKServerException: The system cannot find the path specified.
    ---- Error code:-2147467259 Error code name:failed
         at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)
    When i stepped through the codes, it occurred at this line:
    ByteArrayInputStream aiStream = (ByteArrayInputStream)rptDoc.getPrintOutputController().export(exportOptions);
    Does anyone know the cause of the issue? Some guide on what to check will also be helpful! Thanks!

    Hi Aasavari,
    We are running BOXI3.1 SP4.
    For debugging purpose, I created a small program with your suggestion to remove exportOptions.
    My report is called "testReportName" and it is created in "CMC > Folders > testFolderName":
    IEnterpriseSession enterpriseSession;
    IInfoStore infoStore;
    IReportAppFactory rptAppFactory;
    IInfoObjects oInfoObjects;
    int reportFolderSI_ID;
    String reportFolder = "testFolderName";
    String reportName = "testReportName";
    String paramVal = "2012-01-31";
    try {
         enterpriseSession  = CrystalEnterprise.getSessionMgr().logon(boUser, boPwd, boAPSName, boAuthType);
         //Get the InfoStore service from Crystal Enterprise
         infoStore = (IInfoStore)enterpriseSession.getService("InfoStore",com.crystaldecisions.enterprise.ocaframework.ServiceNames.OCA_I_IINFO_STORE);
    } catch (SDKException e) {
         System.out.println(e.message());
    try {
         //Get the Report Application Factory service from Crystal Enterprise
         rptAppFactory = (IReportAppFactory)enterpriseSession.getService("RASReportFactory");
         String parentFolderQuery = "SELECT * FROM CI_INFOOBJECTS WHERE " +
         "SI_PARENT_FOLDER=0 and SI_PROGID='CrystalEnterprise.Folder' and " +
         "SI_NAME= '"+reportFolder +"' ORDER BY SI_NAME";
         IInfoObjects parentFolderInfoObjects = infoStore.query(parentFolderQuery);
         reportFolderSI_ID = ((IInfoObject)parentFolderInfoObjects.get(0)).getID();
         // Retrieve the report by name and its reportFolder from Crystal Enterprise
         oInfoObjects = infoStore.query("Select * From CI_INFOOBJECTS Where SI_NAME='"+reportFolder+"' AND SI_PARENT_FOLDER="+reportFolderSI_ID);
         oInfoObjects = infoStore.query("Select * From CI_INFOOBJECTS Where SI_NAME='"+reportName+"' AND SI_PARENT_FOLDER='"+((IInfoObject)oInfoObjects.get(0)).getID()+"'");
         IInfoObject infoObject = (IInfoObject)oInfoObjects.get(0);
         //Open the report into a Report Document object
         ReportClientDocument rptDoc = rptAppFactory.openDocument(infoObject,0, Locale.ENGLISH);
         //Refresh tables
         IConnectionInfo connectionInfo;
         util.setJdbc_url(ap.getParameterString("URL"));
         util.setJdbc_driver(ap.getParameterString("driver"));
         util.setJdbc_user(ap.getParameterString("user"));
         util.setJdbc_pwd(ap.getParameterString("password"));
         util.setJdbc_database(ap.getParameterString("database"));
         connectionInfo = util.getJdbcConnectionInfo(util.getJdbcPropertyBag());
         int replaceParams = DBOptions._ignoreCurrentTableQualifiers + DBOptions._doNotVerifyDB;
         ConnectionInfos connectionInfos = rptDoc.getDatabaseController().getConnectionInfos(null);
         for (ConnectionInfo oldConnectionInfo:((Collection<ConnectionInfo>)connectionInfos))
              rptDoc.getDatabaseController().replaceConnection(oldConnectionInfo, connectionInfo, null, replaceParams);               
         //Get Params
         Fields mainRptParameterFields = rptDoc.getDataDefController().getDataDefinition().getParameterFields();
         String params = new String();
         for(Object parameterField : mainRptParameterFields){
              String paramName = ((ParameterField)parameterField).getName();
              if(parameterField != null)
                   if(((ParameterField)parameterField).getType() == FieldValueType.dateField)
                        rptDoc.getDataDefController().getParameterFieldController().setCurrentValue("", paramName,java.sql.Date.valueOf(paramVal));
                   else if (((ParameterField)parameterField).getType() == FieldValueType.dateTimeField){
                        //Stored Procs uses Datetime
                        java.util.Date datetime = (Date)reportDate_df.parse(paramVal);
                        rptDoc.getDataDefController().getParameterFieldController().setCurrentValue("",paramName, datetime);
                   else
                        rptDoc.getDataDefController().getParameterFieldController().setCurrentValue("", paramName, paramVal);
         ByteArrayInputStream aiStream = (ByteArrayInputStream)rptDoc.getPrintOutputController().export(ReportExportFormat.PDF);
         rptDoc.close();
    I ran this against BOXIR2 and BOXI3.1, BOXI3.1 will still throw error at
    ByteArrayInputStream aiStream = (ByteArrayInputStream)rptDoc.getPrintOutputController().export(ReportExportFormat.PDF);
    Another question, will CI_INFOOBJECTS table be created in the DB during installation of BOXI?

  • Deployment fails with "The system cannot find the path specified"  message

    So, here's my sob story.
    I'm running Sun App Server 7 on Windows 2000. Occasionally, when I used asadmin.bat to deploy an ear I get an error message saying "The system cannot find the path specified" . Stopping and restarting the server and running the asadmin.bat command again deploys the ear without any problems.
    So, my question is, what causes this to happen? How can I keep it from happening?
    If it helps, here's a sample command line sequence and the error message:
    prompt% asadmin.bat deploy user xxx password yyy --instance server1 my.ear
    Cannot deploy the component
    C:\WINNT\Temp\s1astempdomain1admin-server1589047611\server1\my.ear (The system cannot find the path specified)
    Thanks in advance for any help,
    - Alex

    You'll probably find useful error messages in the server log. If not, crank up the log level to FINE or above and check again.

  • Golden gate -  Unable to open file (error 2, The system cannot find the file specified.)

    Hi Everyone.
    I have configured GoldenGate on Win2008 R2, but when I start replicat, this fall.
    Initially:
    GGSCI (WIN-NKC50KUIT0G) 19> start replicat rep1 
    Sending START request to MANAGER ...
    REPLICAT REP1 starting
    GGSCI (WIN-NKC50KUIT0G) 20> info all
    Program     Status      Group       Lag at Chkpt  Time Since Chkpt
    MANAGER     RUNNING
    REPLICAT    STOPPED     REP1        00:00:00      00:37:53 
    GGSCI (WIN-NKC50KUIT0G) 21> info replicat rep1
    REPLICAT   REP1      Initialized   2013-11-02 22:23   Status STOPPED
    Checkpoint Lag       00:00:00 (updated 00:40:28 ago)
    Log Read Checkpoint  File C:\app\Oracle\product\gg\dirdat\tr000000
                         2013-11-02 22:23:55.000000
    With VIEW GGSEVT:
    2013-11-02 23:15:31  INFO    OGG-01815  Oracle GoldenGate Delivery for Oracle, R 
    EP1.prm:  Virtual Memory Facilities for: COM 
        anon alloc: MapViewOfFile  anon free: UnmapViewOfFile 
        file alloc: MapViewOfFile  file free: UnmapViewOfFile 
        target directories: 
        C:\app\Oracle\product\gg\dirtmp. 
    2013-11-02 23:15:31  ERROR   OGG-00446  Oracle GoldenGate Delivery for Oracle, R 
    EP1.prm:  Extract file not found or no records beyond begin time.   why??? 
    2013-11-02 23:15:31  ERROR   OGG-01668  Oracle GoldenGate Delivery for Oracle, R 
    EP1.prm:  PROCESS ABENDING. 
    After I tried with:
    GGSCI (WIN-NKC50KUIT0G) 8>Alter rep1, EXTSEQNO 0
    but
    GGSCI (WIN-NKC50KUIT0G) 9> info all
    Program     Status      Group       Lag at Chkpt  Time Since Chkpt
    MANAGER     RUNNING
    REPLICAT    ABENDED     REP1        00:00:00      01:11:50
    why??? abended??
    In logs:
    2013-11-03 14:07:02  INFO    OGG-00996  Oracle GoldenGate Delivery for Oracle, REP1.prm:  REPLICAT REP1 started. 
    2013-11-03 14:07:02  ERROR   OGG-01091  Oracle GoldenGate Delivery for Oracle, REP1.prm:  Unable to open file ".\dirdat\tr000000" (error 2, The system cannot find the file specified.).  why???
    2013-11-03 14:07:02  ERROR   OGG-01668  Oracle GoldenGate Delivery for Oracle, REP1.prm:  PROCESS ABENDING.
    GGSCI (WIN-NKC50KUIT0G) 12> info rep1, detail
    REPLICAT   REP1      Last Started 2013-11-03 14:30   Status ABENDED
    Checkpoint Lag       00:00:00 (updated 01:19:03 ago)
    Log Read Checkpoint  File .\dirdat\tr000000
                         First Record
      Extract Source                          Begin             End
      .\dirdat\tr000000                       * Initialized *   First Record
      .\dirdat\tr000000                       * Initialized *   First Record
      .\dirdat\tr000000                       * Initialized *   First Record
      .\dirdat\tr000000                       * Initialized *   First Record
      .\dirdat\tr000000                       * Initialized *   First Record
      .\dirdat\tr000000                       * Initialized *   First Record
      .\dirdat\tr000000                       * Initialized *   First Record
      .\dirdat\tr000000                       * Initialized *   2013-11-03 12:54
    Current directory    C:\app\Oracle\product\gg
    Report file          C:\app\Oracle\product\gg\dirrpt\REP1.rpt
    Parameter file       C:\app\Oracle\product\gg\dirprm\REP1.prm
    Checkpoint file      C:\app\Oracle\product\gg\dirchk\REP1.cpr
    Checkpoint table     target.checkpoint
    Process file         C:\app\Oracle\product\gg\dirpcs\REP1.pcr
    Error log            C:\app\Oracle\product\gg\ggserr.log
    GGSCI (WIN-NKC50KUIT0G) 13> view param rep1
    REPLICAT rep1
    ASSUMETARGETDEFS
    USERID target, PASSWORD oracle
    discardfile .\discard\rep1_discard.txt, append, megabytes 10
    DDL
    map source.*, target target.*;
    I don´t understand it, How I could solve?? Please help me!
    Thank you.

    What steps did you use to add the Replicat?  Can you list those commands out.
    Also, does this file actually exist on the server where Replicat is running: C:\app\Oracle\product\gg\dirdat\tr000000

  • While creating web application prokect getting error: The system cannot find the file specified. (Exception from HRESULT: 0x80070002)

    I am getting error on creating even the empty web application project. The error message is as given below:
    The system cannot find the file specified. (Exception from HRESULT: 0x80070002)
    I am using following build of Visual Studio:
    Visual Studio Professional 2013. Version 12.0.30723.00 Update 3
    Looks like it is the problem with the installation of the visual studio. But I can't take risk of re-installing now because it would stop my going on development work.
    Any would help to resolve this would be appreciated.
    P.S. I am also having Visual Studio 2010 and Visual Studio 2012 Ultimate on my system.
    Regards, Randeep

    Hello Randeep,
    Will you get the same error when creating any other apps, like C# WinForm?
    If only web application project has the problem, you can try the following to reset the templates:
    Please open Windows Explorer, and navigate to  <Visual Studio Installation Path>\Common7\IDE (by default is C:\Program Files \Microsoft Visual Studio 12.0\Common7\IDE);
    Delete the ItemTemplatesCache, ProjectTemplatesCache folder;
    Open Visual Studio Tools/Developer Command Prompt for VS2013
    under Start menu -> All Programs -> Microsoft Visual Studio 2013 -> Visual Studio Tools (run it with Administrator privilege: right-click the program -> Run as administrator);
    Run the devenv /InstallVSTemplates switch;
    Run the devenv /Setup switch
    If all your projects get this error, please try repair the installaiton from control panel first. By the way, can you use Visual Studio Web projects before you get this error? And have you tried to use the Visual Studio Update 4, I see you still used
    Update 3, is there any reason for you to still use the Update 3 version?
    Best regards,
    Barry
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Flash CS6 AIR error: CreateWinProcess failed with error 2. The system cannot find the file specified

    I created an AIR application in Adobe Flash CS6, but when I test, debug or publish it, an error always occured.
    CreateWinProcess failed with error 2. The system cannot find the file specified.
    When I clicked OK, Flash suddenly stops responding, so I need to end the process using Task Manager.
    I created a blank FLA document and tested and published it, everything's fine there. It was exported properly. But when I do it with the AIR app, Flash can't even start exporting the SWF of the AIP app, and instead gave me the error.
    I speculate that there is something wrong with the Java command line stuff Flash is doing behind the curtain. I tried using ADL myself and get the AIR app working fine.
    I also found out that Flash has its own JRE installed, so I don't have to bother the JRE used by my computer.
    Is there any way to fix this? Thanks in advance. Have a nice day!

    I installed  the update, but I'm sorry to say that it did not solve the problem
    The error is still there as described by Master §ix and Daniel777
    CreateWinProcess failed with error 2. The system cannot find the file specified.
    It happens when trying to test, debug, or publish air applications (AIR 2.5 – AIR 3.4 , desktop, android, iOS)
    In this case, I can't use the simulator to test the applications,
    thanks

Maybe you are looking for