"(FunctionClauseError) no function clause matching" error

So your @truck_load is not a %TruckLoad(...} then. the error message after the ** (FunctionClausError)... line should give you more clue