0

I have a workflow that generates folders in a separate document library based on information from a task list. I've enabled it to be started manually and when a task is created. However, on certain tasks the workflow pops up with an error:

enter image description here

I've tried editing it several different ways, to no avail. There is seemingly no sense in which ones it doesn't create, there is no evident similarity that could be causing the error between the items.

Does anyone know a particular reason why this might be happening?

In terms of the workflow, this is what I have:

enter image description here

In terms of the initial list, it is a task list where things like a task ID, title, due date, assigned to, etc are located. The task library is a document library with folders. The Variable:create4 is where Path and Name are [%Current Item:ID%] - [%Current Item:Task Name], and content type ID is folder. The idea behind it is that whenever a new task is created, a folder is automatically generated in the task library where all related files can be put relating to that task.

3
  • Did you check the ULS logs ? try to log the url of the folder it is trying to create and check. Feb 18, 2020 at 6:38
  • Is it only you that is initiating the workflow? No other user? (I was thinking about using an Impersonation Step, but if it's only you that's using the workflow then I'd be barking up the wrong tree).
    – Tally
    Feb 18, 2020 at 12:14
  • Karthik, how would I access the ULS logs? Is that the same as the workflow history? And Tally, it is only me using the workflow thus far, and I even added an impersonation step to try and do a work around, but no difference.
    – Sarabi9733
    Feb 18, 2020 at 22:31

2 Answers 2

0

You can download a uls viewer to check the ULS log for more information. Here is a tutorial:https://www.petri.com/ulsviewer-sharepoint-2013-logs

The error message shows the issue may due to the action of creating list item failed. Make sure the list exist and user can create list item there. If possible, would you like to share us with your workflow and some information about corresponding lists and libraries?

6
  • Will this ULS viewer work in SharePoint 2016? I'll see if I can download the software anyways. In terms of the workflow, this is what I have:
    – Sarabi9733
    Feb 19, 2020 at 6:39
  • @Sarabi9733 Yes the Viewer works with sp2016
    – Jerry_MSFT
    Feb 19, 2020 at 7:04
  • I have edited my original question to include some further information about the workflow and corresponding lists. I'm going to check the ULS logs today.
    – Sarabi9733
    Feb 19, 2020 at 21:45
  • turns out I can't get ULS viewer on my computer (not allowed to download software off the internet). Is there any other way to access these logs?
    – Sarabi9733
    Feb 20, 2020 at 21:32
  • @Sarabi9733, If you are not allowed to download software, you can directly check the log file(a bit challenging as you need to check in txt file), The path is C:\program file\Common Files\Microsoft Shared\Web Server Extensions\16\LOGS. And the workflow seems to be fine. We may need to get more information through log. Or it may be better to contact your IT team
    – Jerry_MSFT
    Feb 21, 2020 at 8:45
0

I ended up fixing the issue by creating a seperate Task ID and Task Name Column in the Task Library. This allowed for a less complicated string going into the path and name. It works quite well now, I've even fixed the ordering issue by adding a secondary ID column that converts the numbers to have "00" in front to allow for proper numerical ordering. Thank you for all your help.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.