Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

missing the additional purchases account codes

(0) ShareShare
ReportReport
Posted on by 325

It happened a few times that PM00203 table was emptied somehow when a user created or deleted the new vendors. Has anyone experienced this issue?

*This post is locked for comments

  • Michelle Louie Profile Picture
    Michelle Louie 15 on at
    RE: missing the additional purchases account codes

    Thanks for all your help!  Microsoft confirmed that this was a defect fixed in GP 2013

  • Suggested answer
    RE: missing the additional purchases account codes

    Hi Michelle,

    Please try the following on vendor and vendor class master table.

    Execute the following script against the company database to view triggers

    SP_Helptrigger PM00100

    SP_Helptrigger PM00200

    Review all the triggers returned by the script above

    disable each trigger, use the following script:

    Alter table PM00200 disable trigger XXXX

    Alter table PM00100 disable trigger XXXX

    Note XXXX is a placeholder for the trigger name

    After disable each trigger go to vendor and do the changes by selecting class ID and see whether you still getting the issue.

    To enable each trigger, use the following script:

    Alter table PM00200 enable trigger XXXX

    Alter table PM00100 enable trigger XXXX

    Note XXXX is a placeholder for the trigger name.

    please take a backup before doing this.

  • Michelle Louie Profile Picture
    Michelle Louie 15 on at
    RE: missing the additional purchases account codes

    Hi Victoria,

    We are using GP10 SP5.  We just tried it on GP2013 and was not able to reproducible there neither.  Thanks!

  • Victoria Yudin Profile Picture
    Victoria Yudin 22,766 on at
    RE: missing the additional purchases account codes

    Hi Michelle,

    I cannot duplicate what you're describing. I opened the Vendor Maintenance window, there is no Vendor ID selected, I selected a Class ID, nothing happens to the data in the PM00203 table. It's still there.  

    Are there additional steps to duplicate this?

    What version and build of GP are you using? (I am using GP 2013 SP 2, build 12.00.1482)

    Do you have any 3rd party products or customizations?

  • Michelle Louie Profile Picture
    Michelle Louie 15 on at
    RE: missing the additional purchases account codes

    We found that when the Vendor Maintenance window is opened, and without entering a Vendor ID, the user selects a Class ID, the data in PM00203 gets deleted.

  • Justin Thorp Profile Picture
    Justin Thorp 2,265 on at
    RE: missing the additional purchases account codes

    Hi All,

    My recommendation is create a SQL Trigger that will fire when a record is deleted from PM00203, and have that trigger insert records into a log file along with the current user and current date.  Then you can hopefully identify a pattern based on the user and time (for example, you may find that the deletion take place at a certain time of the day, and therefore you should review any scheduled jobs/imports/etc... that take place during that time).

    Below is an EXAMPLE of the sql to create the log table and trigger:

    --Create the log table:

    SET ANSI_NULLS ON

    GO

    SET QUOTED_IDENTIFIER ON

    GO

    SET ANSI_PADDING OFF

    GO

    CREATE TABLE PM00203LOG(

    [VENDORID] [char](15) NOT NULL,

    [DISTTYPE] [smallint] NOT NULL,

    [SEQNUMBR] [int] NOT NULL,

    [ACTINDX] [int] NOT NULL,

    [Default_On_Trx] [tinyint] NOT NULL,

    [DEX_ROW_ID] [int] NOT NULL,

    [USERID] [CHAR](15) NOT NULL DEFAULT CURRENT_USER,

    [DATEDELETED] [DATETIME] NOT NULL DEFAULT GETDATE()

    )

    --Create the trigger:

    SET ANSI_NULLS ON

    GO

    SET QUOTED_IDENTIFIER ON

    GO

    -- =============================================

    -- Author: <Author,,Name>

    -- Create date: <Create Date,,>

    -- Description: <Description,,>

    -- =============================================

    CREATE TRIGGER DBO.PM20300DELETE

    ON PM00203

    FOR DELETE

    AS

    BEGIN

    SET NOCOUNT ON;

    INSERT INTO PM00203LOG

    (

    VENDORID,

    DISTTYPE,

    SEQNUMBR,

    ACTINDX,

    Default_On_Trx,

    DEX_ROW_ID,

    USERID,

    DATEDELETED

    )

    SELECT d.VENDORID,

    d.DISTTYPE,

    d.SEQNUMBR,

    d.ACTINDX,

    d.Default_On_Trx,

    d.DEX_ROW_ID,

    CURRENT_USER,

    GETDATE()

    FROM DELETED d

    END

    GO

    ===========================

    Once the above is in place, all you need to do is run a select statement on the PM00203log table when you noticed the table has been deleted, and hopefully you can piece the rest of it together based on the user/datetime the deletion took place.

    Thanks,

    Justin

  • Abdo Khoury Profile Picture
    Abdo Khoury 14,855 on at
    RE: missing the additional purchases account codes

    Dear

    we are facing the same issue, has anyone found a solution to this problem

    Regards

  • Heather Roggeveen Profile Picture
    Heather Roggeveen 9,144 on at
    RE: missing the additional purchases account codes

    To add to Ian's request - do you know whether any database maintenance had been done - Check Links - anything like that?

  • RE: missing the additional purchases account codes

    Hi all, very strange behaviour. Can you let me know what versions of GP you are running [send the actual version number from the help menu].

    Ian.

  • Irita Profile Picture
    Irita 205 on at
    RE: missing the additional purchases account codes

    Hi,

    I have just encountered the same problem, where all the additional purchases account codes are missing on all the vendors records. Has anyone encountered a solution for this problem or a reason why it happens?  

    Irasema Lujan

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,409 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans