oops. just notices this is text not numeric
the default will remain an empty string.
if you want to tease it out here is what I would do
add an ELSE to your statement ...
if {usp_GenerateZLabelReport;1.Attribute_Name}="Lot ID" then stringVar x := {usp_GenerateZLabelReport;1.Attribute_Value} Else "? Why is this text here ?"
drop the formula field on your detail row
drop {usp_GenerateZLabelReport;1.Attribute_Name} on the detail row
drop Attribute_Value on the detail row
look for any row with your special text ("? Why is this text here ?") and see what is going on with the two values that make up your if-then.
Note you can filter the data to formula = ("? Why is this text here ?") if you have too many rows to sift through it.