Updating version of existing file.

There is a dropdown having all the names of files stored in knowledge center. User will select the desired file and click on update button. After clicking on the button, the desired file should be updated. I have saved the selected file in a new process variable of type document in script task and then given the same variable as target output in user input task having the value of the new file upload variable. Its giving an error "Invalid Destination Folder".Please help.

OriginalPostID-237323

  Discussion posts and replies are publicly visible

Parents
  • @amitas As said above by other practitioner, kc or folder couldn't be a target in the case of uploading a new version(in fact a folder location creates a new file rather than new version of the existing file)of an existing document. What you have done now seems to me nearly correct(just make sure that the selected document is stored in a variable and the same variable is the target of the fileUploadField). Added to this, I would suggest digging deep into the issue by checking from security perspective if you are performing the task as a basic user, checking the form/interface configurations and exploring logs as well to see if you can get any clue.
Reply
  • @amitas As said above by other practitioner, kc or folder couldn't be a target in the case of uploading a new version(in fact a folder location creates a new file rather than new version of the existing file)of an existing document. What you have done now seems to me nearly correct(just make sure that the selected document is stored in a variable and the same variable is the target of the fileUploadField). Added to this, I would suggest digging deep into the issue by checking from security perspective if you are performing the task as a basic user, checking the form/interface configurations and exploring logs as well to see if you can get any clue.
Children
No Data