Hi there,
I need to do some code that will maintain some records between Companies in NAV. This should be quite straight forward, I thought, but I'm seeing some strange behavior in NAV...
When I execute the shown code in Company 2 for the first time everything Works just fine. The record from Company 1 is created in Company 2.
When I execute the code for the second time the record already exist in Company 2 which means that the record should now be modified. As soon as I hit
the modify trigger I get the error "An other user has modified the record...".
![61ja86vczoah.png]()
![oebcif05q713.png]()
I just can't get my head around why this is?! If I assign the fields one by one instead of using transferfields or just copying record var 1 into record var 2 the modify works just fine.
Please educate me someone :-)
/Martin
I need to do some code that will maintain some records between Companies in NAV. This should be quite straight forward, I thought, but I'm seeing some strange behavior in NAV...
When I execute the shown code in Company 2 for the first time everything Works just fine. The record from Company 1 is created in Company 2.
When I execute the code for the second time the record already exist in Company 2 which means that the record should now be modified. As soon as I hit
the modify trigger I get the error "An other user has modified the record...".


I just can't get my head around why this is?! If I assign the fields one by one instead of using transferfields or just copying record var 1 into record var 2 the modify works just fine.
Please educate me someone :-)
/Martin