Skip to main content

Notifications

Announcements

No record found.

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

ClearCompanies script error message

Posted on by 75,730

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:
  • Verified answer
    RE: ClearCompanies script error message

    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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans