web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
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
    303,314 Super User 2026 Season 1 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
    303,314 Super User 2026 Season 1 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 510 Super User 2026 Season 1

#2
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 399

#3
Adis Profile Picture

Adis 251 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans