Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Unanswered

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

Posted on by 2
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 248 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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans