Options

Ambiguous error when inserting records - 2013 R2 - bug?

piedmontpiedmont Member Posts: 6
edited 2013-10-24 in NAV Three Tier
Hi,

Using a GET statement in the OnInsert table trigger is giving me an unexpected result in 2013 R2. Code example - taken from some custom code on the Vendor table:
OnInsert()
UserSetup.GET(USERID);

In an old (classic) database i'm upgrading, this gives the expected and quite friendly error:
User Setup User ID 'PIEDMONT' does not exist

Leaving aside whether it's a good way to assert existence of a user setup record... (I quite like this pattern personally..) In 2013 R2 the same code gives:
The record that you tried to open is not available. The page will close or show the next record.

Bizarrely the debugger still displays the old error.

This seems to me like a platform bug. Anyone disagree with this (e.g. it's by design)?

Thanks
Piedmont
Sign In or Register to comment.