Or better, create a pie and only import the full shares, and leave the odd bits outside, then sell them from your portfolio. Then extract the full shares back from the pie and then delete the pie as no longer needed. That might work even better
This page from the forum was the one that helped me - PIES Import / Export fractionals