JCA DB Adapter process the same file twice in a clustered envrionment causing duplicate records

We have 2 Nodes in a OSB Cluster and for one of the webservices we use DB Adapter to process the records and send it to external system.
When ever we catch up with below exception and when the same records are reprocessed/retried the message is processed/sent by both the nodes which is causing a duplicate of records. 
'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <1e3df38069b38bbe:3fdbec90:14c7cca0f5f:-8000-0000000000000006> <1428935826370> <BEA-000000> <<oracle.tip.adapter.db.InboundWork handleException> BINDING.JCA-11624
DBActivationSpec Polling Exception.
Query name: [XYZDBAdapterSelect], Descriptor name: [XYZDBAdapter.ABCEnrollment]. Polling the database for events failed on this iteration.
Caused by JTS transaction was marked rollback only.
Please advice!
Thanks!

You have to use MOVE operation, if there is any remote exception occured, then move the file to someother folder and again move back to the same folder where the file pickup will start.
In that way you will be use the same file picked up next time when the polling happens.
It is considered good etiquette to reward answerers with points (as "helpful" - 5 pts - or "correct" - 10pts).
Thanks,
Vijay

Similar Messages

  • Sender File Adapter picking the same file twice

    We are facing a weird issue with File Sender Adapter
    We are using PI File Adapter ( NFS ) to read files for a NFS folder and
    processing those in PI.Normally it works fine. But for a scenario we
    are noticing it sometimes process the same file twice before archiving,
    thus duplicating the financial postings.
    What we have is :
    File Sender Adapter - NFS, Polling interval 60 secs, and Processign
    mdoe Archive. File name includes Wildcards - JE_Upload*.txt
    what we are noticing is that :
    when it picks up a file, it immediately polls again to check for
    another file, and sometimes the file is not yet archived so it picks up
    and reprocess the same file.
    If you see the message below, both belong to the same file, and it
    picked up the same file again in 12 secs after processing it the first
    time
       Successful 02.11.2009 15:01:00 02.11.2009 15:01:01   APMANUAL     urn:bl:i2g:003:100
    SI_SKF_FIDOC_OB XI Message
       Successful 02.11.2009 15:00:49 02.11.2009 15:00:50   APMANUAL     urn:bl:i2g:003:100
    SI_SKF_FIDOC_OB XI Message
    Anyone seen this behavior before?

    Hi,
    Please check the script which creates file in source NFS Folders. There is possibility that script is making change in file when PI is picking up the file.
    When PI picks the file first time it creates one message ID in system. After that if script is making any change in file without file name change (This need not necessary data change), for PI it becomes new file and new message gets generated in PI for same file.
    This error normally comes when File adapter is not able to archive file succesfully. For eg. file with same name alredy exists in Archive folder.
    File adapter generates the new message id whenfile get modified(eg.change in its length or data change) even though
    the file name is same and when file get change ,XI file adapter thinks that its new file and hence generate the new message id for same file.
    If file has same name and notmodified then XI adapter will not generate new message id and will keep on throw the error till you remove that file with same name from the
    archieve directory.
    -Warm Regards,
    Gouri

  • File Adapter does not process the same file twice

    SOA: 11.1.1.4 (non-HA).
    I have a file adapter that triggers when a new file gets to a directory; the file is not deleted after the process triggers.
    The process is supposed to call other services via a mediator and if any remote fault happens it should rollback automatically and re-trigger with the same file at the next polling interval.
    I have literally 3 scenarios:
    1). The file gets picked up once, the process fails and the file is never picked up again.
    Msg in log: The file : /xx/xx/xx/abc.xml is being ignored as it has already been processed
    2). If the mediator only routes to one service after the file gets picked up, it works as expect (that is rollback and restart at the next polling interval). If it has more than one sequential routing rule, I see the same error as above.
    3). File does not get picked up EVEN if I "touch" or rename the file.
    Msg in Log:
    File Adapter ProcessName Poller enqueuing file for processing :/xx/xx/xx/abc.xml
    File Adapter ProcessName Ignoring File : abc.xml as it is already enqued for processing.
    I have already checked, there is no permission issue.
    This is what my .jca file looks like:
    <adapter-config name="getFile" adapter="File Adapter" wsdlLocation="getFile.wsdl" xmlns="http://platform.integration.oracle/blocks/adapter/fw/metadata">
    <connection-factory location="eis/FileAdapter" UIincludeWildcard="*"/>
    <endpoint-activation portType="Read_ptt" operation="Read">
    <activation-spec className="oracle.tip.adapter.file.inbound.ScalableFileActivationSpec">
    <property name="DeleteFile" value="false"/>
    <property name="MinimumAge" value="5"/>
    <property name="SingleThreadModel" value="true"/>
    <property name="PhysicalDirectory" value="/xx/xx"/>
    <property name="Recursive" value="false"/>
    <property name="PollingFrequency" value="20"/>
    <property name="IncludeFiles" value=".*"/>
    <property name="UseHeaders" value="true"/>
    <property name="MaxRaiseSize" value="5"/>
    <property name="ListSorter" value="oracle.tip.adapter.file.inbound.listing.TimestampSorterAscending"/>
    </activation-spec>
    </endpoint-activation>
    </adapter-config>
    Thanks for looking into it in advance.
    Any help with the error messages will be appreciated.

    You have to use MOVE operation, if there is any remote exception occured, then move the file to someother folder and again move back to the same folder where the file pickup will start.
    In that way you will be use the same file picked up next time when the polling happens.
    It is considered good etiquette to reward answerers with points (as "helpful" - 5 pts - or "correct" - 10pts).
    Thanks,
    Vijay

  • Illustrator CS3 opening the same file twice

    Hoping someone has an answer for this because I'm stumped.
    Just set up CS3 on a new iMac for one of my users, imported her Illustrator files from her hold PC (also running cs3).
    When she opens a file its opening the same file twice. When she modifies one, its all being mirrored on the other. When she saves, she has to save both "files" although they're really only 1 file.
    Any ideas?

    You can open multiple windows looking at the same file. It comes in handy when you're zoomed in, working on some detail and want to see the big picture...
    Open a new one by going to the window menu and selecting "new window" This will open a new window with "filename:2" in the title bar.
    To get rid of additional windows, just close them. You'll have to save the file to get it to remember that the other windows are closed.

  • Export to disk to the same file twice or more

    Post Author: Koen
    CA Forum: Exporting
    Hello,
    i am writing an application in vs 2008 en cr 2008.
    The purpose of the application is to send offers to the customer throug e-mail.
    The report is exported to filename "Offer Nr : 70012.pdf" in the report the name of the customer is changed to his name and then the PDF is send via smtp server.
    The first time this works fine, the second time i get an error : The process cannot access the file "Offer Nr : 70012.pdf" because it is being used by another process.
    Code :
    public void ExportOfferToPDF(String FileName, String EMail, string DocumentId, String ContactId)         {
                DemandeDePrix1.RecordSelectionFormula =                "{vw_print_doc_demande.id} = '" + DocumentId +                "' and {vw_print_doc_demande.ContactId} = '" + ContactId + "'";
                DemandeDePrix1.ExportToDisk(ExportFormatType.Excel, FileName);
                SendEmail(FileName, Email);                    }

    Post Author: IdoMillet
    CA Forum: Exporting
    Sounds like you may need to place a delay between the export and the email.If you'd like to achieve the same thing without the need to run the report again and again for each ContactID, consider a 3rd-party tool.  See list of such tools at: http://www.kenhamady.com/bookmarks.html.My Visual CUT software can do this in a single pass without a need to know the list of group values ahead of time -- they are identified on the fly based on the information in the report.- Ido

  • LR 4.2 wants to import the same files twice

    I'm using LR 4.2, Windows 7 Pro.
    I notice lately that sometimes when importing new files from a card, previously imported files are sometimes imported again. 
    I do check "organize my files by date," and after the date folder is created, I typically modify the folder name to add a description.  I also rename files on import.  I always check "new." 
    Still, I thought that LR could keep track of this type of stuff. Someone please explain what might be going on.
    Thank you,
    Robert

    Not sure what to say.
    It means the error occurred very near the end of the exporting code. I don't suppose you have any Post-Processing defined, do you? (in export dialog box / export preset).

  • I am having a silly problem with Keynote and Pages. When ever i open a file, it opens the same file twice ?

    When ever i open a file using key note or pages. The files opens up two times. I the ave to close one version of the file and only then can begin work.
    Could you please help me how to get rid of this ?

    try routine software maintenance:
    1 - shut down the Mac
    start up the Mac again with the shift key pressed, release when Mac logo appears, let the Mac boot up it will take longer as it will be repairing the software
    2 - Applications > utilities > disc utility > select the system drive > disc first aid > repair permissions
    reboot normally and see if that helped

  • Problem in picking the same file

    Hi guys,
    i am picking the file a.txt from FTP server and sending it to the reciever.
    now howdo i make sure that the same file is not picked again if by chnace the file exist again by mistake.
    please reply guys,
    thanks
    Sahil

    > Hi Sarvesh u r right.
    >
    > i mean  in first attampt "a.txt"; file will be picked up by FTP adapter and will be deleted/archived from source location AND again by mistake if "a.txt"; file comes in source directory then i want to avoide to process the same file again.
    >
    > is it not possible in xi?
    I will not say that it is impossible, because I have a feeling that it can be achieved by using an OS command.
    If you see the option under Processing tab in your CC, there you will see "Run OS Command Before Message Processing". So may be you can write a script which will check if the same file is already present in target directory then don't pick the same file from source directory.
    At the other hand OS Command theory will fail if the same file was processed but it was deleted from the target directory because in that case script will have no clue to check existance of same file and in that case it will allow the CC to pick the same file again.
    Try it and let us know.. (I don't have any experance in writing scripts or using OS command).  If you feed difficulties in using OS command then search sdn and for writing an script you can create another thread and ask your question.

  • How do I use the same photo twice in a slideshow created in iPhoto'11?

    I created a slideshow in iPhoto'11 and would like to use the first slide also as the last slide.
    How can I use the same photo twice?

    Seems you have to duplicate the photo in your Library to add the same picture twice.

  • OSB File polling working twice with the same file

    I have a problem executing a proxy service that get files from a file system. Everything in the flow works as expected, but at a certain point I must wait an update on a database and the process awaits for that change. Everthing goes normal if the update comes within the next 1-7 minutes, but after that if the process is still there(generally 9-11 minutes), a second process is called and the file processed is the same. After the first process is called the folder is empty so I can not understand why the proxy is called again with the same file, since there is nothing on the folder. This can happen since I am doing database modifications.
    The process is only invoked twice with the same file, no process is called again(A Third one) if the two processes are still working, wich is weird. since nothing in my proxy logic returns to the beginning.
    Does "Weblogic/OSB" tends to free resources on a specified time, such as "Max Stuck Thread Time" but for files or other resources?
    Any ideas why this is happening
    Thanks in advance.

    I think this is due to transaction timeout. The PolledMessageListenerMDBEJB under File Transport provider has a transaction timeout of 10 minutes. So if you are having a very long running transactions which spans more than the 10 minutes, you might see the rollback happening due to timeout.
    To confirm is this is the case, when this issue occurs, Go to JMS Modules >jmsResources >wlsb.internal.transport.task.queue.file_auto_n >Monitoring. You should see messages in messages pending column.
    click Show Messages. Click on a message and check Delivery count. This should have a value 1 or more which should mean message has been rolled back atleast once before.
    if it is the case you can try modifying the transaction timeout value of PolledMessageListenerMDBEJB under File Transport provider in deployments and then update the file transport provider deployment. Parallely check with support on what is the official recommendation for increasing timeout.

  • HELP! Lost ALL my bookmarks & Bookmark Toolbar is empty. Attempts to restore from the backup files yields an error message that says, "Unable to process the backup file." Have tried opening nearly all 10 existing backups w/same result.

    I was in the midst of a Firefox session w/two windows open. Nothing special about the sites. No fancy javascripts or anything. When I closed the second window and opened the "History, Show all History" pull-down, the Library screen had no data in it.
    I looked for the Bookmarks.html file in my profile and it is missing. I tried renaming an old .bak file from a couple years ago and I can open it as a file and see the text of it displayed but Firefox will not recognize it as and open it as the Backups file.
    Following the directions already posted - using "History, Show all History" then the "Import and Backup, Restore" process - allows Firefox to see all the backups, but trying to restore from any of them yields the "Unable to process the backup file" error message.
    I have re-started my machine from a cold start - twice now.

    The file that stores bookmarks is probably damaged, for details on how to fix that see http://kb.mozillazine.org/Unable_to_process_the_backup_file_-_Firefox

  • The same file with the same name need to call two RFC's with the sequence

    i have to pick up the same file with the same name  and call the two RFC in sequence
    scenario.i have xxx.txt file.file should be proces first calling the first rfc .
    I created two different communication channels
    for the first sender file communication channel i should not use processing mode archive,delete,Test
    and only option is set read only.
    if i set the read only the file ..then i can not use the same file again to call second RFC.
    how we can acheive the above scenario?
    Regards,
    Hyma

    If you want to file need to be picked up twice in same folder, it seems it is hard for PI adapter to achieve it, you should look for API's that control adapters availibility.
    But if you have different folder, then it make your scenario simpler since you can process first time, then output to another folder, configure another adapter to pick up from different folder.
    Regards
    Liang

  • Email attachment name in sender mail adapter to the receiver file adapter

    HI ,
    Ths is regarding email to file scenario. I am trying to create file (in rceiver file adapter) with the same name as the email attachment that i read from mail sender adapter. I want ro use adapter module for this. I could find from blogs that there is module - GetAttachmentName - available that i can use for this in sender mail adapter.
    Can you please let me know what whetehr i neeed to mention any module key and parameters for this.
    I assume , i need to do following steps :Please confirm.
    1. i can use this module - after payload swap module and before standard mail adapter module in sender mail adapter
    2. select ASMA option in advanced tab in sender mail adapter
    3. In receiver file adapter select ASMA option in advanced tab in sender mail adapter
    4. Also select file name option in ASMA in sender mail adapter
    Thanks,
    Vamsi

    Hi Vamsi,
    your scenario is also described here: Re: sender mail adapter - attachment name
    If you use the Module getAttachmentName, which is described here,
    http://wiki.sdn.sap.com/wiki/display/XI/AdapterModulePI7.0GetAttachmentName
    your scenario should work as you described it.
    You just need to make sure that the Attachment Name that you read in the first place, is mapped to the Filename Attribute of the
    Fileadapter (http://sap.com/xi/XI/System/File/FileName).
    regards,
    Daniel

  • How do I replace bookmark bar that was lost when a new Mozilla Fox Start page suddenly appeared with a Zone Alarm Community Toolbar, and nothing I have so far tried, working with "Show all Bookmarks", works ("Unable to process the backup file).

    My current version is 6.0.2. A box appeared a few days ago informing me of an update to 7 (x?). I declined for the time being.
    Then a Start Page just showed up missing the bookmark tool bar. I tried to import a bar from another browser. Nothing showed up. Then, I went to "Help". First, I clicked on "About Firefox" where I was informed of an update. This time, I tried it. When I clicked on "Apply Update", I received a message; 'Update could not be installed" despite there being no other Firefox browsers running.
    I went back to "Help" and clicked on "Firefox Help". A page came up with the URL in place, but the page would not load ("Cannot find server at support.mozilla.com"). After several clicks on "Try Again" with the same result, I copied the URL and pasted it into a different browser, from which I am now working.
    Before sending this question, I tried the two procedures ("Manual Backup" and "Restoring From Backup") found on Bookmarks/Show All Bookmarks/Import And Backup/Restore, using both "stored backups" from Mozilla's Profile folder and "Choose a file", as well as Bookmarks/Show ... /Backup. In each case, the response was, "Unable to process the backup file".
    I had previously tried another method I found on Google which involved copying and saving a Mozilla backup file (this is the file I used in the procedure above - "Choose a File") found in the C:/Documents And Settings/.../Profile Folder, then renaming the original file "backup.HTML" and saving it in a folder one level up from its original location. The Bookmark bar was to show up after shutting down and reopening Mozilla - it never happened. I replaced the original backup file.
    It occurred to me to locate the Bookmark File for this browser (Chrome) and using it in the "Choose a File" method, referred to above. But there is no extension included in the file name, and I was afraid to try it.
    I'm out of ideas. Is there something else to try?

    Check that the Bookmarks Toolbar is visible and that the "Bookmarks Toolbar items" is still placed on the Bookmarks Toolbar.
    If the menu bar is hidden then press F10 or hold down the Alt key, that should make the "Menu Bar" appear.
    Make sure that toolbars like the "Navigation Toolbar" and the "Bookmarks Toolbar" are visible: "View > Toolbars"
    * Open the Customize window via "View > Toolbars > Customize" or via "Firefox > Options > Toolbar Layout" (Linux, Windows)
    * Check that the "Bookmarks Toolbar items" is on the Bookmarks Toolbar
    * If the "Bookmarks Toolbar items" is not on the Bookmarks Toolbar then drag it back from the toolbar palette in the customize window to the Bookmarks Toolbar
    * If you do not see the "Bookmarks Toolbar items" or other items that are missing in the toolbar palette or on a toolbar then click the "Restore Default Set" button
    See also:
    *http://kb.mozillazine.org/Uninstalling_add-ons
    *http://kb.mozillazine.org/Uninstalling_toolbars

  • Can a Mini DisplayPort to Dual-Link DVI Adapter do the same job as the Mini DisplayPort to DVI Adapter?

    Can a Mini DisplayPort to Dual-Link DVI Adapter do the same job as the Mini DisplayPort to DVI Adapter?  Meaning, can I connect a DVI screen less than 30 inches?  Why would I buy the expensive product?  Simply because I might have to sometimes work with a small screen, sometimes with a big, and it would save me the trouble and money of buying both.  If the answer is yes, do I have to constantly plug it in USB, even on a smaller screen?

    Hi p,
    Can a Mini DisplayPort to Dual-Link DVI Adapter do the same job as the Mini DisplayPort to DVI Adapter? 
    Yes.
    Meaning, can I connect a DVI screen less than 30 inches?
    Yes.
    Why would I buy the expensive product?
    Don't know which products you're looking at, so can't say.
    Simply because I might have to sometimes work with a small screen, sometimes with a big, and it would save me the trouble and money of buying both.  If the answer is yes, do I have to constantly plug it in USB, even on a smaller screen?
    A dual link is supposed to handle any single link signal, it just has twice the bandwidth.

Maybe you are looking for

  • My phone no longer outputs any sound via it's speakers

    iPhone 4S, iOS 6.1.3 My phone no longer outputs any sound via it's speakers. I can hear sound with headphones and also if it is connected by the dock connector it will output sound to whatever it is connected to. I have tried plugging and unplugging

  • AV conference from MAC to PC

    Here is the thing. Most of my friends I want to video conference with are using Messenger for Windows (they are slowly getting converted or sold to mac but still on PC for now. Is there an easy way for me to video conference with them other than havi

  • Unable to add AP Invoice

    Unable to add AP Invoice based on a Purchase order or even directly for one particular item. We get the following error Stock Account is not defined [ AP Invoice Rows- Warehouse Code] Line 2 'Item Code' Message Message 173-77 We are unable to create

  • Send photos by e-mail from iPhoto.

    I have problem to share by e-mail from iPhoto 11. I have fullly functional Mail on my macbook pro with 6th e-mail accounts. When i tryed to send some photos from iPhoto 11 i got message: Your email did not go through because the server did not reply.

  • SAP Utility to Generate New Include for Output Determination?

    We transported our stuff to Prod. We do not see the SAP include created....I know I used a utility before to generate SAP include code. Does anybody know what that is?      Thank-You.