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 :
Finance | Project Operations, Human Resources, ...
Unanswered

"Invalid character value for cast specification"

(0) ShareShare
ReportReport
Posted on by 465

I'm getting this error when the entity exports using recurring integration:

An OLE DB record is available.  Source: "Microsoft SQL Server Native Client 11.0".  Description: "Invalid character value for cast specification".

I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    301,020 Super User 2025 Season 2 on at

    Hi D365FO user,

    Can you provide more details? Without additional information, we don't know what you did to encounter this error.

    You mention an entity export. Is this a standard or custon(ized) entity? If it is a custom entity, did you add coding or virtual columns to this entity? Is this happening on a production, UAT, or development environment?  Did it work before? If so, what exactly got changed? What steps did you do and on what exact moment do you get this error?

  • D365FO user Profile Picture
    465 on at

    Hi Andre,

    This is a customized entity that gets exported via recurring integration. (Change tracking is enabled)

    It happens in UAT and it started happening after a refresh was made to copy data from live to UAT. -- it was woking before

    It seems it's happening to more than on customized entity where recurring integration is enabled. (Not all of them)

    Any idea?

  • André Arnaud de Calavon Profile Picture
    301,020 Super User 2025 Season 2 on at

    Hi D365FO user,

    Did you synchronize the database after the refresh from live? There might be some references incorrect or not available yet. Namely in case the environments are not having the same application version or customizations.

  • D365FO user Profile Picture
    465 on at

    Hi Andre,

    I'm not the one who did the refresh but i'll ask.

    First, how do we sync uat DB?

    2nd, what do u mean by incorrect references or not available references can you please explain?

    3rd, i looked at product version and platform version for both UAT and Prod and they are indeed different..so what do u think happened exactly?

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 646 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 529 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 285 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans