XPM 1 format does not support named color objects.
You cannot write XPM 1 format if your Pixmap image contains references to color objects.
Either write in XPM 3 format, or change your Pixmap Editor color palette so that it contains non-color-object values.
See also: