Script or bulk process to attempt delivery of journal NDRs

I am working for a client who has ended up with a significant number of journal NDRs due to an issue that can potentially be easily solved. If the issue can be solved, I'd like to attempt delivery of all of the items again. Given the large number, it's unlikely
I'd have time to attempt to re send each journal report.
Outlook Web App has a banner for each email item displaying "to send this message again, click here". Which is very useful... per item. I've tried to access the email item using Exchange Web Services to see if this shows up as a method or action,
but can't see to find anything obvious.
Does anyone know of a way to do this using a script?

simple example:
#target indesign
var destFolderPath = Folder.selectDialog('DestFolder').absoluteURI + '/'
var currDoc = app.activeDocument;//already prepared document (csv connected) is open and frontmost
currDoc.dataMergeOptions.createNewDocument = true;    
var maxRange =  currDoc.dataMergeProperties.dataMergePreferences.recordRange.split('-')[1];//count of recordRanges
//one file for each record
for(var  i = 0; i < maxRange; i++)
with(currDoc.dataMergeProperties.dataMergePreferences)
recordSelection = RecordSelection.ONE_RECORD;
recordNumber = i+1;
currDoc.dataMergeProperties.mergeRecords();
app.activeDocument.save(File(destFolderPath +(i+1) + '.indd'));
app.activeDocument.close();

