Service Requests remain In Progress when all Activities are Completed

Hello Experts, we're periodically finding Service Requests remain In Progress, when all Activities within the SR are Completed.
Specifically this is happening when a RB Activity within the SR template has generated an Incident and attached it to the SR, and all of the Activities within the SR are Completed prior to the Incident being Closed.
Has anyone run into this situation?
Even if we had means to easily find this scenario in our system that would ease our pain -- is it possible to use PowerShell to return all Service Request's which are In Progress but have all child Activities marked as Completed?
Thanks!

I've run into a couple of Service Request status issues. I'm convinced the SR status workflows are not as well designed as the other out of the box work item workflows. I've recently run into a problem with Service Requests failing to start (i.e. stuck forever
in New status) depending on how they were created, and Here's a similar script i used to address the SR's jumping to completed bug from early in 2012.
import-module smlets
#Variable Setups
$SRCompleted = Get-SCSMEnumeration ServiceRequestStatusEnum.Completed$
$SRCompletedID = $SRCompleted.id
$SRInProgress = Get-SCSMEnumeration ServiceRequestStatusEnum.InProgress
$ACCompleted = Get-SCSMEnumeration ActivityStatusEnum.Completed$
$ACSkipped = Get-SCSMEnumeration ActivityStatusEnum.Skipped$
$SRClass = Get-ScsmClass System.WorkItem.ServiceRequest$
$ContainsActivity = get-scsmrelationshipclass System.WorkItemContainsActivity$
$SRReset = $False
#Get SR in question (from workflow params)
$SR = get-scsmobject -class $SRClass -filter "id -eq $ID"
#Get all children relations.
$ChildREls = Get-SCSMRelationshipObject -BySource $SR | ? {$_.relationshipid -eq $ContainsActivity.id -and $_.IsDeleted -eq $False}
#if there are children (don't reset SRs that don't have activities)
if ($ChildRELs) {
foreach ($childREL in $ChildRELs ){
#Get Activity from child relation.
$ChildAC = (get-scsmobject -Id $childREL.TargetObject.id)
if (!($ChildAC.Status -eq $ACCompleted -or $ChildAC.Status -eq $ACSkipped -or $ChildAC.Skip -eq $True)) {
$SRReset = $True
if ($SRReset) { Set-SCSMObject $sr -Property Status -Value $SRInProgress }
the important part of that script is the bit where i'm walking each child and checking it's status. you could adapt this to your situation with some framing adjustments. 

Similar Messages

  • Instance faulted out even all activities are completed successfully

    Hi ,
    My BPEL flow is showing all processes as completed but even then I am not able to see output on the response tab and the error pops as timed out .
    The State of bpel instance is also faulted but when i go to audit trail or the flow I can see that all activities are completed successfully and even at the reply output stage of my synchronous bpel process I can see the output which I want but still I am not able to see the same on response tab and it is faulted out and showing oracle.fabric.common.FabricInvocationException
    Please help.
    Regards,
    Neeraj

    Hi
    I hope this is due to the following reasons
    1) check the response message is assigned correctly.
    2) check the SyncMaxWaitTime value in em console and set it to some higher value like 100 or 200.
    Regards
    Vamsi..

  • Could not execute view config service request. This usually happens when an invalid view config service request is made, or when a read only Oracle Endeca Server receives a view config service request. Error message: Error applying updates: Unsupported la

    Hi,
    I have some data loaded into the data-domain in Endeca 3.0. When I was creating views in studio I repeatedly get this message when I say save view:
    Could not execute view config service request. This usually happens when an invalid view config service request is made, or when a read only Oracle Endeca Server receives a view config service request. Error message: Error applying updates: Unsupported language ${DEFAULT_LANGUAGE}
    In the workspace.prm file I have set ${DEFAULT_LANGUAGE}=en
    May I know why this happening and a remedy for it. Appreciate you help.

    Hi,
    I have some data loaded into the data-domain in Endeca 3.0. When I was creating views in studio I repeatedly get this message when I say save view:
    Could not execute view config service request. This usually happens when an invalid view config service request is made, or when a read only Oracle Endeca Server receives a view config service request. Error message: Error applying updates: Unsupported language ${DEFAULT_LANGUAGE}
    In the workspace.prm file I have set ${DEFAULT_LANGUAGE}=en
    May I know why this happening and a remedy for it. Appreciate you help.

  • My menu bar does not appear at the top of my homepage on a brand new 27" iMac only when i pull up an app. this does not allow me to shut down my mac when all apps are closed nor does it all me to use finder. any help would be awesome

    My menu bar does not appear at the top of my homepage on a brand new 27" iMac only when i pull up an app. this does not allow me to shut down my mac when all apps are closed nor does it all me to use finder. any help would be awesome

    Press the escape (esc) key to exit full-screen mode.

  • Black only error message when all inks are full

    My printer ran out of a color some time ago and popped up the black only message box. I have since replaced all of the colored inks and it still gives me the black only message when I go to print and says I need to replace magenta. I just replaced it! My printer is the photosmart C6280. Thank you

    Hello Sudharshan,
    "Status can only be set when all originals are stored" Also I see that the model is not having Status in CAD VIEW.
    This is error is indicating that your original CAD model is not checked in and as per your configuration you require the original to be checked in before moving to next status.
    Please:
    1. Check your document status network.
    2. ensure that you have proper set up for the fields "check in" in the current status. This indicator should be set. This ensures that the document is automatically checked in before moving to the next status. This will solve your problem.
    When I double click on that object in CAD VIEW, it takes me to DIR creation screen with Document Type DES. Can someone help me in this ?
    Because of the above set up missing the original DIR is missing the original document and hence the system assumes you are creating a new DIR when you click on the object in CAD view.
    regards,
    N K

  • Can we change log_buffer parameter online e.g. when all users are working..

    Hi,
    Can we change log_buffer parameter online e.g. when all users are working.. ???
    What is relation between redo buffer in sga and log_buffer parameter ?
    SQL> show sga
    Total System Global Area 3758096384 bytes
    Fixed Size 1983152 bytes
    Variable Size 553655632 bytes
    Database Buffers 3187671040 bytes
    Redo Buffers 14786560 bytes
    SQL>
    SQL> show parameter log_buffer
    NAME TYPE VALUE
    log_buffer integer 14338048
    SQL>
    SQL>
    If the log_buffer parameter is 14 MB then why redo buffer is no as same size e.g.
    14 MB
    SSM

    I am hoping your Oracle Consultant know what he's talking about.
    According to Oracle Performance Guide,
    http://download-west.oracle.com/docs/cd/B19306_01/server.102/b14211/memory.htm#sthref654
    "On most systems, sizing the log buffer larger than 1M does not provide any performance benefit. Increasing the log buffer size does not have any negative implications on performance or recoverability. It merely uses extra memory.
    The best method to determine if bigger redo buffer is needed is
    SELECT NAME, VALUE
    FROM V$SYSSTAT
    WHERE NAME = 'redo buffer allocation retries';
    The value of redo buffer allocation retries should be near zero over an interval. If this value increments consistently, then processes have had to wait for space in the redo log buffer. The wait can be caused by the log buffer being too small or by checkpointing. Increase the size of the redo log buffer, if necessary, by changing the value of the initialization parameter LOG_BUFFER. The value of this parameter is expressed in bytes. Alternatively, improve the checkpointing or archiving process.
    Other than that, hight log file sync event indicate you need faster disk for your redo logfiles. However, please also post your commits per second and redo per second from your AWR report.
    100M redo logs might be small for your environment.

  • CAD VIEW Error : "Status can only be set when all originals are stored"

    Hi Friends,
    I have Proe to SAP integrated and when I open Proe model in CAD VIEW and try to create a document it shows an error "Status can only be set when all originals are stored" Also I see that the model is not having Status in CAD VIEW.
    When I double click on that object in CAD VIEW, it takes me to DIR creation screen with Document Type DES. Can someone help me in this  ?
    Rgds,
    SM

    Hello Sudharshan,
    "Status can only be set when all originals are stored" Also I see that the model is not having Status in CAD VIEW.
    This is error is indicating that your original CAD model is not checked in and as per your configuration you require the original to be checked in before moving to next status.
    Please:
    1. Check your document status network.
    2. ensure that you have proper set up for the fields "check in" in the current status. This indicator should be set. This ensures that the document is automatically checked in before moving to the next status. This will solve your problem.
    When I double click on that object in CAD VIEW, it takes me to DIR creation screen with Document Type DES. Can someone help me in this ?
    Because of the above set up missing the original DIR is missing the original document and hence the system assumes you are creating a new DIR when you click on the object in CAD view.
    regards,
    N K

  • Message no. 26269 : Status can only be set when all originals are stored

    Hi,
    While changing status in cv02n, i am getting the below message no-Message no. 26269 : Status can only be set when all originals are stored. I am not getting the message solution in google. please guide me how to come over from this message.
    Regards,
    Mastan.

    Collegues! Have you any idea?
    Found this - [recommendation|http://help.sap.com/saphelp_47x200/helpdata/en/0c/b98e3c90347b17e10000000a114084/content.htm] - how to, but there so simple scenario without details about standart functionality.
    Check In
    You can check in originals, which are saved in the local network, into a storage system. The following originals are indicated by the  icon:
    Originals that are to be checked in for the first time.
    Originals that have already been checked in, and loaded into the local network for changing.
    To do this start WebDocuments. Process the document info record in the change mode.
    Select the original in the Originals dataset.
    Choose Check In. The system determines the storage system based on the system settings, and checks in the original.
    You return to the data sheet. The original application file is indicated by the Checked In  icon.
    Save the document.
    Very simple, but not work, and no details. Castle icon are not locked. DELETE, CANCEL - work, but not CNANGE.
    Maybe my storage system cannot determine the storage system? If it is right, so where can i maintain this option?

  • Still print picking list when ALL items are blocked. Is this possible.

    You know what warehouse people are like. When a delivery has all items blocked the picking list isn't printed, and the warehouse guys are wondering why nothing has printed. Of course a list is printed when there is at least one item that is not blocked on a picking list.
    My question is whether it's possible to print the picking list when all items are blocked?. I would expect no items to be printed for picking, but at the bottom of the report I would expect to see a list of items blocked.
    Anyone?.
    Jason

    HI
    1.Kindly chekc the routine in the t code V/27
    2.Against the routine against rthe condition type in the be.lwo path
          Logistics Execution
              Shipping
                 Output Control
                      Output Determination
                         Maintain Output Determination for Outbound Deliveries
                                Maintain Output Determination Procedure
    3.if it is in warehouse management then check in the tocde OMLV
    REgards
    Damu

  • SCSM 2012 R2 - Activities have been completed but Service Request staying In Progress

    I have noticed that a number of service requests that are shwoing with the status as 'In Progress' have actually had all the related activities resolved.
    Once the activities are all closed the request should automatically go to Compelted, why is this not happening on some of my Service Request????
    tamrep

    There were in deed some needing attention under activity status changed, but no errors showing in the log.
    I re-ran them all and they succeeded so maybe this was it. Have you come across it before? I'll need to keep an eye on this.
    There wasn't anything requiring attention under Service request Status changed, which i was surprised with.
    tamrep

  • Service Requests stuck In Progress

    I have about 20-30 service requests that are stuck in the In Progress state. The activities on the Service Request have been completed.
    I have tried restarting the services below and deleted the HealthServiceStore.edb file in the folder C:\Program Files\Microsoft System Center 2012 R2\Service Manager\Health Service State\Health Service Store
    Microsoft Monitoring Agent
    System Center Data Access Service
    System Center Management Configuration
    I have everything to my knowledge short of rebooting the server. Is there anything else I can try?

    I wrote a blogpost on how to detect stuck SR using a script, and a script that will kickstart it again (some requests have activities that are stuck in pending which is even worse). Also finds the ones with all completed activities but SR is still active.
    http://codebeaver.blogspot.dk/2014/07/restarting-workflow-scripted.html
    @Thomas
    Didn't know you could use -Value "Closed" as this is an enumeration. Anyways, if you wan't to be language-independent you can use (free from memory - not tested)
    $ClosedStatus = Get-SCSMEnumeration ServiceRequestStatusEnum.Closed # Something like this :D
    $SR | Set-SCSMObject -Propertyhashtable @{Status = $ClosedStatus}
    Cheers,
    Anders Spælling
    Senior Consultant
    Blog:  
    Twitter:   LinkedIn:
    Please remember to 'Propose as answer' if you find a reply helpful

  • ISupport - Service Request Update page Progress section

    Hi folks,
    iSupport 11.5.10.2
    On iSupport's Service Request Update page (IBU_CF_SR_190_G), is there any way in the Progress section to display only certain kinds of information? For example, right now, Progress section displays Notes, Status Changes, Severity Changes etc. Is there a way to display, say, only Notes?
    Kind Regards.

    Steps to do the configuration:
    1.Login to EBS
    2.Select the Application Developer Common Modules Responsibility.
    3.Selct the Region Function.
    4.Query for IBU_CF_SR_DTL_PROGRESS_TABLE region.
    5. Using this region you should be able to enable only Notes to show up in the progress region.

  • Scripting for when all buttons are clicked

    Im quite new to flash well at least the scripting part of it.
    I'm much more of a designer and I'm having big problems I know that
    it is prob very simple but I am totally useless at it! Can some1
    please just point me in the right direction thank you xxx

    If you're testing in flash you should see some trace outputs
    in the output panel. If you don't then there's something not
    working right.
    When you press each of your buttons, you want the main
    timeline to go to a different frame right? You need to set those
    frame targets in the code.
    example for but_bat:
    {button:but_bat, gotoFrame:2},
    this sets things up so that when but_bat is pressed, the
    timeline goes to frame 2.
    You will need to set the others for their correct frame
    targets. Just change the numbers for gotoFrame:
    number here
    Is what you want to happen when
    all of the buttons have been clicked that a congratulations
    sign movieclip is played? (You haven't said what you wanted it to
    do at that point, so I'm afraid I couldn't know that ;-) ) At the
    moment I've set the script up so that it checks... but all it does
    is trace an output:'I would normally want to do something special
    from this point' where whatever you want to have happen when
    they're all pressed would be requested by actionscript. If you tell
    me what that is, I can tell you the code to do it.

  • Order Output should be supressed when all items are rejected

    We have a requirement, where when all schedule lines in a sales order are rejected the order confirmation output should be suppressed.
    This is what we did to achieve it.
    Using the customer modification structure KOMKBZ3, add a new field ZZ_ALL_SL_REJ . This field is an indicator that will be set if all all items in a sales order are rejected.
    Call function KOMKBV1_FILL to populate the communication structure KOMKBV1. The function calls USEREXIT_KOMKBV1_FILL, which is the header level user exit routine.
    In this user exit, through a select statement read table J_3AVBUE, and check for all schedule lines if 'ABSTA' equals C, if this is true the ZZ_ALL_SL_REJ  indicator is set to ‘X’.
    Then in the output requirement routine 900, see if KOMKBV1-ZZ_ALL_SL_REJ is set to 'X', if so set the return code to be 4.
    However when we reject items in sales order and save it, we have to go back in again and save it for the second time for the output determination to be carried out again.
    Could someone help with this...
    Thanks.
    Anne

    I believe an easier method would be to check KOMKBV1-ABSTK in the output requirement. If it's 'C', then all items have been rejected.
    Cheers, Paul.

  • When all apps are closed the text vanishes from my toolbar.  How do i get it back?

    When all the apps are closed the text vanishes from the tool bar at the top of the screen.  The apple icon is still there on the far left but clicking on it does nothing.  I can't log out!!!!

    How do I find that out? I just switched to Apple and am finding it really hard to find stuff.

Maybe you are looking for