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

Error GP upgrade 2016 to 18.2

(0) ShareShare
ReportReport
Posted on by 580

Hi,

We are upgrading GP from version 16.00.0814 to 18.2.1100 with mostly standard modules (Cnd Payroll, Human Ressources, PSTL). When upgrading Dynamics DB, all goes well. When we try to upgrade the companies we get the following error:

The following SQL statement produced an error:
exec seeSVCOpenRMACountsDetail_Create 2 exec seeSVCRTVCountsDetail_Create 2 exec seeSVCServiceCallCountsDetail_Create 2

ERROR [Microsoft][SQL Server Native Client 11.0][SQL Server]Invalid column name 'SVC Return Type'.

The following SQL statement produced an error:
exec seeSVCOpenRMACountsDetail_Create 2 exec seeSVCRTVCountsDetail_Create 2 exec seeSVCServiceCallCountsDetail_Create 2

ERROR [Microsoft][SQL Server Native Client 11.0][SQL Server]Invalid column name 'Service Record Type'.

This happens for all companies including TWO. I've looked around and found nothing. Any idea what could be causing this issue?

**Note: If I do re-add sample data on TWO, it works and I can log in GP in TWO.

pastedimage1596734897512v1.png

pastedimage1596734919657v2.png

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

    So, these columns showing as 'invalid column name' are not table columns, as they have spaces in the name, which the columns/fields in Dynamics GP tables won't have, but Views will have.

    In the company database, searching for the 'Service Record Type' column, the following GP Views will have this column:

    FieldServiceCalls
    HistoryFieldServiceCalls
    HistoryRMALines
    HistoryRMAs
    RMALines
    RMAs
    WorkOrders

    For the 'SVC Return Type' column, the GP Views that have this column are:

    ContractLines
    Contracts
    HistoryContractLines
    HistoryContracts
    HistoryRMALines
    HistoryRMAs
    RMALines
    RMAs

    I wasn't able to find any cases where we've seen an upgrade of Dynamics GP fail on these 'invalid column name' errors either, though it looks like the scripts are looking for these columns in the GP Views and not finding them.

    The columns appears to be related to Field Services, so, if Field Services is not used at all in the company databases, you may have the option to re-initialize Field Services anew at the new version, instead of attempting to upgrade this feature, which is a core feature, installed with Dynamics GP whether it is used or not.

    Let us know if you have any questions.

    Thank you,

  • Suggested answer
    Fritz Camille Profile Picture
    580 on at

    Hi Derek,

    Thank you very much for your help. It helped me solve the issue.

    Note that also had 'RTV Status' column, the GP views that had this column:

    HistoryRTVLines

    HistoryRTVs

    RTVLines

    RTVs

    Here is what I did:

    1. In GP 2016, I re-add sample data company on TWO

    2. Using SQL, I script all the views listed above from the TWO company

    3. I deleted all views listed above from the company

    4. I recreated the views in the company database using the script generated in SQL

    5. I open the GP 18.2 utilities and did the upgrade on the company database

  • Erick_Correa Profile Picture
    98 on at

    Hi, what are the scripts??

  • Fritz Camille Profile Picture
    580 on at

    Hi, to generate the new scripts, once you have recreated the TWO company;

    1. Go to SQL, navigate to the list of views in TWO.

    2. For each views that needs to be recreated in the production company, right click on the view and click generate new  Create script.

    3.Now go to the production company, delete the old views and recreate them using the scripts you have generated.

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!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

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

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 608

#2
André Arnaud de Calavon Profile Picture

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

#3
CP04-islander Profile Picture

CP04-islander 430

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans