- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2023 12:06 PM
Hello,
I am trying to use flow designer to update the Life Cycle Stage and Life Cycle Stage Status when a server is being replaced. I'm am using Update record and the variable is old_ci that is mapped to the configuration items.
Action - Update Record
Get Catalog Variable - old_ci
server [cmdb_ci_server]
Life Cycle Stage - End of Life
Life Cycle Stage Status - Retired.
Its not working, nothing is updating.
Any help would be greatly appricated.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2023 03:13 PM
Hi Darlene,
I just tried this out in my PDI and it looks like it's failing to update due to the Business Rule "Validate lifecycle combination" on the cmdb_ci table. It runs when either the Life Cycle Stage or Life Cycle Stage Status is updated. This calls the Script Include "LifeCycleUtil" which handles making sure it's a "valid" combination of entries for the field.
If you haven't already, I'd suggest enabling Flow Reporting through Flow Designer Properties to at least "Flows Actions and Steps" as that will aid in displaying where errors might occur.
Erik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2023 07:49 AM
Thank you so much. Your right that inst a value in there, Ive been trying to figure out why. Ill check the business rule.
Thank you again for your help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2023 07:52 AM
I got the runtime value fixed. Now I am getting a different error "Error occured while updateing record:null.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2023 08:20 AM
How are you pulling in the information for the update? I set it up directly pulling the value from the "old_ci" variable entry which got me to the Business Rule.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2023 08:23 AM
Thats how Im doing it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2023 08:27 AM
That's how I set it as well. Did you update your overall properties to Developer Trace? It's the only other thing I can think of that might be a difference in how it's displaying the error. That being said, the Business Rule and its associated Script Include, overall, is what will keep the CI from being updated by the Flow.