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, ...
Answered

ClearCompanies script error message

(0) ShareShare
ReportReport
Posted on by 75,848 Moderator

I have dealt with before and one of the fixes is to truncate the DYNAMICS..syDeployedReports table.

Error message when running ClearCompanies script for Microsoft Dynamics GP: "Error: Conversion failed when converting the varchar value 'ABC' to data type int."

In this case ABC is a valid company and truncating the syDeployedReports does prevent this message. ABC only existed in the CompanyID field which not defined as int.  What field is actually causing this message?

Categories:
I have the same question (0)
  • Verified answer
    Derek Albaugh Profile Picture
    on at

    We have a blog on this actually:

    community.dynamics.com/.../error-message-when-running-clearcompanies-script-for-microsoft-dynamics-gp-error-conversion-failed-when-converting-the-varchar-value-abc-to-data-type-int

    In it, there is a script that you can modify with the string value causing the error, in this example it would be 'ABC' and the script will show those table/columns that have 'ABC' in them, when run against the DYNAMICS/system database.

    As the blog mentions, "the ClearCompanies script throws this error message when it encounters a value in the CMPANYID, companyID, and related table columns/fields it is looking at, as those values should all be integer values".

    I just wanted to mention this, even if you've already resolved the error.

    Thanks

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 660 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 307 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans