Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested answer

Bad Datatype detected for operation - Processing payments

(0) ShareShare
ReportReport
Posted on by 30

Error:
Batch #### failed to complete posting. Use the Batch Recovery window to complete the posting process.
More Info: Bad Datatype detected for operation

When we use the Batch Recovery window, it produces the same error. I don't see anything in the SQL trace 

I'm combing through the manual trace logs from the Support Debugging Tool (GP Power Tools) now, but any advice is appreciated.

The only change that I know if is that we added some Extender elements - a few fields to an existing window and an additional window - but we haven't modified any existing fields. One of the existing fields is being printed on the check...but Check Printing is fine, it bombs on posting.

Categories:
  • Caye Solutions Profile Picture
    30 on at
    RE: Bad Datatype detected for operation - Processing payments

    Thanks, Shannon!

    I updated this post with the actual cause and fix for the issue I created. It had to do with Extender Table Links. The links that failed had been in place for months (maybe a couple of years now), so I didn't suspect them failing when I added new fields to the Extender Window...but removing the links allowed the check posting process to complete.

    - Jody Wood

    Caye Soultions / Caye Technology

  • Suggested answer
    Caye Solutions Profile Picture
    30 on at
    RE: Bad Datatype detected for operation - Processing payments

    UPDATE: Found the fix

    Issue:

    An error when posting a check batch occurred with minimal information (Bad Datatype detected for operation)

    Steps that lead to resolution:

    • Run SQL trace while user tried to post – no actionable data retrieved

    • Had user turn on manual logging and built a dexlog file set to review

    o Actionable data: 'Post_PM_Batch_Recovery', table 'Batch_Headers', 0, "Bad Datatype detected for operation", "Computer Checks", 2, 0-

    • I Googled the actionable data and found that the issue is often associated with Extender Table Links

    o www.eonesolutions.com/.../

    Interim Resolution:

    • Disabled/removed all of the Extender Table Links which allowed the batch to post successfully

    Understanding what’s going on:

    “Table Links” tell Extender “When a record is deleted from Table X, look in these tables to find the record.” Table Links are not necessary, but are nice to have for housekeeping processes since we can put a boat-load of data into Extender fields.

    In the past, I've had issues where a person would put in a transaction and it would already have Extender information associated with it. This was caused by two things 1) GP would tend to re-use old, previously deleted INV and VCH numbers and 2) when those transactions were deleted, the Extender data would be left orphaned out there. We “fixed” issue 1 by modifying a setting in GP to never re-use * numbers. This works about 99.9% of the time. We “fixed” issue 2 by setting up Table Links in the Extender windows.

    However, the addition of some new fields in an existing Extender Window created a break/fix situation where the Table Links process failed to work properly, thus giving the Bad Datatype error.

    Proposed permanent solution:

    We have restored the “broken” [company] database into [test company] database so we can work through the Table Links and figure out which link or field specifically is creating the issue and resolve that.

  • Suggested answer
    Shannon Aune Profile Picture
    on at
    RE: Bad Datatype detected for operation - Processing payments

    Hi Caye,

    If there are no customization's/modifications in place, my assumption is the 'Bad Datatype' error is connected to a bad forms or reports dictionary in the installation and both should be recreated, you can use the KB's referenced below to do so:

    850465 - How to re-create the Reports.dic file in Microsoft Dynamics GP

    support.microsoft.com/.../850465

    ** Please note that before step 3 in the KB, please log into Tools | Customize | Report Writer and select 'Reports' to insure no modified reports are listed. If modified reports are listed, log out/back into Dynamics GP until this section is vacant so you know for certain the new dictionary is getting referenced before proceeding to step 3.

    951767 - How to re-create the Forms.dic file in Microsoft Dynamics GP

    support.microsoft.com/.../951767

    I hope that helps!

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

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 601 Most Valuable Professional

#2
Abhilash Warrier Profile Picture

Abhilash Warrier 416

#3
Adis Profile Picture

Adis 384 Super User 2025 Season 1

Product updates

Dynamics 365 release plans