English

Problem: Feature weight has no effect on labels

Description

When labeling, some labels may be placed on top of line features regardless of the feature weight specified.

Cause

Features that don’t have a value are not included in the conflict detection process.

Solution or Workaround

Make sure the label field for the line layer has values for every feature. You should replace empty, blank or null values with something valid.

If you are not labeling the line layer, or there is no suitable attribute field available, use one of the following options:

  • Make a new field and calculate a dummy value. Use this field as the label field, even if you're not labeling the layer.
  • Create a label expression that will automatically assign some text for all features. Click Expression on the Labels tab of the Layer Properties dialog box; then, type in a dummy expression such as X. Do not turn on labels.
  • If you decide the blank or null values should not be drawn, you can set a definition query for the layer that will omit these feature from being drawn or labeled. For example, this query will filter null or empty values:

    [LabelFieldName] <> "" Or Not[LabelFieldName] Is Null