XML messages deleted from PI

Hi Experts,
I had a few issues and i wanted to look at the xml that went back and forth.
However, it appears that yesterdayu2019s some successfulXMLs have been deleted from the system.
Is there any way we can get them back, and can it be changed so that those xmls are left in the system for a week so that we have opportunity to trouble-shoot if there is a problem exists. could someone explain the procedure for this?
Thanks,
Amar

1. check with your basis consultant what is the period of message archives is set in PI system.
Where did u checked the messages is it in SXMB_MONI?  have u used the correct date in SXMB_MONI screen.
U can check the message payload from RWB- Message monitoring as well just give a try.
If u r sending message to ABAP system then u can use the SXMB_MONI tcode and check the payload there also....
thanks
chirag

Similar Messages

  • Mail 8.2 not deleting messages deleted from iPhone

    If I delete an email from my Gmail account on my iPhone 5S (iOS 8.3) it won't be deleted from Mail 8.2 on my iMac (10.10.3) but will show up in my Inbox as read.
    If I read or delete an email from Mail 8.2, it everything appears to behave normally, the email in question will show as read or be deleted from my iPhone as expected.
    I haven't changed any settings & everything appeared to be working normally as you'd expect with an IMAP account until the last few days.
    Anyone else having this issue? Any suggestions on how to remedy or where the problem may lie? Is it my iPhone, my iMac or Google?
    Thank you in advance for any advice you may have to offer!
    Damon

    This could be a delay in sync.
    Synchronize your account
    Select your Gmail account Inbox.
    Control-Click (Right-click) on Inbox > Select Synchronize
    Next synchronize the All Mail folder.

  • Messages deleting from Blackberry after being read in outlook

    I am new to the Blackberry after using an iPhone, and I'm still figuring it out.  This may have been answered already...I just can't find it.  I have Outlook 2003 at home, and have a Blackberry Tour 9630 with Verizon.  After I read an email in Outlook, it deletes it from my Blackberry (the messages have not been deleted in Outlook).  If I understand this correctly, if I delete a message from Outlook...it will always delete it from my Blackberry.  What setting do I need to change either in Outlook or the Blackberry to keep the emails that I read (but do not delete) in Outlook on my Blackberry.
    Thanks
    Solved!
    Go to Solution.

    The change is made in OUTLOOK.
    1) Go to the account you are using, (TOOLS/ACCOUNT SETTINGS) and  double-click the account in which you want to make the change.
    2)  Click "MORE SETTINGS."
    3) Click the "ADVANCED" tab.
    4) Place a check mark in the box adjacent to "Leave a copy of messages on the server."
    Then you can choose to delete (or not) from your Blackberry.
    Hope this helps,
    ED

  • How to recover messages deleted from imessage??

    Pleace help me D:

    Have a little bit of patience. You just posted 10 minutes ago. Sometimes you have to wait in order to get a response.
    If you backed up the iPad before you deleted the messages, you can restore from the backup in order to recover the messages. If you didn't backup, the messages are gone.
    How to backup and restore from a backup
    http://support.apple.com/kb/HT1766

  • How to find an XML message ID with a wildcard QueueID

    Hi,
    My scenario is: transfer purchase orders from SAP SRM to marketplace(3rd party system)
    The QoS is EOIO, therefore my POs are transferred with Queues but each queue has a leading prefix which are all registered.
    The project is already go-live for over 6 months.
    I have tried with SXMB_MONI of course, the display of Messages is far too limited(only 2000 messages is allowed to be displayed one time, or, is any way to adjust this?)
    And also a table called SXMSPMAST, I searched with a queue id "*3000012345" in the field "QUEUEINT", no result. (3000012345 is the PO number)
    Is there any other table to find a certian message by queue id?
    Thanks.
    Regards,
    Klein

    hi,
    >>>>Is there any other table to find a certian message by queue id?
    do you realy want to search for message id by queue it?
    wouldn't it be easier to search with PO number
    (which is probably inside the XML message?)
    if so then you can use TREX to search inside the XML messages
    payload (from XI SP15)
    isn't this an easier way?
    Regards,
    michal

  • How to Update PI Message status from 012 to 014

    Hi Gurus,
    We faced an issue where the messages were stuck in PI Inbound queue (SMQ2). We accedentally reorganized the queues, which resulted the messages deleted from queue and moved to status schedul for outbound processing (012). And the probelm is we are not able to restart these messages. We learnt that the only option is to cancel these mesages and resend the messages from sender system.
    My question is :
    Is there any method to push these messages back to the inbound queues and have PI pick them for further processing?
    OR
    Is ther a way that the message status can be updated from 012 to 014 (any status where Restart is possible), so that we can re-process the data?
    Thaks for your help in advance.
    Regards,
    Jack.

    Hi Jack,
    Pls check the below mentioned blog:
    /people/michal.krawczyk2/blog/2005/11/09/xi-restarting-successfully-processed-messages
    Try restarting the message using the report given in the above blog.
    -Supriya.

  • POP3 mails get´s deleted from my Q10 when my PC downloaded it.

    My mails gets deleted from my Q10 after my PC downloaded them from the server. With my Bold 9900 this never happened. Please help me to keep the mails on my Q10.

    When the Q10 "sees" those messages deleted from the server, using the ActiveSync services, it 'mirrors' what it sees on the server, and deletes the messages from the Q10.
    Set your PC (Outlook or what on the PC) not to "delete messages from server on download".
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Outbound status to delete XML messages in PI

    Hi,
    we are using a deletion process in PI wiith the pg RSXMB_DELETE_MESSAGES but the XML messages with a outbound status = 1 cannot be deleted. It seems that the pg SXMS_REFRESH_ADAPTER_STATUS permits to change the status to 6 but does not work for me.
    So, I need guidance. For information, we condigured the deletion period (10 days).
    Thank you

    Hi Pascal,
    You should try to manually confirm the messages (in SXMB_MONI - Cancel Processing of messages with Error CTRL F8) and then run all the deletion jobs again.
    Please see Note 872388 and 820149 for details. Following is the relevant portion from 872388:
    "Check if there are asynchronous messages in error status.
    Asynchronous messages in error status are neither deleted nor archived.
    This behaviour is different to erroneous synchronous messages which get
    deleted after their retention period (see step 5) has expired).
    Asynchronous erronous messages, however, must be cancelled and then be
    archived. You can either use transaction SXMB_MONI, search for erronous
    messages and manually cancel them. Or you can use the report provided by
    SAP: RSXMB_CANCEL_MESSAGES. Should you decide (for non-productive
    systems only) that you would like to delete these manually cancelled
    messages, please use note 820149."
    Regards
    joel

  • How to remove XML messages from Integration Engine

    Hi,
    i had created file - XI -file scenario activated it and check messages using tcode SXMB_MONI .Error messages coming after every minute as i set polling intervals to 60 seconds .Now i had deleted related objects from IR and ID but still XML messages coming in ....please anyone can help to stop this scenario anyhow.

    Dear Jai ,
    i had checked everything before this and even i have checked now and i had created that scenaio by my own userid and passwd. Checked sender interface, reciever interface in SXMB_MONI it's the same which i had given name to them . Even we people are surprised that after deleting all the things in IR and ID . i don't know exactly why it is coming but what i am guessing is that after activating the scenarios it might get executed from XI runtime cache and there is no dependency on IR and ID objects . so what i had done that i completely refreshed the XI Runtime Cache by using tcode SXI_CACHE but it's still not working that way also.
    Message was edited by:
            ashwin dhakne
    Message was edited by:
            ashwin dhakne

  • Please help me in inserting data into table from XML message.

    Hi Experts,
    Please provide a procedure to implement my below requirement.
    Since I am new to queue concept.
    [code]- <MESSAGES>
    - <MESSAGE ID="3026900">
      <MSG_ID>3026900</MSG_ID>
      <DT_POSTED>6/20/2013 08:15:48</DT_POSTED>
      <POSTED_BY>GPD_MSG_EXTRACTOR</POSTED_BY>
      <DT_LAST_QUEUED />
    - <MSG>
    - <WORK_SET TRANSACTION_ID="@TRANS_ID" TRANSACTION_TYPE="Batch" IS_ACID="@IS_ACID">
    - <WORK_UNIT GROUP="LEAD_TIME" ACTION="UPDATE" AFFECTED="LEAD_TIME">
    - <RECORDSET TABLE_NAME="LEAD_TIME">
    - <xml xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:rs="urn:schemas-microsoft-com:rowset" xmlns:z="#RowsetSchema">
    - <rs:data>
      <z:row business_unit_id="3838" geo="AT" sku="A0814818" dw_maint_flag="False" stock_status_id="0" lead_time="30" est_qty="0" leadtime_lock="False" update_dts="2013-06-12T02:08:30.367" update_uid="DEACTIVATE_SKU_PROCESS" leadtime_dts="2010-05-22T02:21:21.707" leadtime_uid="Lead_Time_Rules" />
      <z:row business_unit_id="202" geo="GB" sku="A0814819" dw_maint_flag="False" stock_status_id="0" lead_time="30" est_qty="0" leadtime_lock="False" update_dts="2013-06-12T02:08:30.367" update_uid="DEACTIVATE_SKU_PROCESS" leadtime_dts="2010-05-22T02:21:21.707" leadtime_uid="Lead_Time_Rules" />
      <z:row business_unit_id="2828" geo="BE" sku="A0814820" dw_maint_flag="False" stock_status_id="0" lead_time="30" est_qty="0" leadtime_lock="False" update_dts="2013-06-12T02:08:30.367" update_uid="DEACTIVATE_SKU_PROCESS" leadtime_dts="2010-05-22T02:21:21.707" leadtime_uid="Lead_Time_Rules" />
      </rs:data>
      </xml>
      </RECORDSET>
      </WORK_UNIT>
    - <WORK_UNIT GROUP="LEAD_TIME" ACTION="ADD" AFFECTED="LEAD_TIME">
    - <RECORDSET TABLE_NAME="LEAD_TIME">
    - <xml xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:rs="urn:schemas-microsoft-com:rowset" xmlns:z="#RowsetSchema">
    - <rs:data>
      <z:row business_unit_id="202" geo="GB" sku="A0814821" dw_maint_flag="False" stock_status_id="0" lead_time="30" est_qty="0" leadtime_lock="False" update_dts="2013-06-12T02:08:30.367" update_uid="DEACTIVATE_SKU_PROCESS" leadtime_dts="2010-05-22T02:21:21.707" leadtime_uid="Lead_Time_Rules" />
      <z:row business_unit_id="2828" geo="BE" sku="A0814822" dw_maint_flag="False" stock_status_id="0" lead_time="30" est_qty="0" leadtime_lock="False" update_dts="2013-06-12T02:08:30.367" update_uid="DEACTIVATE_SKU_PROCESS" leadtime_dts="2010-05-22T02:21:21.707" leadtime_uid="Lead_Time_Rules" />
      </rs:data>
      </xml>
      </RECORDSET>
      </WORK_UNIT>
    - <WORK_UNIT GROUP="LEAD_TIME" ACTION="DELETE" AFFECTED="LEAD_TIME">
    - <RECORDSET TABLE_NAME="LEAD_TIME">
    - <xml xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:rs="urn:schemas-microsoft-com:rowset" xmlns:z="#RowsetSchema">
    - <rs:data>
      <z:row business_unit_id="202" geo="GB" sku="A0814817" dw_maint_flag="False" stock_status_id="0" lead_time="30" est_qty="0" leadtime_lock="False" update_dts="2013-06-12T02:08:30.367" update_uid="DEACTIVATE_SKU_PROCESS" leadtime_dts="2010-05-22T02:21:21.707" leadtime_uid="Lead_Time_Rules" />
      <z:row business_unit_id="2828" geo="BE" sku="A0814816" dw_maint_flag="False" stock_status_id="0" lead_time="30" est_qty="0" leadtime_lock="False" update_dts="2013-06-12T02:08:30.367" update_uid="DEACTIVATE_SKU_PROCESS" leadtime_dts="2010-05-22T02:21:21.707" leadtime_uid="Lead_Time_Rules" />
      </rs:data>
      </xml>
      </RECORDSET>
      </WORK_UNIT>
      </WORK_SET>
      </MSG>
      </MESSAGE>
      </MESSAGES>[/code]
    The above XML message is receieved by our oracle queue.Once the message is receieved to our queue.
    We have to process the message according to the action(UPDATE ADD DELETE).
    From this message we have to process only 3 fields (geo  sku lead_time).
    These three feilds data should be processed into the SKU_LEAD_TIME table based on the action.
    Req1:
    IF the action is update then the records should be updated in the "LEAD_TIME_TABLE" table
    IF the action is update then the records should be updated in the "LEAD_TIME_TABLE" table
    based on the below condition.
    [code]UPDATE LEAD_TIME_TABLE SET lead_time= lead time from xml message
    WHERE LEAD_TIME_TABLE.SKU=sku from xml message AND LEAD_TIME_TABLE.GEO=geo from xml message;[/code]
    Req2:
    IF the action is delete then the records should be deleted from the "LEAD_TIME_TABLE" table.
    based on the below condition.
    [code]DELETE FROM LEAD_TIME_TABLE
    WHERE LEAD_TIME_TABLE.SKU=sku from xml message AND LEAD_TIME_TABLE.GEO=geo from xml message;[/code]
    Req3:
    IF the action is add then the records should be inserted in the "LEAD_TIME_TABLE"  and "LEAD_TIME_TABLE_STAGING" table
    based on the below conditions.
    Req3.1:
    If SKU from XML message is available in "SKU_TABLE" table
    then the three parameter(GEO SKU LEAD_TIME) values from XML message should be inserted into "LEAD_TIME_TABLE" table.
    Req3.2:
    If SKU from XML message is not available in "SKU_TABLE" table
    then the three parameter(GEO SKU LEAD_TIME) values from XML message should be inserted into "LEAD_TIME_TABLE_STAGING" table.
    Req3.3:
    Once the new SKU is avilable in "SKU_TABLE" table then the corresponding SKU record should be
    inserted into "LEAD_TIME_TABLE" table and that record should be deleted from  "LEAD_TIME_TABLE_STAGING" table.
    I am posting required scripts and test cases.
    [code]CREATE TABLE LEAD_TIME_TABLE(sku VARCHAR2(20),model VARCHAR2(20),class CHAR(1),geo VARCHAR2(6),lead_time NUMBER,created DATE);
    CREATE TABLE LEAD_TIME_TABLE_STAGING(sku VARCHAR2(20),geo VARCHAR2(6),lead_time NUMBER);
    CREATE TABLE SKU_TABLE(sku VARCHAR2(20),geo VARCHAR2(6),lead_time NUMBER);
    INSERT INTO SKU_TABLE VALUES('A0814817','GB',30);
    INSERT INTO SKU_TABLE VALUES('A0814818','AT',30);
    INSERT INTO SKU_TABLE VALUES('A0814819','GB',30);
    INSERT INTO SKU_TABLE VALUES('A0814820','BE',30);
    INSERT INTO SKU_TABLE VALUES('A0814821','GB',30);
    INSERT INTO LEAD_TIME_TABLE(SKU,GEO,LEAD_TIME) VALUES('A0814817','GB',30);
    INSERT INTO LEAD_TIME_TABLE(SKU,GEO,LEAD_TIME) VALUES('A0814818','AT',20);
    INSERT INTO LEAD_TIME_TABLE(SKU,GEO,LEAD_TIME) VALUES('A0814819','GB',20);
    INSERT INTO LEAD_TIME_TABLE(SKU,GEO,LEAD_TIME) VALUES('A0814820','BE',20);
    INSERT INTO LEAD_TIME_TABLE_STAGING VALUES('A0814822','BE',30);[/code]
    From the above message.
    Test case for req3.1:
    The action for SKU numbers "A0814821"  "A0814822" are insert.
    The SKU number  "A0814821" is available in SKU_TABLE table.
    so the record should be inserted in the LEAD_TIME_TABLE.
    [code]SELECT * FROM LEAD_TIME_TABLE;
    SKU        GEO   LEAD_TIME
    A0814817    GB    30
    A0814818    AT    20
    A0814819    GB    20
    A0814820    BE    20
    A0814821    GB    30[/code]
    Test case for req3.2:
    The action for SKU numbers "A0814821"  "A0814822" are insert.
    The SKU number  "A0814822" is not available in SKU_TABLE table.
    so the record should be inserted in the LEAD_TIME_TABLE_STAGING.
    [code]SELECT * FROM LEAD_TIME_TABLE_STAGING;
    SKU        GEO   LEAD_TIME
    A0814822    BE     30[/code]
    Test case for req3.3:
    The action for SKU numbers "A0814821"  "A0814822" are insert.
    The SKU number  "A0814822" is not available in SKU_TABLE table.
    Once I insert SKU number "A0814822" in SKU_TABLE table.
    The corresponding records automatically should be inserted in the LEAD_TIME_TABLE
    and should be deleted from LEAD_TIME_TABLE_STAGING.
    [code]SELECT * FROM LEAD_TIME_TABLE_STAGING;  --- should return NULL.
    SELECT * FROM LEAD_TIME_TABLE;
    SKU        GEO   LEAD_TIME
    A0814817    GB    30
    A0814818    AT    20
    A0814819    GB    20
    A0814820    BE    20
    A0814821    GB    30
    A0814822    BE    30[/code]
    Please help me.
    Thanks in advance.

    Hi,
    I have resolved this issue.
    But I have stuck up in implementing some of the scenarios.
    Req1:
    IF the action is update then the records should be updated in the "LEAD_TIME_TABLE" table
    IF the action is update then the records should be updated in the "LEAD_TIME_TABLE" table
    based on the below condition.
    UPDATE LEAD_TIME_TABLE SET lead_time= lead time from xml message
    WHERE LEAD_TIME_TABLE.SKU=sku from xml message AND LEAD_TIME_TABLE.GEO=geo from xml message;
    Req3:
    IF the action is add then the records should be inserted in the "LEAD_TIME_TABLE"  and "LEAD_TIME_TABLE_STAGING" table
    based on the below conditions.
    Req3.1:
    If SKU from XML message is available in "schema_name.SKU_TABLE" table.
    The schema_name.SKU_TABLE table should be selected based on "business_unit_id" of XML message and "sid" of MAPPING table WHERE business_unit_id=sid.
    then the three parameter(GEO SKU LEAD_TIME) values from XML message and two fields MODEL,CLASS from SKU_TABLE
    should be inserted into "LEAD_TIME_TABLE" table.
    Req3.2:
    If SKU from XML message is not available in "schema_name.SKU_TABLE" table
    The schema_name.SKU_TABLE table should be selected based on "business_unit_id" of XML message and "sid" of MAPPING table WHERE business_unit_id=sid.
    then the four parameter(BUSINESS_UNIT_ID GEO SKU LEAD_TIME) values from XML message
    should be inserted into "LEAD_TIME_TABLE_STAGING" table.
    Req3.3:
    Once the new SKU is avilable in "schema_name.SKU_TABLE" table then the corresponding SKU record should be
    inserted into "LEAD_TIME_TABLE" table and that record should be deleted from  "LEAD_TIME_TABLE_STAGING" table.
    The schema_name.SKU_TABLE table should be selected based on "business_unit_id" of LEAD_TIME_TABLE_STAGING and "sid" of MAPPING table WHERE business_unit_id=sid.
    I am posting required scripts and test cases.
    [code]CREATE TABLE LEAD_TIME_TABLE(sku VARCHAR2(20),model VARCHAR2(20),class CHAR(1),geo VARCHAR2(6),lead_time NUMBER,created DATE);
    CREATE TABLE LEAD_TIME_TABLE_STAGING(business_unit_id NUMBER,sku VARCHAR2(20),geo VARCHAR2(6),lead_time NUMBER);
    CREATE TABLE SKU_TABLE(sku VARCHAR2(20),model VARCHAR2(20),class VARCHAR2(10));
    CREATE TABLE mapping(sid NUMBER,schema_name VARCHAR2(20));
    INSERT INTO LEAD_TIME_TABLE(SKU,GEO,LEAD_TIME) VALUES('A0814817','GB',30);
    INSERT INTO LEAD_TIME_TABLE(SKU,GEO,LEAD_TIME) VALUES('A0814818','AT',20);
    INSERT INTO LEAD_TIME_TABLE(SKU,GEO,LEAD_TIME) VALUES('A0814819','GB',20);
    INSERT INTO LEAD_TIME_TABLE(SKU,GEO,LEAD_TIME) VALUES('A0814820','BE',20);
    INSERT INTO SKU_TABLE VALUES('A0814817','M125','C111');
    INSERT INTO SKU_TABLE VALUES('A0814818','M127','A111');
    INSERT INTO SKU_TABLE VALUES('A0814819','M126','A111');
    INSERT INTO SKU_TABLE VALUES('A0814820','N100','B111');
    INSERT INTO SKU_TABLE VALUES('A0814821','P123','B111');
    INSERT INTO mapping VALUES(202,'WEDB');
    INSERT INTO mapping VALUES(2828,'HR');
    INSERT INTO mapping VALUES(3838,'BB');
    [/code]
    Test case for req3.1:
    The action for SKU numbers "A0814821"  "A0814822" are insert.
    The SKU number  "A0814821" is available in schema_name.SKU_TABLE table.
    so the record should be inserted in the LEAD_TIME_TABLE.
    [code]SELECT * FROM LEAD_TIME_TABLE;
    SKU        MODEL  CLASS  GEO   LEAD_TIME
    A0814817    M125   C111   GB     30
    A0814818    M127   A111   AT     20
    A0814819    M126   A111   GB     20
    A0814820    N100   B111   BE     20
    A0814821    P123   B111   GB     30
    [/code]
    Test case for req3.2:
    The action for SKU numbers "A0814821"  "A0814822" are insert.
    The SKU number  "A0814822" is not available in SKU_TABLE table.
    so the record should be inserted in the LEAD_TIME_TABLE_STAGING.
    [code]SELECT * FROM LEAD_TIME_TABLE_STAGING;
    BUSINESS_UNIT_ID       SKU        GEO   LEAD_TIME
    2828               A0814822    BE     30[/code]
    Test case3.3.3:
    The action for SKU numbers "A0814821"  "A0814822" are insert.
    The SKU number  "A0814822" is not available in SKU_TABLE table.
    Once I insert SKU number "A0814822" in SKU_TABLE table.
    The corresponding records automatically should be inserted in the LEAD_TIME_TABLE
    and should be deleted from LEAD_TIME_TABLE_STAGING.
    [code]INSERT INTO SKU_TABLE VALUES('A0814822','P123','B111');
    SELECT * FROM LEAD_TIME_TABLE_STAGING;  --- should return NULL.
    SELECT * FROM LEAD_TIME_TABLE;
    SKU        MODEL  CLASS  GEO   LEAD_TIME
    A0814817    M125   C111   GB     30
    A0814818    M127   A111   AT     20
    A0814819    M126   A111   GB     20
    A0814820    N100   B111   BE     20
    A0814821    P123   B111   GB     30
    A0814822    P123   B111   GB     30[/code]
    I am able to implement Req1 and Req3.1 for action UPDATE and INSERT in single merge statement.
    However my code is not taking care of all my requirements.
    Please find my below code.
    [code]   CREATE OR REPLACE PACKAGE BODY messg_values_process
       AS
        procedure ProcessInboundLtimeMessage(p_xml_message XmlType)
        is
        begin
            for work_unit in (
                select message.MESSAGE_ID
                     , work_unit.ACTION
                     , work_unit.LEADTIME_NODES
                  from XmlTable(
                        '/MESSAGES/MESSAGE'
                        passing p_xml_message
                        columns
                            MESSAGE_NO          for ordinality
                          , MESSAGE_ID          number path '@ID'
                          , WORK_UNIT_NODES     XmlType path 'MSG/WORK_SET/WORK_UNIT'
                       ) message
                     , XmlTable(
                        XmlNamespaces(
                            'urn:schemas-microsoft-com:rowset' as "rs"
                          , '#RowsetSchema' as "z"
                        '/WORK_UNIT'
                        passing message.WORK_UNIT_NODES
                        columns
                            WORK_UNIT_NO        for ordinality
                          , ACTION              varchar2(10 char) path '@ACTION'
                          , LEADTIME_NODES       XmlType path 'RECORDSET[@TABLE_NAME="LEAD_TIME"]/xml/rs:data/z:row'
                       ) work_unit
        LOOP
                CASE work_unit.ACTION
                  WHEN 'ADD'    THEN MergeData(work_unit.LEADTIME_NODES);
                  WHEN 'UPDATE' THEN MergeData(work_unit.LEADTIME_NODES);
                  WHEN 'DELETE' THEN RemoveData(work_unit.LEADTIME_NODES);
                  ELSE null;
                END CASE;
            END LOOP;
        END ProcessInboundLtimeMessage;
            procedure MergeData(p_leadtime_nodes XmlType)
        is
        begin
            if (p_leadtime_nodes is not null) then
                merge into LEAD_TIME_TABLE old
                using(
                    select *
                      from XmlTable(
                            XmlNamespaces(
                                'urn:schemas-microsoft-com:rowset' as "rs"
                              , '#RowsetSchema' as "z"
                            '/z:row[not(@business_unit_id=following-sibling::z:row/@business_unit_id)]'
                            passing p_leadtime_nodes
                            columns
                                ITEM_NO             for ordinality
                              , BUSINESS_UNIT_ID    number path '@business_unit_id'
                              , GEO                 varchar2(20 char) path '@geo'
                              , SKU                 varchar2(20 char) path '@sku'
                              , LEAD_TIME           number path '@lead_time'
                ) NEW
                   ON (old.VK_UNIT = new.SKU
                  AND old.GEO=new.GEO)
                when matched then update
                   set old.LEAD_TIME = new.LEAD_TIME
                when not matched then INSERT
                     ( old.VK_UNIT
                     , old.MODEL
                     , old.CLASS
                     , old.GEO
                     , old.LEAD_TIME
                     , old.COUNTDOWN
                     , old.LAST_UPDATED_DATE
                     values
                     ( new.SKU
                     ,'A123'
                     ,'A1234'
                     , new.GEO
                     , new.LEAD_TIME
                     , 'N'
                     , sysdate
            end if;
             exception
            when others then
                LogDataError(
                    'MergeData Procedure Failed #: '||chr(10)||sqlerrm
                  , null
                  , null
        END MergeData;
    END messg_values_process;
    /[/code]
    Please help me.
    Thanks.

  • Delete messages from server when deleted from iTouch doesn't work

    Hi everybody,
    Two questions really...
    One is that with my 2nd gen iTouch I was able to set IMAP settings and it would show all of the folders (other than Inbox) that I have created on my mail account. The 4th gen iTouch doesn't seem to let me see the sub-folders.
    The second is that I have my account set to delete messages from the server when they are deleted from my Inbox, but that simply doesn't work.
    This is withe the iTouch 4 and OS 4.1 (8B117)
    Any suggestions?
    Thanks

    Is it possible that I have the wrong Server Port entered? I didn't fill in that field at all. I think it was filled in automatically. I guess I would have to contact my hosting company's support team to know what the server port is.

  • I am unable to see any POP3 or IMAP tab when I set up an account in my iphone 4S. Hence by default all my email accounts become IMAP and the messages are deleted from the server when I delete them from the iphone.

    I am unable to see any POP3 or IMAP tab when I set up an account in my iphone 4S. Hence by default all my email accounts become IMAP and the messages are deleted from the server when I delete them from the iphone.

    ok sorry everyone but i solved it myself but the solution is so nuts i've posted it here to help others who have the same problem.
    to setup a comcast imap account on your iphone:
    go to mail, contacts, etc in settings
    under accts, select add account
    select "other"
    new screen, choose "add mail account"
    now on the new acct screen you must enter your name, email address and password for your GMAIL acct ! (yes i said your gmail acct !, or some other acct with a NON comcast address).
    hit next
    then the acct verifies
    when verified a screen will open with all the acct settings for this acct AND @ the top of the screen are the 2 buttons > imap or POP
    select imap and THEN CHANGE ALL THE ACCOUNT information to the comcast account !
    then hit next and the account will take a couple minutes to verify but it will verify and now you have a comcast imap acct set up on your iphone.  The problem must be that when the iphone sends the initial verify acct info to comcast (if you enter that information first) the comcast server is simply not setup yet to signal the iphone that there is an imap option.

  • How can I delete messages from the local Sent folder without deleting from the remote server?

    I am running out of disk space on my local machine. Analysing this, I can see that a large amount of space is being taken up by local storage of Sent emails from my IMAP synchronised account.
    I do not see how I can delete the local copies from my PC without them being deleted from the Server as well. There is an account setting option under Synchronisation and Storage to delete messages, but it says they will be deleted from both the local machine and the remote server.
    I need to keep the server versions as these are business accounts and it is important I have all my old messages stored somewhere.

    Short answer: get a bigger hard disk.
    You could disable synchronization and free up the space on your local disk without loosing the messages. However, this would eliminate the possibility to create backups of your messages.<br>
    Since you mentioned this is important business mail, you shouldn't take chances.

  • HT6114 I cannot select more than one message at a time to delete from the trash. Any ideas will be appreciated

    I cannot select more than one message at a time to delete from the trash. I did not have this problem before I updated to Maverick. What am I doing wrong?

    This works in many different ways and in lots of apps.
    Hold down the command key and you can select from a list (leaving some not checked) to exclude them from the delete process.
    To empty all of the trash folder use command-a keys to "select all" and then the delete key to remove them.

  • MAIL: Trying to settle long-lasting problem. Mail always immediately downloads the messages I delete from any IMAP mailbox. I'm running out of HD space!

    BACKGROUND
    I only have 60GB of space on my MacBook Air. Currently, three long-standing IMAP accounts are taking up over 7GB of it!
    I have seen several related discussions about this kind of problem, but they all seem to have been solved or glossed over with setting up the IMAP interaction so that messages are deleted from the server in addition to the device or with a "Mailbox > Use This Mailbox For" fix that doesn't work for me. I like being able to save all of my email history on servers (I'm often surprised by how many years back I have to search to find a piece of information I need), but I can no longer stand losing so much of my very limited local space to really old mail.
    PROBLEM
    I'll refer to just one of the relevant accounts as "Gmail," since that's in parentheses when seen in these screenshots. These are its current Mailbox Behaviors settings:
    Under my Gmail Inbox in Mail, I have deleted every message from before 2013. The mail from 2013 is all that I want stored on my MacBook Air.
    Ultimately, I think this has something to do with the Archive (seen in the sidebar above, as well). Even when I've deleted everything from before 2013 in my Inbox, AND emptied the entire contents of Trash manually, the Archive still contains all of the mail from the server (yes, this account was started in 2011, but I have others that go back much further).
    The cherry on top is that when I delete the same messages from the Archive as I've deleted from the Inbox, Mail immediately begins re-downloading all of those messages. Last time I tried this my laptop had to download 23000 messages, but here's a screenshot of proof with a smaller sample:
    In case my Gmail server settings are useful to consider, here they are:
    Final Notes
    • There's a lot that I don't know about exactly how IMAP communication occurs between a device and a server. For my sake and the sake of anyone else who needs this kind of help, please clarify terms like "flags" and "archive" (since Gmail and Mail both use the term and I don't know think they mean exactly the same thing) if/when you use them.
    • If anyone does think that there's some sort of "Mailbox > Use This Mailbox For" solution to this, you should know that no matter what I have selected in Mail's sidebar (at no matter what level of indentation), the options available under that menu item are always grayed-out.
    • I want to keep using Mail. There's a lot that I like about it and I don't want to switch to Thunderbird or something else (remember, I need to save as much local space as I can).
    • I just upgraded to 10.9.0 Mavericks, but this problem has existed for me and behaved essentially just like this as long as I can remember. In fact, I think I recall the problem still existing before there was an Archive in the sidebar at all.

    UPDATE
    I still have the problem, but when I checked on this post to see if anyone had commented and I simply hadn't received an e-mail, I noticed that all but the last of the images I included have stopped displaying (I had friends check, too).  Most of them were just visual examples of what I was explaining in hopes of giving context and all available info that I may not have personally viewed as relevant, but the first one, about my account's Mailbox Behaviors settings sure is important. These are the settings I have:
    • Store draft messages on the server — Check
    • Store sent messages on the server — Check
    • Delete sent messages — One month old
    • Store junk messages on the server — Check
    • Delete junk messages — One week old
    • Move deleted messages to the Trash mailbox — Grayed-out and Check
    • Store deleted messages on the server — Grayed-out and Check
    • Permanently erase deleted messages when — Quitting Mail
    I hope this helps. Please comment if I'm leaving out any other important information.

Maybe you are looking for