PurchLine Copy Error ): !!!!

Hi All,
When I tried to copy an existing purchase order line after creating purchase header through “copy all” from the action pane in AP Module, I am getting this error.

Can any help me out in this.

Hi

it looks like an attempt of creatinng non uniqe record in PurchLine table.

check if any line exists in destination purchTable,

check indexes on purch line. Maybe you have some trush in this table or any special uniqe indexes

Hubert

Hi Hubert,

Thank you for the reply and I found the cause of the error. There’s a code problem in copyLine() in the PurchCopying class. I fixed it now it’s working.