if (dimValue != "")
{ // _createIfNotFound is "true". A dimensionAttributeValue record will be created if not found.
dimensionAttributeValue
dimensionAttributeValue::findByDimensionAttributeAndValue(dimensionAttribute,dimValue,false,_createIfNotFound);