Hi Helge,
If its compounded then its mandatory to have that object. when its compounded that object automatically part of your attributes.
if standard attribute data source then its need to be part. if its customizing one its not mandatory. in that case source and target need to be the same length and type.
can you please name the data source.
Thanks