Worfklow started if i start manually but autoworkflow showing Rejected
Worfklow started if i start manually but autoworkflow showing Rejected if any item is created in document library... am not logged in systemaccount user ..am using a test user account.. any solutions for this will be really helpful for me
April 9th, 2013 6:34am

Hi,

maybe you can provide more detail like the code snippets? I personally cannot think of a reason on to why this things is happening.

Free Windows Admin Tool Kit Click here and download it now
April 9th, 2013 11:16am

Hi Ranjoe

thanks for ur response..

let me explain wats going on here

 I created a sharepoint designer workflow and associated it with a list ... the thing is if any item is created in a list then the workflow starts.. issue am facing is if try to start workflow manually it works fine .. but if i start the worflow automatic it shows rejected status soon after item is created in document library dont know y this is happening..

Am not logged in as System account user.. am a normal test user

April 9th, 2013 11:38am

Hi,

Is there any eventhandler attached in document library?

Free Windows Admin Tool Kit Click here and download it now
April 9th, 2013 11:47am

hi manoj 

   there is no event handler attached to this document library

April 9th, 2013 11:58am

Hello,

What is your workflow doing? Could it be an error with your item's metadatas?

Free Windows Admin Tool Kit Click here and download it now
April 9th, 2013 12:12pm

Hi christopher,

           am just creating a workflow for appraisal

Details of workflow

       

Created a SharePoint Document Library with the following functionalities for  Appraisal:

 

1. Employee Name is a mandatory column 

2. text Field For Year mandatory column 

3. Appraise and Reviewer as people fields and mandatory(associated this column in sharepoint designer associate columns.)

3. Status with following choices:

Draft     

Pending Employee

Pending Appraisal

Pending Review

Completed

4. Created a Workflow to notify Employee when submitted, then Appraiser and then to Reviewer only if reviewer is different from Appraiser.

after publishing this designer workflow ... and if i start this workflow manually its working fine .. but auto workflow showing rejected as status if item created

April 9th, 2013 12:31pm

If you are working with document library it could be why.

I'm not sure with workflow but when you work with event on document library items, when you add new item , it create the item then show you the pop-up where you can field metadata and once you save your form, it's considered as an update.

So maybe your workflow is starting before your metadata are filled.

Can you try to set the workflow to start on update (not on creation) and check if it works?

if yes, maybe you can work with that (and maybe add a "cancel if modified" option)

Free Windows Admin Tool Kit Click here and download it now
April 9th, 2013 12:39pm

Thanks for the immediate response Christopher,

U said try to start workflow on update right... my question i dont see any option like this in sharepoint designer start options...  only three option are there to enable the check box

1.Allow workflow to start manually

2.Allow workflow to start if item created

3.Allow workflow to start if item modified

April 9th, 2013 12:47pm

select the "modified" option ;)
Free Windows Admin Tool Kit Click here and download it now
April 9th, 2013 12:49pm

mmm yes its working now ...... now the issue is after item is submitted to the next level user ... (Take this case if user fills his appraiser name and reviewer name while after uploading a document).. henceforth on submission the next level user is still able to change the users mentioned by initiator .. am giving contribute access to the next level users to approve the document..

my question next level users should only approve/reject the document rather than editing the users... to achieve this wat access to be given the next level user.. thanks in advance chrishtopher

 
April 9th, 2013 12:58pm

I think the approver only need to have read access to the document and contribute on his task.

Free Windows Admin Tool Kit Click here and download it now
April 9th, 2013 1:09pm

thanks chris  i had given read access to nect level user how to give contribute access for only task assigned to the user
April 9th, 2013 1:12pm

Isn't it OOB?

I think that if the task is not assigned to you or to onoe of your groups, you can't approve it (except for administrators)

Free Windows Admin Tool Kit Click here and download it now
April 9th, 2013 1:14pm

yes chritopher am doing it in oob only... if i cant approve then how the workflow will run... is there any other possible ways to achieve this task
April 9th, 2013 1:17pm

Let's resume what you have
  1. You have a document library with a custom approval workflow, only contributors can create/edit document. Approvers can only read item, the workflow starts when you update an item and create a task in the thask list associated to a user/group
  2. Approvers needs to have contribute access to task list and if they tried they can't approve/reject task not assigned to them (I think it's OOB)
  3. When approvers approve/reject a task, the workflow goes to the next step, either create a new task or change the workflow status to approved/rejected.(don't need to add permissions to approvers on the document library, it's the workflow that is doing the stuff

Am I right?

Free Windows Admin Tool Kit Click here and download it now
April 9th, 2013 1:27pm

hi christopher sorry am bit late in responding ... yeah wat u have said above is correct the thing as u have mentioned in point 3 ... u said  "dont need to add permission to approvers "(if permissions not given to approvers then how they can approve/reject the document (Task which is assigned to them)...
April 10th, 2013 5:13am

Hello Thiyagesh,

Is it an out of box workflow that you are using or you created one in designer? There is a setting for workflow to be triggered when item is created. I would also get some sharepoint logs by setting workflows to verbose under the "SharePoint foundation " category, reproduce the issue and look through the logs .

That will give us some more pointers.

Thanks!

Regards,

Shruti

Free Windows Admin Tool Kit Click here and download it now
April 16th, 2013 9:44pm

Hi shruti,

                Thanks for ur response , i just created workflow in Sharepoint designer only, even i enabled check box showing Item created in workflow settings.. i checked the logs wat u have mentioned above .. but my issues still persist

 

April 18th, 2013 6:36am

Hi Shruti,

I also having the same problem coming for the document library workflow set automatically  the item created . Any solution have find for the issues.

please reply.

Thanks

Karthi

Free Windows Admin Tool Kit Click here and download it now
April 25th, 2015 9:04am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics