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)

Invoice That Was Stuck Between Not Posted and Posted

(0) ShareShare
ReportReport
Posted on by

Had an instance where a SOP clerk created an invoice from an order and then posted it directly (i.e. not via a batch) She was able to print it but then could not go back into Sales Transaction Entry as GP claimed there was a transaction that had not completed. As it was a "posted invoice" I did not want to just delete the invoice form SOP10100 and SOP10200 and clear SY00500 and have her start again as I did not what had occurred and how far GP had gone in the posting process before it hung. After many days of deleting the stuck batch in SY00500 each morning I found a script that allowed me to search the entire database for my SOP Number. It also brought up some JE numbers and DEX_ID numbers that were identical (another reason to use Alpha Numeric for sop numbers). I satisfied myself that the process had not hit any historical or posting tables and also showed me what work tables the invoice had hit. Basically it only was in SOP10100 and SOP10200 plus tax and udf tables in the work tables.

I found that the BCHSOURC field only allows certain values. The proper value for that type of transaction is 'Sales Entry' however in my SOP10100.BCHSOURC record for the messed up invoice it was '*Sales Entry'. Where the star came from I have no idea. After checking my tax tables to make sure that the information was correct and all items were accounted for I did a sql update to remove the star on the SOP10100.BCHSOURC record for the SOPNUMBE record of the invoice. I was then able to open the invoice as an open and not posted transaction. I saved the invoice to a newly created batch and then posted the batch. The posting routine gave me a distribution record that was spot on. Of course I would also recommend doing this first on a sample or backup copy first and the usual rules about directly editing the database via sql apply. Hope this helps someone from spending way too many hours over what should be a relatively easy solution.

*This post is locked for comments

I have the same question (0)
  • Mahmoud Saadi Profile Picture
    32,738 on at

    Thank you for the valuable information provided above,

    Allow me to add up, the search all database stored procedure can be found on spSearchOnAllDB: SQL Stored Procedure to Search an Entire Database.

    I totally agree with you about the approach you have taken to tackle down this issue, such posting corruption occurs quite often for various reasons, and the search all db stored procedure takes you through the tables to let you know how records were stored and any potentials errors.

    You have mentioned a very important point as well, which is using the alpha numeric for SOP numbers, if you run the stored procedure and provide an SOP number such as (INVS0000134) would be quite easier than providing (000000134). This is why the configuration of modules include setting up the document numbers and the associated prefix values.

    Please never hesitate to share any further inquiries,

  • Crystal Karlson Profile Picture
    254 on at

    Good morning! I have a perfect copy of your situation here.

    I was hoping to get the update script that you ran to remove the * from the BCHSOURC? I can do a little "damage" in SQL, but I am not sure on this one. We usually don't have to touch our database, but alas, I cannot unstick this no matter what I try.

    Thanks in advance!

    Crystal

  • Suggested answer
    Peter Muchira Profile Picture
    1,912 on at

    Thanks a lot for sharing this. It really came in handy on a similar support issue I was having.

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
mtabor Profile Picture

mtabor 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans