How to quickly find all the workflows with Keep Interim result flag enabled? | Adobe Campaign Classic

adobe-campaign-keep-interim.flag

What are the things you check when there is a database space issue on the Adobe Campaign database?

Think think… 🙂

I know that you have come up with a list of things that you would check. Today, I will only talk about one of the important things. It is the “Keep Interim Result” flag.

You will find this flag in the workflow properties.

adobe-campaign-monitor-processes-2
Keep interim flag on workflow

This flag should only be enabled when you are developing the workflow and during troubleshooting. Checking this flag will print all the interim logs of a workflow.

In a production instance, enabling this option will result in two problems:

  1. Consumption of database space
  2. Slowness in workflow processing

Now, that you know the consequences of this flag, let us look at how we can quickly find all such culprit workflow and un-check this flag in them.

Usecase:

This technique will be useful if you have more than 200 workflows on your campaign instance and you need to find all the workflows that have this flag enabled.

Implementation:

The “Keep Interim Population” is not set at the database level, however, is part of the workflow source XML. Where is this XML stored? I will give you some space to think. Think think… 🙂
.

.

.

…this workflow XML is stored in the column called XML memo (data). So, we will query all the workflow XML data and scan for the attribute that sets the keep interim flag ( Smart right 🙂 )

1. From the workflow view, go to Advanced filter.
2. In the expression, select the element XML Memo (data)
3. Set the filter as “contains
4. And add this to the value: keepResult=”true”
5. You would now see the workflow(s) with the keep result on if any.

adobe-campaign-monitor-processes-1
Filter and the generated SQL

Once you have this list of workflows, you can take appropriate actions on it. You can also use an update activity to change the flag for a group of workflows.

Bonus Knowledge Bean:

If you have access to the Adobe Campaign database. Fire the below query to find the list of workflows.

select sinternalname from  xtkworkflow where mdata like '%keepResult="true%';

I am just kidding, the above SQL was already present in the last screenshot. So, this is not a Bonus Knowledge Bean.I was testing your attention to detail 😛

Hope this helps.

error: Content is protected !!