XOG in new rows for the rate matrix replaces the existing records

Document ID : KB000055300
Last Modified Date : 14/02/2018
Show Technical Document Details
I am trying to perform a XOG write action to insert additional matrix rows for an existing rate matrix and it is removing the old rate records and just adding the new records. Why?

The action is working as expected.  To update a rate matrix via XOG (XML Open Gateway), all the rows need to be in the XOG input file. The update causes a full replace of all rows within the matrix to be updated. This is because there are no unique ids for the rows within the matrix. 

Best Practice Recommendation:
Perform a XOG read action to create an output file of all the existing rows in the specified rate matrix.  Update the output file with added rows and then perform the XOG write action to update the matrix.