Let’s talk Alteryx Copilot. Join the live AMA event to connect with the Alteryx team, ask questions, and hear how others are exploring what Copilot can do. Have Copilot questions? Ask here!
Start Free Trial

Weekly Challenges

Solve the challenge, share your solution and summit the ranks of our Community!

Also available in | Français | Português | Español | 日本語
IDEAS WANTED

Want to get involved? We're always looking for ideas and content for Weekly Challenges.

SUBMIT YOUR IDEA

Challenge #476: Extract Operational Metrics from Your Workflow Logs

abacon
12 - Quasar

Here is my take. I am not great with Regex so I went a different route.

Spoiler
image.png
ahsanaali
11 - Bolide
Spoiler
467.png

 Batch Macro 

467 Batch Macro.png

wbasuki
8 - Asteroid

My Solution

Spoiler
Screenshot 2025-05-15 110938.png
Yoshiro_Fujimori
15 - Aurora
15 - Aurora

My solution.

Matched with the expected data except for the file name.

 

Spoiler
Workflow
I assumed that Error, Warning, FieldConversionError appears separately one for each row.
I admit that this solution is vulnerable to the change of log format,
but we cannot foresee how the format will change in the future version anyway.
workflow.png
Formula Tools
[WorkflowName] = GetWord([Field_1], 2)
[StartTime] =
  DateTimeParse(
    REGEX_Replace([Field_1],".*([a-zA-Z]{3}\s+\d{1,2}\s\d{2}:\d{2}:\d{2}\s\d{4})", "$1"),
    "%b %d %H:%M:%S %Y")

[Duration] = GetWord([Field_1], 2)
[Warning] = Substring([Field_1],25,Length([Field_1]))
[Error] = Substring([Field_1],23,Length([Field_1]))
[ConversionError] = Substring([Field_1],38,Length([Field_1]))
[Seconds] =
  ToNumber(Left([Duration], 2)) * 60 * 60 +
  ToNumber(Substring([Duration],3,2)) * 60 +
  ToNumber(Substring([Duration],6,2)) +
  ToNumber(Right([Duration], 3)) / 1000
wbasuki
8 - Asteroid

My Simplified Function

Spoiler
Screenshot 2025-05-15 124715.png
Will_Condon
8 - Asteroid

Great opportunity to investigate various tools, work on RegEx code, data modeling, and some advanced tools preparing for renewing Core Certification.  A Challenge where no two solutions will be alike, certainly none like mine. The FileName and WorkFlow values do not match the Task 1 solution so something is up with that.   

Spoiler
Challenge_476_Spoiler.jpg

Fifteen tools used in this solution.

Spoiler
Challenge_476_Tools.jpg

 

Will_Condon
8 - Asteroid

The Task 2 result is very similar to my approach.

Will_Condon
8 - Asteroid

Nice. The use of the Transpose tool early made this an elegant solution.  I went a different route that took much more time.

Bobbyt23
13 - Pulsar

That was a lot tricker than I anticipated. Lots of fiddly bits in there. Great challenge.

 

Spoiler
image.png
wrones104
5 - Atom
Spoiler
Screenshot 2025-05-16 155023.png

 I had fun with this one, I'm sure there are less brute-force ways to do it but I was able to keep it short and sweet!