Delay message processing until after a given datetime?

Using Service Broker, is it possible to delay a given message from being processed until some future date/time has gone by?
scott

Depends on what you want to achieve, but maybe you can use a conversation timer? BEGIN CONVERSATION TIMER sets up a timeout that produces a message on the local queue in the given time frame.
Erland Sommarskog, SQL Server MVP, [email protected]

Similar Messages

  • No message processing until now

    Hi all,
    We have an interface with a RFC sender and with several FTP receiver communication channels. After execute it, we are able to see in the sxmb_moni that the xml message has been successfully sent but on the other hand in RWB message monitoring we see that the sender is successful but the receivers are with 'to be delivered' status.
    So no file is generated in our destination folder.
    If we go to RWB -> adapter monitor -> file adapter  we realise that receiver is in green status but says that 'no message processing until now'.
    Does anybody of you know why our integration engine can not process our interface?  (note that the sender seems to work properly as it is visible the xml message in sxmb_moni)
    Thanks in advance and kind regards

    Hi,
    To configure FTP, you need to do the following things:
    1.Download and install the ftp you need to use like guildftp and etc.
    2.Add a user id and password to it.
    3.Configure a root path.
    4.Grant authorizations to the users like create, delete, append etc.
    To configure FTP Protocol in XI, please go through all the following links. They should help you do the same.
    http://help.sap.com/saphelp_nw04/helpdata/en/8c/607fe4756b654ab9f420097c29f6e9/frameset.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/0b/9a50465ccf84479e39a6d50c90fb3f/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/44/6c9442c22d1131e10000000a1550b0/frameset.htm
    Configuring the Sender File/FTP Adapter:
    http://help.sap.com/saphelp_nw04/helpdata/en/e3/94007075cae04f930cc4c034e411e1/content.htm
    Configuring the Receiver File/FTP Adapter:
    http://help.sap.com/saphelp_nw04/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/content.htm
    http://www.sapgenie.com/xi/
    http://help.sap.com/saphelp_nw04/helpdata/en/43/0e16bfd7b021aee10000000a1553f6/frameset.htm
    If content conversion is involved, You have to mention the field names in header of data type: fieldNames. Hence if the key field is not present it will throw an error in adapter monitoring, FIELD NOT FOUND.
    To make note mapping cannot be performed with a flat file as XI understands only XML. Hence content conversion required.
    Please go thru these links for step by step procedure to do the same:
    /people/venkat.donela/blog/2005/06/08/how-to-send-a-flat-file-with-various-field-lengths-and-variable-substructures-to-xi-30
    /people/sap.user72/blog/2005/01/06/how-to-process-csv-data-with-xi-file-adapter
    Hope they are helpful for you.
    I hope I have answered your query.
    Regards,
    Abhy
    PS: AWARD POINTS FOR HELPFUL ANSWERS.
    Message was edited by: Abhy Thomas

  • No message processing until now in receiver1_cc in RWB (File Adapter)

    Hi,
    When exceuting a scenario ( <b>XML to XML - between 2 third party systems using File Adapter & Transport Protocol : NFS</b>), in RWB i am getting the following msgs:
    <b>Sender1_cc</b>  ( Communication channel )
    Sender Adapter v2307 for Party '', Service 'sender':
    Configured at 2007-12-11 18:49:52 IST
    History:
    - 2007-12-11 19:38:52 IST: Polling interval started. Length: 60.000 s
    - 2007-12-11 19:38:52 IST: Processing finished successfully
    - 2007-12-11 19:38:52 IST: Processing started
    - 2007-12-11 19:37:52 IST: Polling interval started. Length: 60.000 s
    - 2007-12-11 19:37:52 IST: Processing finished successfully
    <b>receiver1_cc</b> ( Communication channel )
    Receiver Adapter v2123 for Party '', Service 'receiver1':
    Configured at 2007-12-11 19:05:25 IST
    <b>No message processing until now</b>
    and even when excute the TCode: <b>sxi_cache</b>, i am getting a warning message saying:
    <b>Error when accessing SLD: NO_BUSINESS_SYSTEM
    Message no. SAI_CACHE221</b>
    <b>But i have defined the Technical system and Business system perfectly.</b>
    I placed the "input.dat" in the source directory on the server but "output.dat" is not getting created in the target directory.
    Please advise.
    Regards,
    Ravi

    Hi Ravi,
    ya it seem that your file has not been picked up.
    only sender channel is polling.
    once the message hit the sender channel then it can be seen in the channel log.
    i have somthing for you
    have you checked the permission of the folders where you are putting the file and expecting to get the output.
    1) then give the full permission 777 to each folder.
    2) have you given the path of the folder which you have created in server(i hope your folders is in server)
    if not then create the folders in server and then give the location in communication channel.
    one more thing
    have your scenario cofiguration is right combination of your objects.
    plz have a recheck.
    also clear chache form IR
    go to tool then refresh.
    **PS: rewrd points if useful**
    regards,
    Sumit Gupta

  • "up and running  no message processing until now"

    Hi,
    I am doing a multiline scenario with File Content Conversion. In Adapter Monitor, Message is processed in the sender CC and in the Receiver CC it shows "up and running  no message processing until now"
    Whats mean by this ?. What is the status of my message ? Where I can monitor the message send from sender communication to the Receiver communication channel (If not in SXMB_MONI ?)
    Thanks,
    Ram

    hi,
    check adapter message monitor:
    http://hostname:portnumber/MessagingSystem/monitor/monitor.jsp
    you should see all message over there
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

  • No Message processing Untill now

    Hello All,
    I have done new server installation and doing File to File Scenario .while doing this scenario file was picked but my error is "no message are available in the SXI_MONI".I checked Adapter Monitoring Source Communaction channal was green status and Up and running: Last message processing started reciver communaction channel also green status but Up and running - no message processing until now.finely i did not get out file in the reciver adapater.so pls gudie me .
    regards,

    Hi Venkatesham Neela 
    You have all the rights to post your question in a separate Thread and that will help everyone including yourself. You encorached in to my thread and now I couldnot send the Points to Michal karkawickz.
    Thanks Michal for your help.

  • Create .txt empty file After Message Processing Command Line Linux command

    Hi All,
    An empty .txt file has to be created in FTP location(FTP loc c:\xyz\Customer20082910.txt) only after the .dat file has been created(FTP loc c:\xyz\Customer20082910.dat)
    Note:.dat has the actual data and .txt is an empty file and is created only after .dat is created
    I know that .txt empty file can be created using the After Message Processing Command Line...
    But confused which command to be given such that it will be created in the FTP location(c:\xyz\Customer20082910.txt)
    Can any one please give the Linux command for it...
    Regards,
    Sridhar

    Hi Aamir,
    Thanks for the suggestion, I will ask my client to create a shell script at FTP server...
    And one more question,
    This is reverse side , now the .dat file is to be picked only if .txt exists at the FTP server (scenario File > XI>SAP) (earlier was SAP>XI>File)..
    So please can you suggest for this also...
    How can i check for the .txt and pick corresponding .dat file...
    i had posted question long back
    Need to pick .TXT file only if .CTL file is available
    Regards,
    Sridhar

  • WAITFOR DELAY: How can I continue to delay and excute until process is complete?

    Hello my friends:
    Is it possible to run a select statement an wait, then run again until the table has no data?
    The following is an example code:
    BEGIN
    IF (SELECT COUNT(*) FROM MySchema.MyTable) > 1
    BEGIN
    WAITFOR DELAY '00:00:5';
    SELECT COUNT(*) FROM MySchema.MyTable;
    END
    END
    I want to repeat the code above with the delay until the table count is zero.
    Is this possible?
    Thanks!

    I have several options:
    Because this is a SSIS Task, I can use a loop and get the data as available with a pause
    I can add the wait in TSQL in a stored procedure
    Maybe I can put a pause in the program itself.
    I'm not sure I understand what you mean about option 3 since this is an SSIS package. These options are easily doable. I could be inclined to implement the pause in an SSIS script task containing the code below, with the package controlling the loop.
    System.Threading.Thread.Sleep(10000);
    Dan Guzman, SQL Server MVP, http://www.dbdelta.com
    Hey Dan, with option 3: I was meaning to put a pause in the calling method which execute the stored procedure to the Dataset.
    Moving on with your recommendation, there is one area which confuses me.
    I found the follow article:
    http://www.bidn.com/blogs/mikedavis/ssis/158/make-an-ssis-package-delay-or-wait-for-data
    I need the task to execute (go to another task) if the count is not zero,  then pause.
    Now do the whole thing over after a few seconds until the Count is zero.
    Currently if the Count is not zero, the task execute and finishes but that's it, nothing else happens. I guess I am looking to repeat the entire process until the count is zero.
    Step 1: If Count != 0 run task B
    Step 2: Pause for 15 seconds
    Step 3: Re-evaluate the count again if it is still not equals zero, run task B again.
    Pause and reevaluate the count, if it is zero exit.

  • How to Run Operating System Command Before/After Message Processing SAP PI

    Hi,
    We are trying to execute multiple commands via "Operating System Command Before/After Message Processing".
    When we use single command say for example cp or mv (copy or move) the commands get executed fine.
    eg: cp %F /var/opt/data/outbound/Test/Dummy.txt 
    /this works fine/
    when we club commands together or try to redirect the outputs of commands, none of the commands get executed.
    eg:
    cp %F /var/opt/data/outbound/Test/Dummy.txt ; rm %F
    or
    wc -l %F > /var/opt/data/outbound/Test/Dummy.txt
    Is it possible to execute multiple commands or redirect the output  of commands without using a shell script? The PI server we are working on iis hosted on UNIX environment.

    Hi Harleen,
    try like this
    cp %F /var/opt/data/outbound/Test/Dummy.txt ; rm %F
    instead of semicolon try this
    (1) &
    command1 & command2
    Execute Command1 and then execute Command2
    (2) &&
    command1 && command2
    Runs the command2 only when command1 doesn't Complete successfully
    (3) ||
    command1 || command2
    Runs the second command if the first command had an error
    (4) ()
    (command1 || command2) || (command3 & command4)
    Defines the order in which commands are to be executed
    Regards
    Suraj

  • I have been getting a message saying my iPhone cannot be synced because an unknown error occurred (-50).  I have an iPhone 4, and never had this message until after I upgraded to the new OS.

    I have been getting a message saying my iPhone cannot be synced because an unknown error occurred (-50).  I have an iPhone 4, and never had this message until after I upgraded to the new OS.  Does this have something to do with icloud?

    I have the same error on both iPad & iPhone when connection is made but seems to sync when I manually sync.

  • How can I block warning messages triggered by After Effects?

    Hello, please tell me if it is possible to block the warning messages triggered by After Effects CS 5. I'm digesting .aep projects automatically, using scripts, and sometimes these projects have missing files. AE triggers warnings, causing the program to block until someone clicks "ok" on the alert message. The problem is that the process is intended to be automatic, withouth any human intervention. The only possible solution I see in this problem is to block all warning messages from AE, but I don't know how, so I ask you for help. Thank you!

    The location of the preferences files is given in the "Preferences" section of After Effects Help.
    Preferences, including keyboard shortcuts and workspaces, are stored in files in the following locations:
    (Mac OS) <drive>/Users/<username>/Library/Preferences/Adobe/After Effects/10.0
    (Windows) <drive>\Users\<username>\AppData\Roaming\Adobe\After Effects\10.0

  • Stateful message processing for async scenario

    Dear all,
    my async scenarios:
    1. RFC -> PI -> File
    2. File  -> PI -> RFC
    Following facts:
    - The second message is a response to the first one. Both message are separted and async.
    - Scenario 2 can be send some hours after Scenario1.
    - A response should only be send if  a specified field in the message of first scenario is filled. 
      For example: Message in scenario has a field <ResponseNeeded>YES</ResponseNeeded>
      This field does only exist in message of scenario 1.
    - Both message have an ID field (e.g. <ID>4711</ID>) which can be used to identified the
      corresponding message.
    Questions:
    - Is it possible to use stateful message processing for this scenario? Or do I need BMP + Correlation?
    - A service interface with pattern "stateful" can only be used synchronously. So is it
      possible to use this stateful for async message processing at least?
    I would assume that I will need a BPM that sends the messsage and keep alive until a
    response will be sends with same ID. After this I would check message of scenario1 and
    send (or even not) the message of scenario2 to receiver depending on <ResponseNeeded>.
    Thanks in advanced.
    Chris

    Hi Chris,
    Although BPM is possible here, I would not recommend you to use one here for the reason,
    >>Scenario 2 can be send some hours after Scenario1.
    This means you are keeping a process alive for so long which is not a good thing to do.
    You could end up with a lot of open/live process instances.
    Having said that, if you still wish to go ahead with BPM, the steps would be
    1. Receive async (RFC req) - start process, correlation based on ID.
    2. Switch step (Evaluate ResponseNeeded)
    branch 1(True): a.  Send asynch step - File
                               b. Receive async - File correlation - ID.
                               c. Send async - RFC call.
    branch 2(false) a. Send async -File
    3. Stop process.
    Regards
    Jai

  • My iPhone is not receiving mail but these messages continue to flash at the bottom of the screen:  Checking for messages, Updated just now, checking for messages, etc.  After a minute or so it will flash downloading 1 - 32 messages but nothing is received

    My iPhone is not receiving mail but the following messages continue to flash over and over at the bottom of the screen:  "Checking for messages, Updated just now, Checking for messages", etc.  After a minute or so it will flash downloading 1 - 32 messages but nothing is received and then the "Checking for Messages," etc. starts back again.   I turned the phone off for 30+ minutes and also tried to reset it, but the problem continues.   Any ideas on how to solve the problem?

    Double click the home button and swipe up the messages app to stop it, then open the app again. This pretty much completely stops the process and freshly opens it again, resolving problems at times. I have had this happen before as well on my iPad, I get a banner, check messages, and nothing new is there.
    If that doesn't work, close the app like suggested above, but then restart the phone by holding down the home and lock button for 10-15 seconds until the apple logo appears.

  • I keep the itunes encountered a problem and needs to shut down . it was working fine until after i updated to 10.5 can someone plz help

    i keep the itunes encountered a problem and needs to shut down . it was working fine until after i updated to 10.5 can someone plz help

    I did get a "server busy" message when I loaded quicktime, but I'm not sure if it is related or not since I've been seeing that over the last couple of days, I can't remember if it came before iTunes stopped working or not. That message reads "This action cannot be completed because the other program is busy. Choose 'switch to' to activate the busy program and correct the problem." My options then are to choose switch to or retry. When I press "switch to" my Start menu opens, and nothing appears to happen when I select retry.
    that's an odd sort of a message (or series of messages).
    hmmmmm. let's try an experiment aimed at working out if there's a program interfering with the QuickTime (which is in turn causing grief with your iTunes).
    try a selective startup using MSCONFIG, with just the itunes and QuickTime background processes enabled, as per the following document:
    Using MSCONFIG to troubleshoot conflicts in Windows
    does QT open without the strange message after the selective startup?
    does iTunes launch properly?

  • TS140 Second HD (non-Lenovo) not seen until after boot

    I have a TS140 (70A4001MUX), which came with a 500 GB HD. I installed Win7Pro x64, replaced the 4GB RAM with 16 GB of Crucial RAM, and added a second HD (4 TB Western Digital Enterprise WD4000F9YZ). Both HDs are configured GPT, I am booting via UEFI, and the latest firmware (99A) is installed.
    This configuration mostly works, except that the second HD isn't visible until after booting. It does not appear in BIOS, which means I cannot boot from it. I have a boot partition on the second HD, cloned from my primary boot partition via Casper software. Normally, this provides me an alternative boot in case of drive failure or corruption on the first HD. But, on the TS140, attempting this alternative boot fails completely, as though the second drive were not there at all. Once I'm booted, though, I can read and write to the second HD all day long. Fwiw, all 16 GB of the new RAM does appear in BIOS.
    The second HD:
    Does NOT appear in BIOS.
    Does appear after boot to Windows 7.
    Does appear when booted from CD, such as WinPE and Paragon boot CD.
    Why won't BIOS recognize the second drive, that is clearly present and functional? Thanks for any thoughts and suggestions.

    Do you see the same behavior on a cold boot and a powered-up reboot?
    Since I'm not familiar with ThinkServers, I'm just tossing stuff at the wall here, but I wonder if the new drive is slow to initialize and BIOS is not waiting long enough to detect it.  Cold boot and reboot might behave differently in that case.  Not sure how to fix that if it is the problem, but it might help to narrow things down.
    [edit]  There is a hard disk pre-delay option in BIOS.  Not quite sure if it's intended for this situation (the one my WAG applies to) but might be worth a try.
    Z.
    The large print: please read the Community Participation Rules before posting. Include as much information as possible: model, machine type, operating system, and a descriptive subject line. Do not include personal information: serial number, telephone number, email address, etc.  The fine print: I do not work for, nor do I speak for Lenovo. Unsolicited private messages will be ignored. ... GeezBlog
    English Community   Deutsche Community   Comunidad en Español   Русскоязычное Сообщество

  • Disable autmatic mdb message process on server start

    How can i disable the automatic MDB message processing when the server is started. I want to manually start(control) the the MDB message processing after the server startup. The application ear contains ejb modules and web module. is it possible to stop an ejb module in an application. I know, we can stop the entire application.
    there is a parameter in weblogic application descriptor which delays the message processing till the server is fully started. then also it's not possible to stop/delay further.
    the deployment scenario is weblogic+websphere MQ configured as mq foreign server.
    pls help. thanks

    WL JMS provides a programmatic or administrative option for this purpose. The feature is called "destination suspend/resume", and it can be set before shutdown so as to start the destination in a "consumption paused" state after restart. MQ may provide a similar administrative option. I'm not sure if there's a simple way to do what you want with MDBs directly - you might want to try posting to the WebLogic EJB forum, but if MQ doesn't provide an option, perhaps you can forward the MQ messages into WebLogic JMS destinations (either using an MDB or a Messaging Bridge), and then change your MDB to use the WebLogic JMS destinations.
    Tom

Maybe you are looking for

  • A few problems with my site I'd be grateful for help with...

    Hi, I'm encountering some strange problems with my website, and I'd be really appreciative if anyone could help me. The site's live so I've included links to help anyone kind enough to respond. Thanks in advance. 1. On many of the pages, a scrollbar

  • How can we handle view position in bdc

    can any body tell me how to handle view position in bdc

  • How should I combine 30 fps clips and 24 fps clips into a project?

    I have both 30 fps footage and 24 fps footage and I would like to create a project that has both. Should I create a 30-fps project or a 24-fps project? Which one will look better?

  • Real time apply

    Hello Oracle 10.2.0.1 I have dataguard configuration with standby file management auto and real time apply SQL> SELECT DEST_ID, RECOVERY_MODE FROM V$ARCHIVE_DEST_STATUS where dest_id=2;    DEST_ID RECOVERY_MODE          2 MANAGED REAL TIME APPLY1-) I

  • Load time in a PDF file

    I've got a 6 tab dashboard that I export to a PDF file.  Some users have found load times of around 1 minute but I usually find it to load in about 20-25 seconds.  I tried breaking up each tab into it's own dashboard file and exporting to a PDF and e