Quantcast
Channel: Microsoft Dynamics GP
Viewing all articles
Browse latest Browse all 59474

Forum Post: SQL Error Window More Info Button

$
0
0

We have implemented a simple trigger that starts with:

CREATE TRIGGER CheckForDuplicate

ON RM00102

FOR INSERT, UPDATE AS

On certain condition send an email and

RAISERROR ('Duplicate ID. You will receive an email with details.', 18, 1) WITH NOWAIT

-- End trigger

If we do an insert this works perfectly. The GP user is presented with a GP window with a More Info button that he/she can click and read the actual error message.

When we do an update to an existing record instead of an insert a new record the email is sent correctly, but the GP window with info on SQL error is different and the More Info button is missing.

We have traced the SQL server during both insert and update and that shows that the information down to the error number returned from SQL is exactly the same. So it seems to be that it is the Dynamics GP client that reacts differently. How can we ensure that the user always gets the More Info button?

Regards,

Stig


Viewing all articles
Browse latest Browse all 59474

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>