Cannot find the specified instance exception

Hello,
I am having a problem with my Bpel process.
when I post to XML, i am getting the following:
<Fault env="http://schemas.xmlsoap.org/soap/envelope/" >
<faultcode>env:Server</faultcode>
<faultstring>java.lang.IllegalStateException: Cannot call setRollbackOnly() current thread is NOT associated with a transaction</faultstring>
</Fault>
what does this mean ?
why is it happening ?
How can resolve this issue ?
This is urgent,
Thanks everyone,
AJ

sorry, it took a while to respond. are you still facing the issue? this sounds like, there was some system exception where the j2ee container terminated/ended the jta transaction but the exception reached to bpel engine layer where bpel engine trying to set rollback only on an already ended transaction hence this error. the root issue is why the j2ee container ended that jta transaction, is there any other exceptions before this exception in the log file. i assume some kind of timeout or system exceptions happened before reaching the setRollbackOnly call.

Similar Messages

  • Cannot find the specified instance ???

    "If the instance has recently been initiated, the invocation data may not have been delivered to the engine yet. Refresh your browser window or try again in a few seconds."
    I am getting the above error when i try to execute a BPEL process that does some DML operation on the database.
    I doubt whether this relates to the database.
    Please suggest.
    Thanks,
    Rosh

    Hi Marcelo!
    I'm having the exact same problem. I've upgraded AS and BPEL PM from 10.1.3.1 to 10.1.3.3 As I found out in another thread (Cannot find the specified instance the problem could be in not running the upgrade sql script, but I did that.
    When I initiate my process the number of Open Instances and closed instances remains 0. I've tried by deploying my process to default domain and a new domain I've created but it doesn't matter.
    The message in my domain.log file is this:
    <2008-01-22 13:52:32,976> <WARN> <MyTestDomain.collaxa.cube> <BaseCubeSessionBean::logWarning> Error while invoking bean "finder": [com.collaxa.cube.engine.core.InstanceNotFoundException: Instance not found in datasource.
    The process domain was unable to fetch the instance with key "fa5790576a57cd77:-67b0033:117a188c804:-7fea" from the datasource.
    Please check that the instance key "fa5790576a57cd77:-67b0033:117a188c804:-7fea" refers to a valid instance that has been started and not removed from the process domain.
    ORABPEL-02152
    Instance not found in datasource.
    The process domain was unable to fetch the instance with key "fa5790576a57cd77:-67b0033:117a188c804:-7fea" from the datasource.
    Please check that the instance key "fa5790576a57cd77:-67b0033:117a188c804:-7fea" refers to a valid instance that has been started and not removed from the process domain.
         at com.collaxa.cube.engine.data.AdminFinder.lookupInstanceByConversationId(AdminFinder.java:287)
         at com.collaxa.cube.ejb.impl.FinderBean.lookupInstanceByConversationId(FinderBean.java:200)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.JAASInterceptor$1.run(JAASInterceptor.java:31)
         at com.evermind.server.ThreadState.runAs(ThreadState.java:646)
         at com.evermind.server.ejb.interceptor.system.JAASInterceptor.invoke(JAASInterceptor.java:34)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.TxNotSupportedInterceptor.invoke(TxNotSupportedInterceptor.java:43)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
         at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
         at FinderBean_RemoteProxy_4bin6i8.lookupInstanceByConversationId(Unknown Source)
         at com.oracle.bpel.client.Locator.lookupInstance(Locator.java:448)
         at displayInstance.jspService(_displayInstance.java:123)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
         at oracle.security.jazn.oc4j.JAZNFilter$1.run(JAZNFilter.java:396)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:410)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:623)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
         at com.evermind.server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:259)
         at com.evermind.server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:51)
         at com.evermind.server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:193)
         at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:283)
         at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:198)
         at com.collaxa.cube.fe.DomainFilter.doFilter(DomainFilter.java:131)
         at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
         at oracle.security.jazn.oc4j.JAZNFilter$1.run(JAZNFilter.java:396)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:410)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:302)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:190)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    I'd appreciate any suggestions on this.
    Thanks!
    BB

  • Cannot find the specified Infoprovider

    Hi All,
    When executed Tcode in BI : RSPLAN and clicked on Start Modeler Button,
    We are able to see the portal screen (username & Password). But we are unable to see the Real - Time Info cubes and Multi Providers on which the Aggregation Levels also. It is displaying the following message with green button.
    Cannot find the specified Infoprovider
    and
    Cannot find aggregation levels for selection specified .
    We have checked the Jco connections BI_METADATA and BI_MODELDATA and it is saying that the connections are OK.
    Thanks ,
    Kaleem

    HI All,
    After restarted BI server and reactivated the infocubes, problem has been soved.
    Thanks & Regards,
    Kaleem.

  • "The system cannot find the specified"

    When I try to install HP Photosmart Full Feature Software and Drivers - fulling.exe
    I get an error "The system cannot find the specified"
    What is the fix?

    Hi,
    Follow the steps below and check if that resolve the issue:
    1. Open Mcafee software, from the Virus and Spyware Protection section click on Schedule and run scans. Click on Real time scanning and then on Turn Off. select till I restart the PC and confirm by clicking the Turn Off button.
    Now try reinstalling the HP Software and check if the installation goes as expected.
    If the issue persists continue following the next steps below:
    2. Open the run dialog by clicking both the Windows key and the R key on your keyboard. Type %windir% and click on OK.
    3. Type hpoins*.dat into the top search bar, if there are any results rename the extention into old instead of dat. (e.g. hpoins1.old)
    4. Type hpwins*.dat into the top search bar, if there are any results rename the extention into old instead of dat. (e.g. hpwins1.old)
    5. Launch the Run dialog by clicking both the Windows key and the R key on your keyboard. Type MSIEXEC /UNREGISTER into the Run dialog and click on OK.
    6. Launch the Run dialog by clicking both the Windows key and the R key on your keyboard. Type MSIEXEC /REGSERVER into the Run dialog and click on OK.
    7. Run the installation file and check for any difference.
    Regards,
    Shlomi
    Say thanks by clicking the Kudos thumb up in the post.
    If my post resolve your problem please mark it as an Accepted Solution

  • Error "The System cannot find the specified" when installing XI3.1 FP1.3

    Error "The System cannot find the specified" happened when installing XI3.1 FP1.3 to client machine, however the installation is OK to server.
    After the error, go to Control Panel -> Add or Remove Programs, and observe.
    BusinessObjects Enterprise XI 3.1 Client Tools is installed,
    but BusinessObjects Enterprise XI 3.1 Client Tools Japanese Language Pack is not.
    And Language Pack install log is not written.
    The same error happened when installing .net2.0.
    The installation for FP1.2 is OK.
    Would you tell me what reason probablely this issue is?
    Thanks.

    Hello Sarah,
    I recommend to post this query to the [BusinessObjects Enterprise Administration|BI Platform; forum.
    This forum is dedicated to topics related to administration and configuration of BusinessObjects Enterprise, BusinessObjects Edge, and Crystal Reports Server.
    It is monitored by qualified technicians and you will get a faster response there.
    Also, all BOE Administration queries remain in one place and thus can be easily searched in one place.
    Best regards,
    Falk

  • The system cannot find the specified file

    I have tried to download and install a driver for hp officejet 4500 wireless on 2 different computers, one windows 7
    the other windows 8, with no sucess.  I keep getting a message saying  " The system cannot find the specified file".
    I even paid for a driver on a disk and got the same message.    
    HELP ME PLEASE
    Sincerely 
    meyerret

    Hi,
    Follow the steps below and check if that resolve the issue:
    1. Open Mcafee software, from the Virus and Spyware Protection section click on Schedule and run scans. Click on Real time scanning and then on Turn Off. select till I restart the PC and confirm by clicking the Turn Off button.
    Now try reinstalling the HP Software and check if the installation goes as expected.
    If the issue persists continue following the next steps below:
    2. Open the run dialog by clicking both the Windows key and the R key on your keyboard. Type %windir% and click on OK.
    3. Type hpoins*.dat into the top search bar, if there are any results rename the extention into old instead of dat. (e.g. hpoins1.old)
    4. Type hpwins*.dat into the top search bar, if there are any results rename the extention into old instead of dat. (e.g. hpwins1.old)
    5. Launch the Run dialog by clicking both the Windows key and the R key on your keyboard. Type MSIEXEC /UNREGISTER into the Run dialog and click on OK.
    6. Launch the Run dialog by clicking both the Windows key and the R key on your keyboard. Type MSIEXEC /REGSERVER into the Run dialog and click on OK.
    7. Run the installation file and check for any difference.
    Regards,
    Shlomi
    Say thanks by clicking the Kudos thumb up in the post.
    If my post resolve your problem please mark it as an Accepted Solution

  • Error Message "the system cannot find the specified file"

    Hi,
    I built my website with iWeb, but when I want to publish it on my own domain (not .mac) I've always this error message (the system cannot find the specified file) with many files. I've tryed many ftp host but I still have the same problem. I ask my host domain manager and everything is ok with them. Si I guess that the problem comes from iWeb.
    Please help me.
    Thanks

    I get the error: Cannot Copy 08 the curse in on my house: Cannot find the specified file. Make sure you specify the correct path and file name.
    The song "the curse in on..." is on the "into the woods" soundtrack. I deleted the entire soundtrack from my iTunes Library, shut down and tried again. Same error. I did a search of all three hd (2 external and c) nothing found. I searched for song name and "into the woods" I even searched for the artist "Nicholas Parson Company" nothing on any of the 3 HDs. I also went into explorer and manually searched for the song under soundtracks, misc, various and I could not find it. I consolidated my library and restarted. I tried again and same error message. Can a level 4 or 5 offer any help. I am at a loss...
    The error won't let me copy one library to another HD.

  • Sytsem cannot find the specified file

    I installed apo2011 to clean my registry and when I tried to log back into firefox it was gone, I tried to download it and I keep getting this message once it unzip (system cannot find the file specified)

    See:
    *http://kb.mozillazine.org/Windows_error_opening_Internet_shortcut_or_local_HTML_file_-_Firefox

  • Installer cannot find the database instance

    I am installing SCSM 2012 R2, but when I try to connect to the database it gives incorrect instance names. We have two instances, one is the default and one is a named instance. But instead of showing the named instance name it says "Default2".
    Its exactly what's happening in this blog:
    http://adinermie.wordpress.com/2014/03/26/service-manager-2012-r2-installation-fails-to-identify-sql-server-instance-and-throws-access-denied-error/
    Even in the setup logs it is listing instances that are incorrect. It says "ServerName\ServerName, port" instead
    of "ServerName\InstanceName, Port".  The blog author didn't have a real solution except to re-install SQL.
    Is this a bug? And suggestions?
    - Get on the floor, do that dinosaur

    I ran the command line install and it was successful.
    I created the same circumstances in my lab while the install was going to see if I could re-create the situation, and I did. It appears that the GUI installer gets confused by the name of the named instance - MSSQLSERVER2. In the drop down it shows Default2
    and the error is "Access to SQLServer\SQLServer2 is denied." So I'm guessing that the installer just sees the MSSQLSERVER portion of MSSQLSERVER2, assumes its a default instance and looks for the server named instance which doesn't exist rather than the named
    instance.
    Bottom line is that the installer has a few kinks.
    - Get on the floor, do that dinosaur

  • Code is correct then why i cannot find the specified  backgroung color  ??

    hi everyone!!
    this is quite strange for me because i have been trying to set the background color but really can't understand why i an not getting it .Please help me out...
    thanks a lot!
    import java.io.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.filechooser.*;
    public class front3 extends JFrame{
          private JButton go;
          private JRadioButton download,split,zip,rename,Copymail;
         private ButtonGroup radioGroup;
          public front3()
          Container c = getContentPane();
          c.setBackground(Color.pink);
          c.setLayout(new  GridLayout(0,1)); 
          setSize(530,120);
          setResizable(false); // to disable  the maximize  button 
            ImageIcon ii= new ImageIcon("split.jpg");
            split=new JRadioButton("Splitter",true);
         ImageIcon ij= new ImageIcon("zip.jpg");
          zip=new JRadioButton("Zipper",ij,false);
         ImageIcon ik= new ImageIcon("rename.jpg");
          rename=new JRadioButton("Rename all",ik,false);
         ImageIcon il= new ImageIcon("copymail.jpg");
         Copymail=new JRadioButton("Copy Mail",il,false);
         ImageIcon im= new ImageIcon("download.jpg");
         download=new JRadioButton("Download",im,false);
    c.add(download);
          c.add (split);
          c.add(zip);
          c.add(rename);
          c.add(Copymail); 
    setSize(300,500);
              show();
    setVisible(true);
    public static void main(String args[])
                  front3 f=new front3();
                  f.addWindowListener(
                       new WindowAdapter() {
                            public void windowClosing(WindowEvent e)
                                 System.exit(0);
     

    Couple of things:
    * either use your brackets like this:if(boolean) {
    }or like this:if(boolean)
    }but not both styles: it looks messy.
    * in Java it is a convention that variable names and method names always start with a lower case letter. Class names start with an uppercase. Of course you can make up you own coding style, but imagine that when you work with a couple of fellow students (or co-workers) on a project and everyone would use their own style: your code would be hard to read!
    * The linesshow();
    setVisible(true);do the same thing. Remove the show() since it is deprecated.
    Now, for your problem. The background of your JFrame is indeed changed, but you are placing other components on top of your JFrame so you can't see it's background color any more.

  • Linkage problem : cannot find the linkage instance

    Hello everyone,
    I'm trying to create a linkage to swap movie clip dynamically. I already create a linkage and after my movie clip symbol actuall say Export: contact_idea. But when I try to attachMovie("contact_idea"). It does nothing. Is there anyway that I can test that the linkage is actuall linked?
    Thanks

    Thank you very much for your reply. But I still have the problem.
    This is my situation.
    on my stage _root stage I have a movie clip named "head". In movie clip head also have movieclips, "part", and "MC_Holder" which play simultaneously. In "part" movieclip, I have a button which is supposed to be clicked and play "MC_Holder" movieclip which I have the problem.
    this is my code in my button in "part" movieclip
            _root.head.MC_Holder.gotoAndPlay("48");
            _root.head.MC_Holder.removeMovieClip();
            _root.head.MC_Holder.attachMovie("contact_idea","newidea",this.getNextHighestDepth());
            _root.head.MC_Holder.gotoAndPlay("48");
    _root.head is the movieclip in root which doesn't have any problem calling it.
    "contact_idea" is the linkage in my library, which I stated earlier that I linked it already and it displayed a symbol Export: contact_idea.
    Thank you very much for all of you.

  • "The system cannot find the path specified" error when installing a network printer running Win 7

    Some of the end users are having issues when trying to install network printers. We have created a portal where they can locate the printer they want to connect to, click connect, and the printer will download with the correct drivers on their PC's. The
    entire company is running Win 7 for their operating system. One end user in particular has had issues installing multiple printers from the portal, when I go to test installing these same printers on my PC, they all install successfully. trying to figure out
    why some end users hav issues with installation and others do not. They will get the error, The system cannot find the specified path. Any help would be great

    Hi JeffWilko,
    What is your current situation?
    To receive better analyzation, please provide more details?
    1. Could you explain a bit about the sentence ‘installing multiple printers from the portal’ ?
    2. Check the event viewer and share us the related error log.
    Please take the following steps for troubleshooting:
    1. Ping the printers
    2. Check if there are network firewall to block the access
    Best regards,
    Fangzhou CHEN
    Fangzhou CHEN
    TechNet Community Support

  • Invoke-IpamGpoProvisioning : Failed to import GPO. The system cannot find the file specified. (Exception from HRESULT: 0x80070002)

    Hello Im trying to configure IPAM but im getting this error.
    PS C:\Users\Administrator.IPADE.MX> Invoke-IpamGpoProvisioning –Domain actdir.ipade.mx –GpoPrefixName IPAM –IpamServerFq
    dn minte.actdir.ipade.mx –DelegatedGpoUser Administrator -DomainController discovery.actdir.ipade.mx
    Invoke-IpamGpoProvisioning : Failed to import GPO. The system cannot find the file specified. (Exception from HRESULT:
    0x80070002)
    At line:1 char:1
    + Invoke-IpamGpoProvisioning –Domain actdir.ipade.mx –GpoPrefixName IPAM –IpamServ ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidOperation: (:) [Invoke-IpamGpoProvisioning], Exception
        + FullyQualifiedErrorId : InvalidOperation,Invoke-IpamGpoProvisioning
    In the event viewer  I founf this but I don't know what to do.
    Import of backup failed. Error [The system cannot find the file specified.
    Details -
         Backup
             Directory: The system cannot find the file specified.
             Instance : C:\Users\Administrator.IPADE.MX\AppData\Local\Temp\1\ipamprov
             Comment  : {09673450-4573-42E8-85D0-104144DF0BA3}
             Source GPO:
                 DisplayName: IPAMGPO_DNS
                 ID: IPAMGPO_DNS
                 Domain: {7F345996-1D92-4194-85BF-72BFB5298EDA}
         Destination GPO:
                 DisplayName: ipamtestsetup.com
                 ID: IPAM_DNS
                 Domain: {447E8380-91AF-4C2D-8DAA-2C090A6400E8}

    Hi,
    Before going further, what was name specified in the IPAM provisioning wizard while selecting Group Policy based provisioning method? The GPO prefix name specified in the
    PowerShell command must be same as the one specified in the IPAM provisioning wizard while selecting Group Policy based provisioning method.
    Regarding Invoke-IpamGpoProvisioning, the following article can be referred to as reference.
    Invoke-IpamGpoProvisioning
    http://technet.microsoft.com/en-us/library/jj553805.aspx
    Best regards,
    Frank Shen

  • 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

  • The system cannot find the file specified. (Exception from HRESULT: 0x80070002)

    I m getting this error on page load of visual webpart added to the sharepoint site.What could be the issue??I m getting this error like in dev and not in test environment..What could be the issue??
    The system cannot find the file specified. (Exception from HRESULT: 0x80070002)

    could you please share complete stack trace of the error, there could be differnt reason for this error?
    share the stack trace and also check the ULS logs.
    did you try to redeploy the webpart( completely removing and re adding)?
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog

Maybe you are looking for