Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

Alteryx Designer Desktop Knowledge Base

Definitive answers from Designer Desktop experts.

AB Controls: Treatments not included in the data

DaveF
Alteryx Alumni (Retired)
Created

AB Controls: Treatments not included in the data

When running the AB Controls tool, you may come across the following series of errors:

Error: AB Controls (54): AB Controls: Error in get.knnx(as.matrix(the.data[, names(the.data)[sapply(the.data, : 
Error: AB Controls (54): AB Controls: Execution halted
Error: AB Controls (54): Tool #141: Error in if (uniq.cntrls) { : missing value where TRUE/FALSE needed
Error: AB Controls (54): Tool #229: Error in if (substr(treat.units[1], 1, 1) == "X") gsub("X", "", treat.units) :
DaveF_0-1573683920576.png

Environment

  • Product - Alteryx
    • AB Controls tool

Cause

Typically these errors occur when the records input into the T (Treatment) input are not contained in the D (Data) input.

Solution

  1. Ensure that all records input into the Treatment anchor are contained in the Data input.
    • Records must match on the unit identifier specified in the AB Controls tool configuration

Additional Resources

Comments
Abuhakmehaziz
5 - Atom

I had a similar problem that was solved by removing the null values from the numerical measure used to match control units to treatment units.