web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

Cannot insert duplicate key row

(0) ShareShare
ReportReport
Posted on by 2,095

Hi , I am running strange issue in GP , when ever i post any financial - General transaction and click post and after closing the screen i get print out output but along with error message says :

Microsoft SQL Native Client SQL server Cannot insert Duplicate key row in Object dbo.PJournal with unique index '_WA_SYS_REPORT_2EC5E7B8'.

will be thankfull is some can help about it . 

regards

Rashed

 

*This post is locked for comments

I have the same question (0)
  • L Vail Profile Picture
    65,271 on at

    First, make sure SQL agent is running and that you have the pjournal job enabled.

    Next, run DELETE PJOURNAL against the company database.

    If the PJOURNAL job isn't active, start it.

    This may help

    Kind regards,

    Leslie

  • Rashed Alhakimi Profile Picture
    2,095 on at

    Hi Leslie ,

    Thank you for your answer .

    but i tried to run the Pjournal job but its giving an error message :

    Execution of job 'Remove Posted Pjournals from All companies' failed see the history log for details'

    Regards

    Rashed

  • Richard Wheeler Profile Picture
    75,848 Moderator on at

    Try just loggin into SQL and issing this command against your company database.

    DELETE PJOURNAL

    This will empty the PJOURNAL table and then try posting. If this is working make sure the EMPTY PJOURNALS job exists and is scheduled to run.

  • Rashed Alhakimi Profile Picture
    2,095 on at

    HI , Richard ,

    Thanks for your always cooperation .

    i tried the query for deleting the contents of the table also didn't work so i had to drop the table and recreate it again and now its empty and job is running perfectly with note that there was around 38000 record .

    now after clearing it  , whenever i post transaction i receive new error like :

    cannot insert value null into column report table dbo.pjounal column does not allow nulls . insert fails

    regards

    Rashed

  • Richard Wheeler Profile Picture
    75,848 Moderator on at

    If you go into SQL and then SQL Agent and see the PJOURNALS job and right click and choose execute now does it complete successfully?

  • Rashed Alhakimi Profile Picture
    2,095 on at

    Yes now Pjournal job works fine . but error message shown earlier still coming :

    cannot insert value null into column report table dbo.pjounal column does not allow nulls . insert fails

    regards

    Rashed

  • Verified answer
    Rashed Alhakimi Profile Picture
    2,095 on at

    HI , thank you all for your assistant , made dbcc checktable fixed the issue of pjournals table

    and solve the posting errors ..

  • veeyeskay Profile Picture
    on at

    Hello Rashed

    Thanks for the update.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

#1
Community Member Profile Picture

Community Member 2

#2
mtabor Profile Picture

mtabor 1

#2
Victoria Yudin Profile Picture

Victoria Yudin 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans