XML PORT csv file importation not working on a 2008R2 server

SyMalickSyMalick Member Posts: 4
I upgraded nav from 5.0 to 2013R2. am able to run my tables, reports fine but when I import a csv file using the xmlport, it is not inserting the data in the employee table, no data is inserted on Sql server 2008R2 edition. If I repeat the process in sql server 2012 it works and it inserts data successfully.
below are the codes am using on Employee-Import::OnBeforeInsertRecord trigger.

empRec.SETRANGE(empRec.PaymentMode,empRec.PaymentMode::Wages);
empRec.MODIFYALL(empRec.Status,empRec.Status::Inactive);

empRec.Status := empRec.Status::Active;
empRec.PaymentMode := empRec.PaymentMode::Wages;
MESSAGE('Import Successful');
Sign In or Register to comment.