Skip to main content

Notifications

Microsoft Dynamics GP forum
Unanswered

locate a batch with a special character in the Batch Number - APOSTROPHE

Posted on by
This is a problem and a resolution post... because I didn't see one out there and I know I can't be the only person that has had this problem.

Client called and stated that they went to post a check batch but after she printed the checks, the batch would not post.  It kept saying it was in the printing status.
 
I logged into SQL and searched the SY00500 table for the batch, it was nowhere to be found.
 
The problem was that the BATCH NUMBER included an apostrophe. example:   FINDER'S FEE
 
So, searching in SQL for that is impossible because of the apostrophe.
 
Here is what I did to find it, and then update the batch name and then update the batch status:
 

SELECT * FROM SY00500 where BACHNUMB like 'finder%' - - found a batch called:  FINDER'S FEE

 

Update SY00500

set BACHNUMB='FINDERS FEE'

Where DEX_ROW_ID='103534066'    -- THIS UPDATES the BATCH NUMBER TO NOT INCLUDE THE APOSTROPHE

 

 

SELECT * FROM SY00500 where BACHNUMB='FINDERS FEE'

 

UPDATE SY00500 SET MKDTOPST=0, BCHSTTUS=0 where BACHNUMB='FINDERS FEE'

 

 

 

Hope this helps someone.

Categories:
  • BJ-09051414-0 Profile Picture
    BJ-09051414-0 59 on at
    locate a batch with a special character in the Batch Number - APOSTROPHE
    Hello,
     
    Thank you for your sharing your findings.
     
    One thing to add to this is the Batch ID is also stored on the Transaction Records in addition to the SY00500. If you did not remove the ' on the transaction records as well, it might not actually post the transactions because the Batch ID is now not the same between the SY00500 and the PM work tables for the transactions.
     
    As this was a Check Batch, the worktables would be the PM10300 (Computer Checks) and the PM10400 (Manual Payments). 
     
    Thanks again for sharing!
     
    Brandon
    Enavate Functional Consultant.

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

Community Spotlight of the Month

Kudos to Mohamed Amine Mahmoudi!

Blog subscriptions now enabled!

Follow your favorite blogs

TechTalk: How Dataverse and Microsoft Fabric powers ...

Explore the latest advancements in data export and integration within ...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 283,860 Moderator

#2
Ludwig Reinhard Profile Picture

Ludwig Reinhard Microsoft Employee

#3
Martin Dráb Profile Picture

Martin Dráb 225,155 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans