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

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

  • 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.

  • 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

  • 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

  • Prevent running the same program twice or more + some other..

    Hi All,
    I'm trying to figure out how to do the following
    1) How can I prevent a user from running the same program more than once.
    2)If a user try to shut down the computer while my program is running, I need to trap it down and save some data before terminating the program, how can I do it?
    Can any one help me???
    thanks a lot in advance!

    Don't [url http://forum.java.sun.com/thread.jspa?threadID=699067]cross post.
    Answers in the other post please.

  • 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

  • Adobe reader will not open pdf files I have saved as, or, export as pdf to my desktop (latest Maverick). The same file does open when I am on the source website (i.e. user manuals etc.). Why?

    Adobe reader will not open pdf files I have saved as, or, export as pdf to my desktop (latest Maverick). The same file does open when I am on the source website (i.e. user manuals etc.). Why?

    iMac G4, Mac OS X (10.4.9)
    Make sure you have the latest Adobe Reader installed for your OS.
    http://www.adobe.com/support/downloads/product.jsp?platform=macintosh&product=10
    Did you try using Preview. If you control click on the PDF on your desktop you can use the "open with" option.

  • 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.

  • How do I open make iBooks regognize two books created in iBA as different books/files? (iBooks opening separate books as the same file)

    I am trying to load two different books created in iBooks Author into iBooks. These books were exported instead of uploaded to the iBookstore, therefore I download them and then open with iBooks on an iPad.
    Here is my problem:
    When I download a book (Book A), it opens in iBooks correctly. If I download a second book (Book B),  instead of opening  Book B, iBooks re-opens Book A. This also happens vice-versa if I delete Book A and then upload Book B. Essentially, both books cannot be loaded in iBooks at the same time, and iBooks treats the second download/open attempt as the second book being opened, when in actuality it opens the wrong book.
    When I looked at the authoring files, I saw they had the same title listed in the Book Pane in iBA. Even when this title is changed, the books fail to open correctly in iBooks.
    Has anyone run into a similar problem? Also, I am wondering if legacy meta data is a possible reason for iBooks to open the same book twice instead of loading and opening the new book? (if this is the case, is there a way that this legacy meta data can be deleted)?
    Thanks in advance for your help/support.

    Update: Solved.
    Either creating a new file or saving the old as a template file & renaming it solved my problem.
    Here is the discussion where I found that information:
    https://discussions.apple.com/message/20351734#20351734

  • 2 computers at home working with the same files i keep on an external hard drive to free up space the internal drives. I have an airport extreme time capsule to back up both computers. how can i get it to back up the hard drive plugged into time capsual?

    I want to run both my macbook pro and imac from a single external hard drive.
    i bought a time capsual and set it us as my network and plugged my external hard drive into it. so now both my computers can access it and work on the same image and film files. the time capsual does a lovely job of backing up both my computers and my wifes. but i cant get it to back up the external hard drive that is conected to it. ive looked on the forum and it seems to me that its not possible, which seems odd to me that mac would enable you to plug a hard drive into the time capsual but not let you back it up, what is the point in that!?
    so my question is can i back up the external hard drive with time machine, and if not how do i set up my home network so that all my computers can access the same files and time machine will back everything up?
    I did the upgrade to maverics on my imac which has caused me a major headache as now all my apature albums have been updated to 3.5.1 but my macbook pro can no longer open them because im unable to upgade it to maverics, but thats another story.
    If anyone can help me with my time machine issue i would be very greatful.
    many thanks

    i cant get it to back up the external hard drive that is conected to it. ive looked on the forum and it seems to me that its not possible, which seems odd to me that mac would enable you to plug a hard drive into the time capsual but not let you back it up, what is the point in that!?
    so my question is can i back up the external hard drive with time machine, and if not how do i set up my home network so that all my computers can access the same files and time machine will back everything up?
    The TC for whatever it is promoted as,, is still a simple hard disk in a router. It was designed for laptops to use as a backup. A desktop can use a USB drive, faster cheaper and more reliable than a network drive but the laptops need a network wireless storage. Hence the TC. It is NOT nor was it ever designed to do the job you are trying to use it for.. it is not a NAS.. it has no internal backup.
    What is more Time Machine has no ability to backup network drives no matter what their format.
    So the solution is to either use a real backup software.. eg Carbon Copy Cloner which can do far more than TM can or ever will. It is around $40 so hardly expensive. But since the TC was never designed for it, this will be slow.. and the next question is where are you going to back to. Using the TC as backup location for your files is less than great. Primarily because all your files are still on the same device albeit on different disk. It is also because mixing data and TM backups is not so great. The TC cannot be partitioned although you can alleviate some of the issues..
    See this info.
    Q3 here http://pondini.org/TM/Time_Capsule.html
    Let me go back to the question.
    so my question is can i back up the external hard drive with time machine, and if not how do i set up my home network so that all my computers can access the same files and time machine will back everything up?
    Fundamentally the TC is the wrong place to do this.
    The right place is to plug the USB drive into the iMac.. since it is a desktop machine and you are probably not lugging it around. Simply share the USB drive to the network.
    The MBP can then access the USB drive, and it will be around twice the speed of networking to the same drive on the TC. TM on the iMac can then also backup the USB drive to the TC as part of the normal TM backups.
    The only thing is the iMac needs to be turned on to allow MBP access.

  • Multiple formats of the same file

    I'm using LR 1.2 and notice that if I have a JPG and either raw or dng of the same file in a folder LR shows one entry in the grid and "filename.dng+jpg" for the filename. If I have all three (jpg, nef, dng) it will only show the dng+jpg and treats the nef like a duplicate in the catalog if I try to import it. So:
    1) Which file is being used if you make LR edits and export?
    2) If you delete this entry from the catalog and disk - do you loose both files?
    3) Is there a setting to show the actual individual files rather than combine them like this?
    It's confusing the heck out of me.

    Make sure you have "treat jpeg files next to raw files as separate photos" preference checked if you like to see the jpeg as:
    1) Lightroom uses the jpeg ONLY for the very first preview. After that, everything is done using the raw file. The jpeg is basically ignored completely as the RAW is considered the original. You really only need the nef or dng file.
    2) Yes
    3) Yes, you have to import using the preference noted above. In this case you'll get multiple entries for the same picture but with different original files.
    Lastly, for Lightroom there is no real difference between the nef and the dng as the data in it is the same. If both are present it will probably use just the dng but I have never tried it. Having multiple files with the same filename but different extension is generally a recipe for disaster not just in Lightroom.

  • HT204053 my wife and i have seperate itunes accounts is there a way we can link our accounts to share songs so we dont have to pay for the same song twice?

    When the first ipad came out i set it up and created an itunes account, since then she got an iphone and an ipad and everything was good. I had an android but wanted to try out the iphone. When i set it up ut jumpled all of our contacts, apps, and everythin. it was a mess.
         Since, i purchased and ipad 2 and an iphone and to keep our stuff from combing i used a different computer and created an new apple ID for myself so our info wouldnt combine, I was wondering if i did the right thing or if i should have went about it a different way. I was going to see if there was a way when she purchased a song i could get it. I dont want to pay for the same song twice and only want to share songs. If i cant do this can i copy her library and paste it into my itunes??
    Any help wouldl be greatly apprecieated we both have icloud set up but i cant figure out the best solution.

    Welcome to the world of digital media. Your can't really transfer it. I don't know what the rules are about transferring to your spouse but I do know that in some cases when you die, your heirs cannot inherit your digital media. This is why there is still an advantage to buying the CD since the usage rights belong to whomever holds the physical media.
    A possible workaround is to burn the songs to a music CD with yout account (tracks only without song titles) and then having your wife upload it as a regular music CD onto her account. It's been a while since i've done this so I'm not sure if it would work now.
    Please note that I'm not advocating copyright and/or TOS violations. I'm only suggesting ways to copy music for your own personal use which has traditonally been permitted. I only did this because I wanted to convert iTunes songs to mp3 files so I could burn them onto a data CD for use in my car. It would make sense that since married couples are a joint entity, this would be personal use.
    Also, I'm not a lawyer so don't take this as legal advice.

  • Can I use the same SSI twice in same page?

    Hey all,
    i'm having a problem whereby several SSI's are not showing on my page.
    I'm wondering if it's because the instances that are not showing are the ones called the second time round.
    Before i start posting code etc, i just wondered if it was actually not possible to call the same SSi more than one time on a page.
    I can't seem to find documentation stating this anywhere.
    Thanks in advance,
    Katrina
    Edit 1: I tested using a new unique SSI (i.e. one that wasn't called anywhere else on teh page, and it doesn't show either... so I've started a new thread where i post my code here: http://forums.adobe.com/message/5345250#5345250
    Edit 2: I guess i didn't test properly initially. It seems it is NOT possible to use the same SSI twice on a page...   What a bummer!!!

    This issue was resolved in a different thread where s member supplied the following information...
    t's certainly possible depending on the PHP command which you use as the include directive.
    <?php require_once('includes/include-address.php'); ?> will only include the file once
    <?php require('includes/include-address.php'); ?>  will include the file more than once
    <?php include('includes/include-address.php'); ?>  will include the file more than once
    Each has its own rules and quirks.
    http://php.net/manual/en/function.require-once.php
    http://www.php.net/manual/en/function.include.php
    http://www.w3schools.com/php/php_includes.asp

Maybe you are looking for

  • How can I delete all the email from a user's account?

    I have a user account with a huge amount of mail (around 50K messages) that Apple Mail can't deal with... it constantly hangs and/or crashes whether I use POP or IMAP to try and delete all the mail from the client. How can I delete all the mail from

  • Disabling "Do You Want To Use..." message

    Hey all, I've seen a post here in the support forums on this topic and can't for the life of me find it, so please forgive my asking again. I don't use Time Machine. Every time I attach an external HD, start/restart my computer with an external HD at

  • Terminal

    ok guys, I'm not new to macs but don't use terminal very much. Just got my new i7 and opened terminal. I entered ' smartctl -a /dev/sdX | grep LoadCycleCount ' hoping to find out how many cycles my hard drive has registered not knowing if the command

  • A note I need was deleted from the iCloud. Can I recover it? I hope!

    I use iCloud to back up my phone. I'm not sure how exactly it got deleted, but it had valuable information on it. I have been around the community to find a solution and most must be old, all suggest extracting from an itunes backup. Any help will be

  • DVD-RW iMovie editing

    We took old home VHS tapes of the kids and burned them to DVD-RW using a Sony RDR-VX560. The DVD plays fine in iDVD. I would like to rip this DVD to the computer and using iMovie edit out the stuff we don't want and burn that to a DVD. What and how d