Similar Messages

  • How to run shell script using External Process in Process Flow?

    Hi,
    We can run external process using Process flow.
    I would like to run shell script as external process in Process flow.
    Could any one please explain it?
    Thanks and regards
    Gowtham Sen.

    HI,
    As you said I tried this case. I got the following error. The script is running successfully while I tested at unix command prompt.
    The error is as follows..
    tarting Execution PFPS_SMPL_RUNSHELL
    Starting Task PFPS_SMPL_RUNSHELL
    Starting Task PFPS_SMPL_RUNSHELL:EXTERNALPROCESS
    /SOURCE_FILES/CollectFiles.sh: line 1: ls: command not found
    /SOURCE_FILES/CollectFiles.sh: line 1: wc: command not found
    /SOURCE_FILES/CollectFiles.sh: line 1: ls: command not found
    Completing Task PFPS_SMPL_RUNSHELL:EXTERNALPROCESS
    Starting Task PFPS_SMPL_RUNSHELL:EXTERNALPROCESS_1
    SQL*Plus: Release 10.1.0.2.0 - Production on Fri Sep 29 22:57:39 2006
    Copyright (c) 1982, 2004, Oracle. All rights reserved.
    ERROR:
    ORA-12545: Connect failed because target host or object does not exist
    Enter user-name: SP2-0306: Invalid option.
    Usage: CONN[ECT] [logon] [AS {SYSDBA|SYSOPER}]
    where <logon> ::= <username>[<password>][@<connect_identifier>] | /
    Enter user-name: SP2-0306: Invalid option.
    Usage: CONN[ECT] [logon] [AS {SYSDBA|SYSOPER}]
    where <logon> ::= <username>[<password>][@<connect_identifier>] | /
    SP2-0157: unable to CONNECT to ORACLE after 3 attempts, exiting SQL*Plus
    Completing Task PFPS_SMPL_RUNSHELL:EXTERNALPROCESS_1
    Completing Task PFPS_SMPL_RUNSHELL
    Completing Execution PFPS_SMPL_RUNSHELL
    My scenario is---
    I am trying to return a file name from one shell script. I created a external process for that. After completion of this process, I am running another script which takes that file name and trying to create a external table. The both scripts are runnning successfully. But while I am trying to run using process flow, its not coming.
    And I am not getting the way to catch the output of external process and pass it as parameter as another external process.
    Any suggestions are welcome.
    Thanks and regards
    Gowtham Sen.

  • Bulk process advice

    Here my sample design of the bulk process with limit of row inserted
    declare
    n_rows_to_process NUMBER := 1000;
    CURSOR my_cursor IS
    select XXXXX
    BEGIN
    OPEN my_cursor;
    loop
    FETCH my_cursor BULK COLLECT INTO
    XXXX
    LIMIT n_rows_to_process
    FORALL i IN 1 .. PUR_CCN_TAB.COUNT
    insert XXXX
    commit;
    -- return;
    exit when my_cursor%NOTFOUND;
    END LOOP my_cursor_loop;
    CLOSE my_cursor;
    End;
    This is only for 1 cursor select. It complete inserted the row into temp table.
    So , when I put 2 cursor into this process. It wouldn't run the second cursor because the 1 cursor it already exit the process.
    Here my sample design for 2 cursor
    declare
    n_rows_to_process NUMBER := 1000;
    CURSOR my_cursor IS
    select XXXXX
    CURSOR my_cursor2 IS
    select XXXXX
    BEGIN
    OPEN my_cursor;
    loop
    FETCH my_cursor BULK COLLECT INTO
    XXXX
    LIMIT n_rows_to_process
    FORALL i IN 1 .. PUR_CCN_TAB.COUNT
    insert XXXX
    commit;
    -- return;
    exit when my_cursor%NOTFOUND;
    END LOOP my_cursor_loop;
    CLOSE my_cursor;
    BEGIN
    OPEN my_cursor2;
    loop
    FETCH my_cursor2 BULK COLLECT INTO
    XXXX
    LIMIT n_rows_to_process
    FORALL i IN 1 .. PUR_CCN_TAB.COUNT
    insert XXXX
    commit;
    -- return;
    exit when my_cursor2%NOTFOUND;
    END LOOP my_cursor2_loop;
    CLOSE my_cursor2;
    End;
    Is there any SQL command that can used like complete the 1 loop and continue the 2nd loop?
    Can we join the 2 cursor in bulk process?

    You are mixing up cursor and fetch with bulk collect, forall within a loop and an out-of-scope exit.
    Forget the cursor, open, loop, fetch and exit.
    just do: select bulk collect and the forall.
    Your second round of select should then be just fine ;)

  • Creating script in Batch Processing

    I am having issues creating a script in batch processing for any user, including the admin. The error is "Permission Denied - 70". I've rebooted servers, checked shared/NTFS permissions on the folder locations for the application. This is FDM 11.1.1.1, SS and HFM are 11.1.1.2.
    Not finding anything as of yet, and we really need this to work.
    Any help would be great!
    Thanks,
    --Ed                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Ed,
    This has to do with OS permissions ... not permissions inside the application.
    Please make sure that the user you are running the software as has full control of the NTFS FileShare.
    Thank you,

  • GR Blocked stock process in Inbound delivery.

    Hi All,
    I want to do the GR blocked stock process through inbound delivery.
    But while i create Inbound delivery, system is automatically picking 101 movement type.
    How to proceed.
    Thanks in advance
    Regards
    KK

    Check in
    Spro -> sd -> sales -> sales documents -> sales docu item -> define item categories
    Here i think the entry for your Z item category is not done, please take the help of your SD personnel & the issue should be resolved.
    Hope the above helps.
    Regards,
    Vivek

  • Sap script real time process

    hai this is siva ,
    i want sap-script real time process.

    hai this is siva ,
    i want sap-script real time process.

  • BSOD invalid process attach attempt

    I received a toshiba satellite C55D for christmas. It came with windows 8.1 64 bit installed. My issues is that every
    now and then I'll get a BSOD saying invalid process attach attempt which makes me refresh the pc and if that does not work i am forced to restart the whole pc (pretty much factory restore) and have all of my programs deleted. The first time this happened I
    had just installed a game off of steam, and it crashed after turning my computer off and then back on again. I restored it all and then it was fine for a few days then happened again suddenly. I've searched the far reaches of the internet for this specific
    code, but to no avail. I contemplated downgrading to Windows 7, but was advised otherwise by a friend of mine. If someone could please help I would greatly appreciate it

    The link worked great.
    The error appears to be caused by the SynTP.sys which is a Synaptics Touchpad driver:
    INVALID_PROCESS_ATTACH_ATTEMPT (5)
    Arguments:
    Arg1: ffffe00000294500
    Arg2: ffffe00002bd7900
    Arg3: 0000000000000000
    Arg4: 0000000000000001
    <snip>
    PROCESS_NAME:  avgcsrva.exe
    <snip>
    IMAGE_NAME:  SynTP.sys
    <snip>
    BUCKET_ID:  0x5_SynTP+3b9fb
    In that error, the latest one but not the other one, the process that crashed was avgcsrva.exe, an AVG process which may indicate an issue with AVG. 
    I would suggest to uninstall the Synaptics Touchpad driver that is presently installed and then install the following one from Toshiba:
    http://support.toshiba.com/support/viewContentDetail?contentId=4003469
    That driver may be an older driver but may work better that the present driver.
    If the issue persists consider uninstalling AVG, at least temporarily, and see if it helps.
    Afterward you could reinstall AVG using the latest version or go with alternative security software such as Window 8.1 built-in antivirus (Windows Defender) and firewall. 

  • Returns Processing using Inbound delivery transaction VL31N or BORGR

    Hi Experts ,
    Our business Requirement is to use  VL31N /BORGR to process the return deliveries .
    The Standard Functionality of this transaction is restricted to manage the Inbound Processing (Deliveries from Suppliers u2013 Document Category u20187u2019 (Shipping Notification) .
    My question is can we enhance the SAP code to process the retuns delivery  .
    Is it possible to achieve this functionality via Customizing .
    If anyone had such business requirement  and if you a solution for this please help  << Moderator message - Everyone's problem is important >>.
    Regards,
    Rupa
    Edited by: Rob Burbank on Oct 19, 2010 3:25 PM

    Hi ,
    Which kind of return delivery are you speaking about?
    Yes the deivery  is return to vendor .
    Yes we will be  create the return delivery using VL01N  with reference to returns Sales Order .
    But after this oulbound deilvery is created Our business requirement to use BORGR transaction to process it further.
    The BORGR transaction is used for Admin Goods reciept multi GR Posting  and it used to handle only the inbound deliveries only .
    I want to know is it possible to completly process the oubound deliveries using an inbound dleivery transaction  if we modify the SAP code .
    Just want to know if i modify the SAP code using enhancements will the existing SAP code of this program support such deliveries .
    Regards ,
    Rupa

  • WebLogic 6.1SP3: CGI Script Displayed, Not Processed

    I've setup CGI support in my WebLogic 6.1SP3 installation, on my Solaris box. I am attempting to run a simple script that prints a message to the screen/browser. When I attempt to run the CGI script, I see the contents of the script on screen. The script is never actually processed.
    Has anyone else encountered such a problem?

    Hi Rick,
    Just a shot in the dark, but does the script have eXecute privs? You
    should ask your question in the webserver newsgroup group:
    http://newsgroups.bea.com/cgi-bin/dnewsweb?cmd=xover&group=weblogic.developer.interest.webserver&utag=
    Thanks,
    Bruce
    Rick wrote:
    >
    I've setup CGI support in my WebLogic 6.1SP3 installation, on my Solaris box. I am attempting to run a simple script that prints a message to the screen/browser. When I attempt to run the CGI script, I see the contents of the script on screen. The script is never actually processed.
    Has anyone else encountered such a problem?

  • Order status is coming "Being Processed" after return delivery

    Helloo Experts,
    We have a current situation here, Where order type (OR) with item cat (TAN) creates SO then delievry (LF) happened and PGI..
    Due to some reasons the order needs to be void.Then the SO has been changed (VA02) by adding item cat YREN with same quantity, then delivery (LF) ,PGR and billing (F2).
    Now after final billing the order status coming as "Being processed" instead of "Closed" at the document flow.
    Does SAP standard practice supports this process flow OR it should be Return order (RE),Delivery (LR) and return of credit (RE)  to make the Order status  "Completed".
    Is there any other ways to make these order's status changed from "Being Processed" to "Completed"
    Waiting for some valuable inputs.
    Thanks
    SM

    Then the SO has been changed (VA02) by adding item cat YREN
        with same quantity, then delivery (LF) ,PGR and billing (F2).
    This process is wrong.  You have to create a new return sale order with reference to the parent billing document.  If billing has not been generated, then you have to reverse the delivery via VL09.
    G. Lakshmipathi

  • "A script is already running" while attempting to run more than one item

    We upgrade recently to ODT 11.2.0.3.20. Since then, attempting to run more than one item from the Solution Explorer (by selecting the items, right-clicking, and selecting "Run") results in a popup error of "Oracle Developer Tools. A script is already running". If many items are selected it results in many error messages and only a random few of the items are actually executed on the server. Also, choosing "Run On" now results in it prompting for the target database for each item selected (rather than once for all items selected like it used to). This all used to work fine in the earlier release we were using. Has anyone else run into this? Any fixes? We used to use multi-select and "Run" or "Run On" to deploy multiple items at once, but this no longer works -- doing one at a time works, but if you have hundreds of items to run, this quickly becomes unusable.
    Thanks for any insight.
    - Josh

    cshay wrote:
    I don't believe that the intention was for you to be able to run a bunch of scripts one after the other. Often there are dependencies between scripts anyway and so you you have to order them. Because we're generally deploying a large set of stored procedures (and not just one-time scripts) the order doesn't really matter -- even if a stored procedure gets created before one it depends on, once all the SPs are on the server, the ones that are "invalid" will compile correctly once you execute them.
    I think a lot of people are creating master scripts that references child scripts using the "@" sql plus syntax.... have you tried that?
    I'll give that a try as a work around. Only issue I have with that solution is every time we add or remove something from the solution, we also have to update the script.
    We are doing a lot of enhancements to our script generation in the coming year. Keep an eye out for a beta to test.
    Like I said, this used to work fine in the older versions of ODT. It seems like the new version is attempting to execute multiple items at once on the same connection simultaneously, thus resulting in the "A script is already running" error. The old version used to be smart enough to execute them one at a time -- so something changed in a more recent version to completely break "Run" and "Run On" when you have more than one item highlighted (even just highlighting 2 items and choosing "Run" runs the first item, but then gives the error for the second item).
    Christian- Josh

  • Repair Order Process - o/b delivery from PO, need copy routine

    Hi Experts,
    We are configuring repair order process and while creating o/b delivery to Vendor from PO, need to check for GTS message and should be blocked that document for further processing in ECC. For SO to o/b delivery working fine using include program RV50B901 (routine 901, document type OR to LF, item category TAN). It is copy of 101 routine and added GTS code to block the documents in ECC if GTS is blocked for compliance checks.
    For o/b delivery from PO, document type NB with item category L (subcontracting but in copy control, I don't see LB to NB rather LB to DL. Is it correct? I put a break point in routine 901 but it is not hitting that routine. Where can I look at to find correct routine to include GTS code?
    I really appreciate your reply.
    Regards,
    Manohar.

    Hi Manohar,
    This is not really a GTS question, is it?  You should ask in the MM forum.
    Regards,
    Dave

  • Text determination process in the Delivery Header and item

    Hi Exsperts
    Please help me to know step wise process of comfiguring the text detremination at the delivery and Item level
    I have a one scenario The text process was already determined in the Quality  server     it was a correct configuration , but one I need to do here I need to copy Quality configuration to Development client and change the Access sequence in the Deveopment client  and delete  sequence no and move to quality and finally to production
    Please help me to know the basic configuaration of text in the delivery and process of copying already determined text from Quality.
    Thanks

    Go to VOTXN TRANSACTION
    for the delivery header or item level
    1. create the text procudure  for the Text object VBBK
    2. Define the Text IDS for the text procedures (For Master data text the ID are not required and the access sequence)
    3. Define the acces sequence and the requiremnets
    4. Then define the text objects/ tables for accesses
    5. assign the procedure Step 1 to your delivery documnet type or item
    Thanks!
    A  S

  • (urgent)how to run the sqlldr script in owb process flow?

    dear all:
    In my oracle warehouse ,i have to load much *.dat file
    into database with sqlldr in owb process flow. In owb process flow, I use the external process to run the sqlldr file with following configuration:
    1:======external process==========
    command : /app/ftpfile/sqlldr2.sh
    parameter list:
    success_threshold:0
    script:
    ================================
    2:create a file location in FILE LOCATION node:
    =============
    ODS_LOCAL_LOC
    =============
    3: in the runtime repository i register the location
    ============
    user name: oracle (for the sqlldr should run in oracle user)
    password : oracle
    host name: localhost
    root path: /app/ftpfile/
    ============
    4:configure the process flow
    ============
    path settings
    working locations:ods_local_loc
    ============
    after deploy them success in runtime repository,
    i run it ,it show me error following:
    ==========
    SQL*Loader-704: Internal error: ulconnect: OCIServerAttach [0]
    ORA-12545: Connect failed because target host or object does not exist
    ===========
    please help me!
    with best regard!

    Hello,
    our developers were getting this error code just the other day. They are using "sqlplus_exec_template" script to initiate these things. In our case, I had to do two thing:
    1) Modify their "initiator" script (the one that connects to runtime access user, and then calls "template") - it has to use tns connectivity "user/passwd@service_name"
    2) Create TNS entry (server side) for the "service_name" above.
    Now these SQL*LOADER mappings run successfully.
    Alex.

  • OMB Script - Run a process flow (OMBSTART) with input parameters.

    I have a process flow with one input parameter : PF_SCHEMA_NAME. This is a string, literal value = false.
    While running this from the OWB Control center UI, it prompts for value of parameter.
    I need to execute this process flow using OMB script.
    OMBSTART PROCESS_FLOW 'WMREPORT_INCR_DAILY_FCT_SIMP' IN '$OWFLOCATION' OVERRIDE CUSTOM_PARAMETER ('PF_SCHEMA_NAME') VALUES ('ADVIEWPROD')
    This gives following error:
    OMBSTART PROCESS_FLOW 'WMREPORT_INCR_DAILY_FCT_SIMP' IN 'OWF_LOCATION' OVERRIDE CUSTOM_PARAMETER ('PF_SCHEMA_NAME') VALUES ('ADVIEWPROD')
    Starting Execution WMREPORT_INCR_DAILY_FCT_SIMP
    RPE-01003: An infrastructure condition prevented the request from completing.
    RPE-01038: Failed to evaluate expression declare "$LOOP_DETECT$" NUMBER :
    ORA-06550: line 1, column 668:
    PLS-00201: identifier 'ADVIEWPROD' must be declared
    ORA-06550: line 1, column 626:
    PL/SQL: Statement ignored
    Completing Execution WMREPORT_INCR_DAILY_FCT_SIMP

    Thanks David for your reply.
    But your suggestion did not work. I am still getting the same error.
    OMBSTART PROCESS_FLOW 'WMREPORT_INCR_DAILY_FCT_SIMP' IN '$OWFLOCATION' OVERRIDE CUSTOM_PARAMETER ('PF_SCHEMA_NAME') VALUES ('"ADVIEWPROD"')
    Starting Execution WMREPORT_INCR_DAILY_FCT_SIMP
    RPE-01003: An infrastructure condition prevented the request from completing.
    RPE-01038: Failed to evaluate expression declare "$LOOP_DETECT$" NUMBER :
    ORA-06550: line 1, column 651:
    PLS-00201: identifier 'ADVIEWPROD' must be declared
    ORA-06550: line 1, column 608:
    PL/SQL: Statement ignored
    Completing Execution WMREPORT_INCR_DAILY_FCT_SIMP
    Can you please help?

Maybe you are looking for