Hello guys,

I'm customizing a SOAP Driver and I have a problem with associations after merge occurs.

That is the process I'm following:

1) I create an ADD event for every user returned by the SOAP APP.
2) For every ADD, the driver perfom a matching in the Matching policies.
3) If a match is found, the driver query the matched object attributes to perform a merge with the new ones.

At this point, I can see that the driver added an empty association to the object (previously the object was not associated):

Code:
[02/16/17 18:59:24.508]:Driver SOAP CRM PT:A match found, using \IDVDS\hipra\partners\adespo_lorca.
[02/16/17 18:59:24.509]:Driver SOAP CRM PT:Merging eDirectory and application values.
[02/16/17 18:59:24.509]:Driver SOAP CRM PT:Reading relevant attributes from \IDVDS\hipra\partners\adespo_lorca.
[02/16/17 18:59:24.509]:Driver SOAP CRM PT:
<nds dtdversion="4.0" ndsversion="8.x">
  <source>
    <product edition="Standard" version="4.5.3.0">DirXML</product>
    <contact>NetIQ Corporation</contact>
  </source>
  <input>
    <query class-name="User" dest-dn="\IDVDS\hipra\partners\adespo_lorca" dest-entry-id="45001" scope="entry">
      <read-attr attr-name="accesowebcatalog"/>
      <read-attr attr-name="accesowebediagnos"/>
      <read-attr attr-name="accesowebhipralink"/>
      <read-attr attr-name="accesowebhiprasoft"/>
      <read-attr attr-name="CN"/>
      <read-attr attr-name="co"/>
      <read-attr attr-name="Es Baixa"/>
      <read-attr attr-name="HipraCustomerID"/>
      <read-attr attr-name="HipraCustomerZone"/>
      <read-attr attr-name="Internet Email Address"/>
      <read-attr attr-name="Physical Delivery Office Name"/>
      <read-attr attr-name="Postal Code"/>
      <read-attr attr-name="S"/>
      <read-attr attr-name="SA"/>
      <read-attr attr-name="Surname"/>
      <read-attr attr-name="Telephone Number"/>
      <read-attr attr-name="UniqueID"/>
      <read-attr attr-name="Object Class"/>
    </query>
  </input>
</nds>
[02/16/17 18:59:24.511]:Driver SOAP CRM PT:Pumping XDS to eDirectory.
[02/16/17 18:59:24.511]:Driver SOAP CRM PT:Performing operation query for \IDVDS\hipra\partners\adespo_lorca.
[02/16/17 18:59:24.511]:Driver SOAP CRM PT:--JCLNT-- \IDVDS\system\driverset1\DrvWebserviceCRM - Publisher : Duplicating : context = 1263337552, tempContext = 126333752
2
[02/16/17 18:59:24.512]:Driver SOAP CRM PT:--JCLNT-- \IDVDS\system\driverset1\DrvWebserviceCRM - Publisher : Calling free on tempContext = 1263337522
[02/16/17 18:59:24.513]:Driver SOAP CRM PT:Read result:
[02/16/17 18:59:24.513]:Driver SOAP CRM PT:
<nds dtdversion="4.0" ndsversion="8.x">
  <source>
    <product edition="Standard" version="4.5.3.0">DirXML</product>
    <contact>NetIQ Corporation</contact>
  </source>
  <output>
    <instance class-name="User" event-id="0" qualified-src-dn="O=hipra\OU=partners\CN=adespo_lorca" src-dn="\IDVDS\hipra\partners\adespo_lorca" src-entry-id="45001">
      <association state="associated"></association>
      <attr attr-name="accesowebcatalog">
        <value timestamp="1487260951#17" type="string">No</value>
      </attr>
.
.
.
.
I need to remove that empty association, but after several tries I failed.

I tried a remove destination attribute value with DirXML-Associations, but after filling the structured parameter values the operation gives a syntax error because of the empty value of association:

Code:
<modify class-name="User" dest-dn="\IDVDS\hipra\partners\bla@bla.com" dest-entry-id="46866" from-merge="true">
      <operation-data/>
      <modify-attr attr-name="DirXML-Associations">
        <remove-value>
          <value type="structured">
            <component name="nameSpace">1</component>
            <component name="volume">system\driverset\DrvWebserviceCRM</component>
            <component name="path"/>
          </value>
        </remove-value>
      </modify-attr>
    </modify>
Can anybody help me?

Thanks in advance,
Rodrigo Cano