The isComplete="true" flag is an indicator to say 'ignore what is in the DB and replace it with all that I am providing now', so if that investment was already associated, with this file and attribute you've reinforced it.
You should, when using that flag, exclude any investments that you no longer want to have associated. So to remove them all, you would use the empty example like mine that has no associations at all, but does have that flag.
By example:
If you have an investment with associations to other investments that we'll call A, B, and C.
If you then XOG in with isComplete="true" and associations to investments B and D, these actions will take place.
- Investment associations A, B, and C will be removed from the investment.
- Investment associations B and D will be added to the investment.
Without the isComplete="true" this would happen instead:
- All existing investment associations will be left intact
- It would be seen that B already exists and would be ignored/skipped.
- Investment association D would be added to the investment.
NJ