cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X

Promotion request status REJECTED

Sathish_Rosario
11-Garnet

Promotion request status REJECTED

Hi

 

We are facing some issues with promotion status.

 

After the promotion request is approved, Promotion request status changed as REJECTED and vote showing as approved.

 

Sathish_Rosario_1-1657540538536.png

Refer the image for details.

 

Any idea?

 

Thank you

Sathish Rosario

 

 

1 ACCEPTED SOLUTION

Accepted Solutions

Yes, very likely it's the validation code that is sending the workflow process down the Reject path.

this could happen for example if the data has been checked out / changed / checked back in after the Promotion Request was created, resulting in the Promotion Request not acting on the latest version (which could happen if the Lock transition is not used in the lifecycle or if the permissions at the Lock state do not prevent check out.

View solution in original post

11 REPLIES 11

You'd want to check the Workflow Process Manager. I believe the out-of-the-box promotion workflow has some validation check at the end, and if the promoted items fail the validation, it will set the promotion to Rejected.

Yes, very likely it's the validation code that is sending the workflow process down the Reject path.

this could happen for example if the data has been checked out / changed / checked back in after the Promotion Request was created, resulting in the Promotion Request not acting on the latest version (which could happen if the Lock transition is not used in the lifecycle or if the permissions at the Lock state do not prevent check out.

Thank you for your reply.

 

The case as below:

 

Object last check in (iteration increased)     : 2022-07-01 08:47 IST

Promotion request created                             : 2022-07-04 10:33 IST

Promotion request completed                       : 2022-07-07 17:39 IST

Object latest check in (iteration increased): 2022-07-08 10:19 IST

 

My suspect is, the object may be checked out between 2022-07-04 10:33 IST and 2022-07-07 17:39 IST.

 

After modifications, object may be checked in on 2022-07-08 10:19 IST.

 

Now, how do I know, when the object was last checked out?

 

Thank you

Sathish Rosario

No easy way to find the timestamp when it was checked out.

 

Instead, please look at the executed workflow process (from the process tab). 

Click on each gray icon (gray indicates they were executed). Attempt to see where it went down a Reject path.  At the bottom of the page it may have additional detail when the icon (e.g. a Conditional) is selected.

Maybe add a screen shot.

Please find below screen shots:

Process tab:

Sathish_Rosario_0-1657609297725.png

 

Sathish_Rosario_1-1657609353534.png 

Note: Vote column in process status table of process tab: It shows as approved only.

 

Details tab:

 

Sathish_Rosario_2-1657609400113.png

Sathish_Rosario_4-1657609443272.png

 

Modified object history tab:

Sathish_Rosario_5-1657609495378.png

 

Modified object latest version history tab:

Sathish_Rosario_6-1657609527072.png

 

Hope you may get any idea...

 

Thank you.

 

We found the solution!!!!

 

Trial 1:

Now I have created one object and attached to a promotion request (123456.sldprt - A1.2)

 

After creating promotion request, checked out, modified and checked in the object (123456.sldprt - A1.3)

 

Complete the promotion request as approved (123456.sldprt - A1.2)

 

Status of the promotion request and vote are displaying as "approved"

 

Trial 2:

Now I have created one object and attached to a promotion request (123456.sldprt - A1.4)

 

After creating promotion request, checked out, modified and checked in the object (123456.sldprt - A1.5)

 

Complete the promotion request as reject (123456.sldprt - A1.4)

 

Status of the promotion request and vote are displaying as "rejected"

 

Trial 3:

Now I have created one object and attached to a promotion request (123456.sldprt - A1.6)

 

After creating promotion request, checked out, modified the object BUT DID NOT CHECKED IN yet.

 

Complete the promotion request as approved (123456.sldprt - A1.6)

 

Status of the promotion request changed as "rejected: and vote displaying as "approved"

 

Still the object is in checked out state.

 

Now checked in the object (123456.sldprt - A1.7)

 

The promotion request vote shows: approve and promotion request status shows: rejected.

 

Thanks for the support.

Sathish Rosario

Great testing and documentation. The validation code is doing its job.

Would be good to actually turn this into a training exercise for all new users.

You can improve your promotion request workflow to prevent this error. 

After the user submits the promotion request, you can use a robot in the workflow to lock the promotion objects - this prevents them from being checked out. In our workflows, we have a "rework" routing where the approver can send it back to the submitter to make corrections/updates. When this routing is selected, there is a robot in the workflow that unlocks the promotion objects - this allows them to be checked out again. When the user completes the rework task, there is another robot to update the promotion to use the latest objects. Now if it is approved, there is no issue - the latest, updated version will get the approval. 

 

If you don't have the need to have Rework in the workflow, it is even easier. Just lock the items at the beginning of the workflow to prevent any checkouts. There is also validation you can add to make sure nothing is checked out when the workflow is started. This is good to also run anytime a user might have done a checkout. 

In order for the workflow process to lock the objects:

- the lifecycle has to have a lock state

- the lifecycle has to have the Lock checkmark to that state for the Promotion transition

- admin needs to configure only Read / Download permissions for users at the lock state

Thank you

Thank you.....

Top Tags