Skip to main content
lionelc0001
July 6, 2022
Solved

Check success of 'Create Folder' Smart Service

  • July 6, 2022
  • 7 replies
  • 0 views

Hi everyone,

is there a possibility to check the sucess of the execution of the 'Create Folder' Smart Service? In my case I have two input parameters:

  • Parent Folder [Folder]
  • New Folder Name [Text]

And one output:

  • The created folder [Folder] : AC!NewFolderAC!NewFolder [Folder] > is stored as > myVariable [Folder]

95% of the time it goes just fine but sometimes it fails to create the folder, myVariable is empty, and the Smart Service just go on as if everything is fine.

In the expression a!createFolder() we have two extra parameters (onSuccess, onError) but they are not available in the smart service.

Thanks

Lionel

Best answer by stefanhelzle0001

In case that node fails to create a folder and just continues, I suggest to open a support case with Appian. If it fails, it should just stop.

7 replies

mikes0011
Brainy
July 6, 2022

Add a gateway after the node checking for the value of the PV you save the created folder Id into, and if it's null (or zero), divert to an alternate flow.

The Expression Guru
lionelc0001
July 7, 2022

Thanks for your feedback. Indeed that's what I do now but I am not satisfied with this situation, if it's an error it should be handled as an error.

stefanhelzle0001
Brainy
July 6, 2022

In case that node fails to create a folder and just continues, I suggest to open a support case with Appian. If it fails, it should just stop.

mikes0011
Brainy
July 6, 2022

I agree, but sometimes things don't stop when you'd figure they would.  Like if you have a "move document" node and accidentally pass in a folder ID of null, the target document gets moved to "no folder", is still accessible in the system but breaks certain things.

The Expression Guru