I am unable to upsert data extension.
I have followed the adding data to data extension object example and request returns error of Violation of PRIMARY KEY constraint
... Cannot insert duplicate key in object
.
Data extension has account_id set to primary key.
Following is sample of CREATE request.
<soap:Body>
<CreateRequest
xmlns="http://exacttarget.com/wsdl/partnerAPI">
<Options>
<SaveOptions/>
</Options>
<Objects xsi:type="DataExtensionObject">
<PartnerKey xsi:nil="true"/>
<ObjectID xsi:nil="true"></ObjectID>
<CustomerKey>Definition_Key</CustomerKey>
<Properties>
<Property>
<Name>name</Name>
<Value>Sam Sample</Value>
</Property>
<Property>
<Name>email</Name>
<Value>sample@example.com</Value>
</Property>
<Property>
<Name>account_id</Name>
<Value>12345678</Value>
</Property>
<Property>
<Name>PrimaryKey</Name>
<Value>account_id</Value>
</Property>
</Properties>
</Objects>
</CreateRequest>
</soap:Body>