Update Case Action - stuck in Draft

Hurleybird
Tera Expert

I've been looking into an issue/bug, which lead me to the Auto Close Resolved Cases Flow. I've stumbled into a bit of a catch-22. In order to make a change to the Auto Close Resolved Cases flow, I need to re-publish the amended flow. When I do so, it complains that the Update Case Action is not published:

"Error. Could not publish flow as Action Instance is not published"

When I go to the Update Case Action instance, it's a read-only action in a draft state. Attempting to publish it results in the following error:

"Error. Bad Request. Required fields not supplied"

I have checked this behaviour in a very clean (not quite OOB) PDI and I find similar behaviour: I'm still unable to publish the Update Case action, however, I am able to publish a change to the Auto Close Resolved Cases flow.

All of the work I've done so far has been in our sub-prod instance. I see identical configuration and status of the flow and actions in Prod: Update Case Action is in Draft in Prod, and the Auto Close Resolved Cases flow is Published. I'm reluctant to make the change in Prod, in case I stumble into the same behaviour and end up with an unpublished Flow.

I'm confused why a published flow can include an action that is in Draft and cannot be published and I would appreciate some help on getting past my issue in sub-prod where I'm unable to re-publish the Auto Close Resovled Cases flow.

Many thanks!

8 REPLIES 8

Ed25
Kilo Explorer

@Hurleybird have you been able to get this resolved?  I am also encountering the same issue.  I have opened a Case with SN but wanted to check to see if you were able to solve this.

Thanks!

Ed

Hi Ed,

 

I was able to track down my bug and fix it - including stopping future occurrences - but I was not able to make any progress on the behaviour I described above I'm afraid!

YaronN
ServiceNow Employee
ServiceNow Employee

If anyone else encounters "Bad Request. Required fields not supplied" when trying to publish an action in Flow Designer, you might have stumbled on the issue I have found:

Opened Flow Designer and created/saved/published an action while in an Application Scope.
(Action is created as accessible from all scopes)
Later, accessed it, updated and tried to re-publish from the global scope - got : "Bad Request. Required fields not supplied" and action not published.

Resolution: Go back to the scope where action was originally created/published - action will be published correctly.

Thank YaronN this was my issue.