Trying to raise a call from a Case E10

For anyone that gets the same problem I have worked this out 

Service Call writes to ERP.CurrExChain table and Key1 in it is the Call number. It seems that since switching to E10 it somehow got it's record of the last call number muddled and was trying to write to the table with a call number that already existed in the table. I went to the Company Setup and put a new start number for Service calls that was higher than the last one raised and all is now well

We are getting a problem when trying to raise a service call from within a Case. It keeps coming up with the following error


Inner Exception:  Violation of PRIMARY KEY constraint 'PK_CurrExChain'. Cannot insert duplicate key in object 'Erp.CurrExChain'.


I don't understand why it is trying to write to CurrExChain in the first place