Workflow containing impersonation step is producing error

Hi,
i have a workflow containing Impersonation step. i have 2 users as site collection admin. one is service account and another is normal user account.
when i publish the workflow containing impersonation step with the user who is a site collection Admin. the workflow is working perfectly.
but when i publish the workflow containing impersonation step with the service account who is also the  site collection Admin. the workflow is not working. it is throwing "Error Occurred".
what could be the error. pls help me.
Thanks.

If I publish my workflow with impersonation steps as a site owner my workflow is still run as System Account. - why is that and can I avoid that? I would
like my workflow impersonation step to run as the site owner who publish the workflow. I do not understand what prevents me from doing what all references I can find cite: ‘that my impersonation step should be running under the account who published it’.
student

Similar Messages

  • Agent determination for step 0000000081 failed error in workflow

    Hello All,
         I am doing employment verification from ESS portal. In the workflow step I have selected RULE to determine the agent. To configure rule, I double click on rule, on next screen selected "Agent determination - responsibilties" to determine the agent. I configured responsibilties with the valid value ranges and everything but the workflow is going into error! I did research and not sure what I am doing wrong. I checked the workflow container in workflow log and all the values that are supposed to pass to rule container are showing up fine.I keep getting the error:
    Agent determination for step 0000000081 failed
    Result og agent resolution does not agree with agents of task.
    Any feedback you could provide would be greatly appreciated.
    Thanks.
    Mithun

    1. In Transaction PFTC, select Task Type = Standard Task and Task = 01000076
    2. display the task details.
    3. Now go to Additional data ->Agents Assignment->Maintain
    4. Select the task here and click Attributes in the application tool bar.
    5. Select the General Task radio button and hit transfer.
    -- You have made your task general.
    To Synchronise the runtime buffer ,simply excute T-Code SWU_OBUF and hit the Start Synchronization button.

  • Demantra workflow - Container step contain Custom step -- Is it support?

    I want to run multiple step in parallel, create 3 workflow schema
    1. TestDetail1
    2. TestDetail2
    3. TestMain
    In TestMain schema, I use container step to contain two custom step(to launch TestDetail1 and TestDetail2).
    I start the workflow and process stuck at container step, message like:
    Process ID: 3483
    Schema ID: 1028
    Schema name: ''XXDMTEST1''
    Step ID: ''Step1''
    Step name: ''Step1''
    Error description ''Program internal error: null , internal step in container step: ''Step2''''

    Hello,
    I am currently having the exact same requirement and facing the same error.
    Would be obliged if anybody could share any information / workaround you found to achieve the same functionality.
    Thanks !

  • Creating a workflow to give permissions to a SharePoint folder using Impersonation Step

    Hi There,
    I have been tasked with creating a workflow in my organise that will allow our users with (Contributor access) to grant people access upon creating a folder in our Shared Documents library.
    Currently when our users create a folder, they need to logged a call with site administrators to granted the relevant people access to the folder and its contents.
    Is it possible to create a solution that will kick off automatically upon creation of a folder and allow the Creator Only to grant a subset of users permissions to the folder using the Impersonation Step?
    Any suggestions would be highly appreciated.
    Regards
    Tibz
    regards Tibz

    Hi There
    Thank you for your response.
    I managed to create a workflow that can be started automatically upon the creation of a folder in my document library. I then added an Impersonation step where I used the "Remove list Item Permissions" & "Add List Item Permissions" actions.
    The challenge I am faced with is on the Remove Permissions action, I want to remove all inherited permissions for all existing users and only leave Users with Full Control. Is there a way to select All Existing Users in one function and perhaps
    pass that as a "Selected Users" parameter? Currently I have to select the users/groups individually and there are over 100 existing users/groups to choose from.
    Any thoughts on how I can work around this?
    regards Tibz

  • Answered - Workflow editor, left pane, container elements & step type hidden

    Hello,
    How do I restore the workflow container & step types to the left pane of the workflow editor?  Looking at the attached screen print, you can see that they are missing.  Obviously, if can't see step types, I can't drag a step type into the editor pane.
    We are on Basis version 702, patch 11.
    Thanks
    Bruce
    ANSWER:
    Clicking on the thin yellow line at the bottom of the "Navigation area" displayed a drop down list, from which the different options can be selected.

    Thanks for the detailed feedback. There's a lot of stuff here. I'm watching the video and we'll try and see if I can reproduce any obvious bugs. For the other things I'll log and review against other customer feedback to see what changed make the most sense. The more people that give us feedback the easier it is to know what to work on next. Currently working on improving the elements panel and will try to get some general bug fixes in on the way. Thanks again for the feedback and thanks for using Reflow!
    Chris

  • By publishing this workflow, conditions and actions inside Impersonation steps will run using your credentials

    In a SharePoint 2010 workflow that accesses a custom list, I am getting the following warning message before I publish the workflow to the SharePoint test server:
    "By publishing this workflow, conditions, and actions inside impersonation steps will run with your credentials".
    The only step in this SharePoint 2010 workflow is the impersonate step.
    Thus would you tell me what I can do to have the workflow run under different credentials?

    Hi,
    As the warning says, any actions within Impersonation step would be carried out under your credentials if you published the workflow. If you intended to just add a Step in the workflow, then use different icon that says Step (with down arrow). Impersonation
    step is used to modify the permissions on the item.
    Once you have this, the workflow will be executing under the credentials of whoever starts it. Hope it helps.
    Regards, Kapil ***Please mark answer as Helpful or Answered after consideration***

  • Task container to workflow container binding

    Hi all,
    I have a requirement to send mail to department responsible of a quality notification as soon as it is created from defects recording.
    I am using sendmail step for this but since it doesnt have agent determination using rule, I am forced to create a background step which captures the value of department responsible (IHPA-PARNR) and passes on to a element in workflow container. The idea was I could later use the value of this container element in my send mail step which follows.
    For this, I have defined a background step in my workflow template. The method in the standard task of this step refers to a function module.
    The function module takes quality notification number as input (QMEL-QMNUM) and outputs the partner number (data type IHPA-PARNR).
    I want to capture this partner number into my workflow at runtime. For this I defined a workflow container element refering to IHPA-PARNR so that it can bind to the export parameter of the task, which gets the value from method.
    when I test my function module it works fine. BUt when I try to bind the task to my workflow, the binding between the elements refering to IHPA-PARNR gives error this error message:
    " incompatible data type reference"
    whereas the data type reference is same for both container elements.
    Please help.
    Thanks
    kiran

    Hi Ramki,
    This is the binding from workflow to task container.
    X                 => &EXPRESS&
    G                 => &TYPEID&
    &DEPTRESPONSIBLE& => &ADDRESSSTRINGS&
    Here the DEPTRESPONSIBLE is the WF container element which gets the value of department (basically a org structure IHPA-PARNR) via a background task in the previous step.
    And in the recepients list, I have given
    recepient type : organizational object
    expression     : &DEPTRESPONSIBLE&
    I think this is where the problem is. Because when I give workflow initiator as recepient, it works fine. But when I give the department responsible as expression as shown above it errors out.
    It also works fine when I hardcode the value of department responsible in the recepients list (say 50001930)and give recepient type as Organizational object.
    So the problem is it is not taking the value stored in the container element &DEPTRESPONSIBLE& as the recepient.
    Any ideas.
    Thanks a million.
    kiran

  • Files are not appended in the container operation step ?

    Hi Guys,
    I have a BPM scenario where i receive a single file with multiple transactions
    1. Receive step receives the file and starts the process
    2 Transformation Step - Splits the file into individual transactions
    3. Block step --ForEach - Block has the follow 2 steps    
            1. Send - Synchronus - sends the request of each individual transaction to a 3rd party system and receives the response.
           2. Container Operation: Appending all the responses into a single file.
        Properties of container operation:
    Target: Multiline element (Block level element)
        Operation: Append
        Expression: Single element similar to structure above with out multiline.
    4. Send Step: I am writing this file locally to a file and this always shows only the last transaction in case of ParForEachMode and first transaction in the case of ForEach mode.
    can anybody explain why the messages are not appending into a single file. any help would be really appreciated
    Thanks,
    Srini

    Hi Liang,
    Check to see if the Sync Send step send every reply messages it received to container operation step:
    You might need to remove the container operation to see if you receive each individual msgs.
    > I have removed the container operation and i am able to see all the individual responses which i basically written to file just to cross check and every thing looks fine.
    Another way to go to workflow log (Complete Process with all the steps) to get debug information:
    SXMB_MONI -> Click "PE" under outbound queue -> Press "Display WorkFlow Log" button -> Click List with technical details -> Click Show Work item Container
    Here you can see the container and XML message used in this process step.
    You might have information on how message be processed in this step
    > I have checked in the workflow log and workflow shows the container operation only in the case of  ParForEach mode and when the block is in the ForEachMode i dont see any container operation step in the workflowlog and even in the ParForEach mode the container operation dosent have any details.
    Your Container Element reference to response message should also defined in block level, since the response message only exist inside the block. However, using process level container element should not cause any problem
    > I have defined the response messsage at block level in the container and the target i have defined it as multiline element defiend at process level. This multiline element is taken as input in the transformation step at prrocess level.
    are there any other alternatives for this process, i dont understand why the container operation is not appending the elments.
    any help would be appreciated
    Thanks,
    srini
    Edited by: srinivas kapu on Feb 25, 2008 12:10 PM

  • Container Operation step in User Decision

    Hi,
    I have used one set container operation step in one of the user decision task. But it seems it is not working inside the user decision step.
    I have checked the SWI1 log as well, but it is bypassing it.(screen shot attached from Workflow and SWI1).
    Please sugegst that can we use container operation step inside the user decision task.
    SWI1 log as well ( Not setting the variabl)e
    Regads,
    Priyanka

    Hi,
    check if in the workflow definition you mention if this step should be shown in the log or not. Also make sure using the technical details option in the workflow log that indeed the container operation was executed or not.
    If everything seems correct, but still in execution it skips something, then your workflow definition might be corrupt, either fix it by deleting the step in development, saving it and then recreating it. Or if it was corrupted after transport you could try your luck with function module SWD_REPLICATE_FROM_9999.
    Kind regards, Rob Dielemans

  • Using Container operation step can i pass one table to another?

    hi
    i have 2 multiline container elements in the workflow.
    in one of my step i am sending email using the receipents from the table LT_RECLIST which is a multiline container. Now before this step i am using a container operation step to pass LT_RECLIST_FINAL to LT_RECLIST. But guess this is not working? is this possible?
    the condition in container operation step is like this
    Result Element   LT_RECLIST
    Assignment         =     Assign (contents of table are deleted first)
    Expression          &LT_RECLIST_FINAL&
    Operator
    any idea where i am going wrong?

    instead of
    =     Assign (contents of table are deleted first)
    try the followinng option.
    <-    Add only to table (contents are extended)
    or you can directly use the element LT_RECLIST_FINAL in your mail step instead of assigning it to LT_RECLIST and using this element. if both the elements are going to store the same values then there is no point in using a separate element.

  • Retrieve workflow container data in programming exit

    I am trying to use a programming exit in Workflow in order to amend the task container for the receipients field of a "Send Email" step. The reason why we are not determining the receipients in the usual way is because we hold the receipients (amongst other data) in a separate Z* table - this needs to stay this way.
    I created a class and copied method CHANGE_CONT_ELEMENT to base my altered code on. The method is triggered fine when testing the workflow. Here is what it now looks like:
    method CHANGE_CONT_ELEMENT .
      DATA: container TYPE REF TO if_swf_cnt_container,
            if_swf_cnt_container,
            cont TYPE REF TO IF_SWF_IFS_PARAMETER_CONTAINER,
            name TYPE swfdname,
            lh_wihandle TYPE REF TO if_swf_run_wim_internal,
            l_exception TYPE REF TO cx_swf_cnt_container,
            l_wiid TYPE sww_wiid,
            w_container type ref to IF_SWF_IFS_PARAMETER_CONTAINER,
            w_names type SWFDNAMTAB,
            wa_names type line of SWFDNAMTAB,
            w_value(30).
      w_container = me->m_ctx->GET_WI_CONTAINER( ).
      w_names = w_container->LIST_NAMES( ).
    data: w_name type SWFDNAME.
    w_name = 'TEST-NUMBER'.
    TRY.
      loop at w_names into wa_names.
        CALL METHOD w_container->get
         EXPORTING
          name       = wa_names.
      endloop.
    CATCH CX_SWF_CNT_ELEM_NOT_FOUND .
    CATCH CX_SWF_CNT_ELEM_TYPE_CONFLICT .
    CATCH CX_SWF_CNT_UNIT_TYPE_CONFLICT .
    CATCH CX_SWF_CNT_CONTAINER .
    ENDTRY.
    ENDMETHOD.
    Now w_names retrieves the names of the fields fine (including my "TEST" entry which I declared in the Workflow Builder), but the GET method causes a "CX_SWF_CNT_ELEM_NOT_FOUND" exception.
    Is this the correct way to retrieve data out of a Workflow container within a WF programming exit? What am I doing wrong?
    Kind regards,
    Michael Koch

    Hi Michael, Paolo & Other experts,
    I am trying to understand when, why and how to use a 'programming exit' in a SAP workflow.
    (1) Did you figure out the solution to your problem?
    (2) Is there any material / tutorial on use of a  'programming exit' in a workflow?
    Thanks
    Abaper

  • How to create a container element in workflow container

    Hi,
    I am learning WF by a Tutorial. In which absence of notification was considered as example. As per tutorial, I created two task for creating a Notification and checking a absence
    In the next step it ask to create a container element(approver) to workflow container. How i can create the same.
    Also, please clarify me on the binding between task container and workflow container....with this example
    Thanks
    Suresh

    Hi,
    On the workflow builder LEFT side below the navigation area u can see this <Double-Click to Create>.
    Double click and create the container.
    During binding it looks as follows.
    Workflow  -
    >   Task
    Workflow <----
    Task
    What happen here is from workflow the data passed to task and it is used for processing, after that it returned back to the workflow. Now u can create the container on bothside and bind the data. ie Variables.
    Creating container u can refer : http://www.****************
    Reward for useful answer.
    Richard A

  • Workflow issue - Main workflow container elements are not updated.

    Hi All
    We have implemented N-step badi for approval process and for this we have activated one workflow which contains subworkflow .
    During approval process , only the subworkflow container elements( approver list and last approver) getting updated with status and time.But main workflow container elements is not updating with these details.
    Binding between main workflow and subworkflow is perfect. But reverse binding ( from subworkflow -> main workflow ) will take place once subworkflow is completely finished. But here we will require / need to pass some information from sub workkflow to main workflow when still subworlflow in process( before completed itself).
    Please let me know is there any process / steps is required to pass values between subworkflow to main workflow ( binding is perfect).
    Please let me the way how I can update the main workflow container from  subworkflow container or from any step in sub workflow .
    In subworkflow . we have loop of  approvers and it will send workitems to approvers one by one.
    Here i need to update Main workflow with the information like last approver and approver list with status and approved time.
    So please suggest how Can I update main workflow container from subworkflow while subworkflow is still in process( subworkflow not yet completed).
    Kindly reply me ASAP.
    Thanks and Regards
    Madhukar .

    Yes I am setting SWC_SET_ELEMENT for my container values,the ones for which i have defined as EXPORT.
    And I have checked the task also...
    Everything has been checked properly..The binding is fine.
    Thanks & regards,
    Ravikiran Kallimath

  • Error occured in deployment step 'Add Solution': Error: Cannot add the specified assembly to the global assembly cache

    hi,
    I have created a separate project which contains a class which has some generic methods- its a Utility class.[ its a  class library project ]
    I added this dll into my SharePoint project's wsp package [package--> advanced-->add assembly project from output ]  [ SP 2013/ VS 2012]
    So till yesterday everything was working fine, its has successfully deployed in the GAC.
    But today when I tried to deploy my solution I got this error
    "Error occured in deployment step 'Add Solution': Error: Cannot add the specified assembly to the global assembly cache" .
      I closed the  VS and did iisreset , and uninstalled dll using powershell . and i  went to package removed the dll from the wsp package and deployed again.
    Now when i added  the  dll into this package again, it failed to deploy.
    can anyone tell ,  why this is happening. i have not done any changes in the dll yesterday or today.
    suddenly , it  started behavin stranegly. 

    Use the power shell command to delete dll
    http://www.c-sharpcorner.com/uploadfile/anavijai/how-to-install-or-uninstall-dll-in-gac-using-powershell/

  • Passing multiline element to workflow container ? how do i ?

    Hello Folks,
    I need to pass an internal table to the workflow container...In this container i had already created an Multiline element which the right table type assigned..
    I need to call this Workflow using FM SAP_WAPI_START_WORKFLOW.... Eg:
    CALL FUNCTION 'SAP_WAPI_START_WORKFLOW'
      EXPORTING
       TASK                      = WFNAME
       LANGUAGE                  = SY-LANGU
       DO_COMMIT                 = 'X'
       USER                      = SY-UNAME
       START_ASYNCHRONOUS        = 'X'
      DESIRED_START_DATE        =
      DESIRED_START_TIME        =
      DESIRED_START_ZONLO       = SY-ZONLO
      IFS_XML_CONTAINER         =
      IMPORTING
       RETURN_CODE               = lv_return_code
       WORKITEM_ID               = lv_workitem_id
      NEW_STATUS               =
    TABLES
       INPUT_CONTAINER           = lt_container_wf
       MESSAGE_STRUCT            = lt_message_struct
       MESSAGE_LINES             = lt_msg_lines.
    lt_container_wf values should have an internal table to be passed a multiline element.....
    I am unble to pass it this way and the error i get is that " Single Line element  <XXXX> is being passed several times...
    How do i tell the system the the element which is passed is a mulitple element..
    Regards,
    Anand

    check this code snippet
    include <cntn01>.
    DATA:
          lv_retcode   TYPE  sysubrc,
          lt_cont   TYPE TABLE OF swcont,
          ls_cont   TYPE          swcont,
          lt_kna1   TYPE TABLE OF kna1,
          ls_kna1   TYPE kna1.
    SELECT * FROM kna1 INTO TABLE lt_kna1 UP TO 10 ROWS.
    swc_create_container lt_cont.
    swc_set_table lt_cont 'CUSTOMER' lt_kna1.
    CALL FUNCTION 'EWW_WORKFLOW_START'
      EXPORTING
        x_task                = 'WSXXXXXXXX'
    TABLES
       X_CONTAINER           = lt_cont
    EXCEPTIONS
       INVALID_TASK          = 1
       NO_ACTIVE_PLVAR       = 2
       START_FAILED          = 3
       GENERAL_ERROR         = 4
       OTHERS                = 5
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.

Maybe you are looking for

  • Help! Voice memos will not sync!

    I have checked all the right boxes for my voice memos to sync, but still 1 out of 3 will sync. Why won't the other 2 sync??

  • Why does it take so long for iPhoto 6 to duplicate a photo?

    I've got 3GB of RAM and it takes 10 seconds for iPhoto to simply duplicate a photo in my library. It is also a relatively lengthy process on my 20" iMac. I select "Duplicate" from the menu or command-D, and then the "importing photo" screen comes up,

  • Quotation marks want to create umlauts by default.

    Hi there, since Lion somehow, when I press the quotation marks key the quotation marks are the same as when I press alt+u . This is quite confusing when programming. Because it always waits for the next character and if that happens to be a vocal I g

  • Restore of PRD to QAS using homogeneous system copy

    Hi All, My current production system is SAP 4.7 Enterprise Ext 110 with 6.40 kernel on Oracle 10.2.0.2. Operating sytem is RHEL 4.0 . I am building my QAS system using these installation guides "SAP Web Applcation Server ABAP 6.40  SR 1 on Linux: Ora

  • Database adapter returns result different to SQL

    Hi, I created Database adapter for master-detail select: SELECT DISTINCT t1.INSTANCE_ID, t1.SERVICE_ID, t0.CONFIGURATION_KEY, t0.CONFIGURATION_VALUE, t0.INSTANCE_ID FROM SRVINSTANCECONF t0, SERVICE_INSTANCE t1 WHERE (((t0.CONFIGURATION_KEY = #key) AN