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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

Bring GL00100 table in BC from GP

(0) ShareShare
ReportReport
Posted on by 598

In Cloud Migration Management there is an action "Manage Custom Tables".

I created an extension and inside it a table that matches the definition of GP table GL00100.

table 50140 "GL00100"
{
    DataClassification = SystemMetadata;

    fields
    {
        field(1; "[ACTINDX]"; Integer) DataClassification = SystemMetadata; }
        field(2; "[ACTNUMBR_1]"; Text[50]DataClassification = SystemMetadata; }
        field(3; "[ACTNUMBR_2]"; Text[50]DataClassification = SystemMetadata; }
        field(4; "[ACTNUMBR_3]"; Text[50]DataClassification = SystemMetadata; }
        field(5; "[ACTNUMBR_4]"; Text[50]DataClassification = SystemMetadata; }
        field(6; "[ACTNUMBR_5]"; Text[50]DataClassification = SystemMetadata; }
        field(7; "[ACTALIAS]"; Text[50]DataClassification = SystemMetadata; }
        field(8; "[MNACSGMT]"; Text[100]DataClassification = SystemMetadata; }
        field(9; "[ACCTTYPE]"; Integer) DataClassification = SystemMetadata; }
        field(10; "[ACTDESCR]"; Code[100]DataClassification = SystemMetadata; }
        field(11; "[PSTNGTYP]"; Integer) DataClassification = SystemMetadata; }
        field(12; "[ACCATNUM]"; Integer) DataClassification = SystemMetadata; }
        field(13; "[ACTIVE]"; Integer) DataClassification = SystemMetadata; }
        field(14; "[TPCLBLNC]"; Integer) DataClassification = SystemMetadata; }
        field(15; "[DECPLACS]"; Integer) DataClassification = SystemMetadata; }
        field(16; "[FXDORVAR]"; Integer) DataClassification = SystemMetadata; }
        field(17; "[BALFRCLC]"; Integer) DataClassification = SystemMetadata; }
        field(18; "[DSPLKUPS]"; Decimal) DataClassification = SystemMetadata; }
        field(19; "[CNVRMTHD]"; Integer) DataClassification = SystemMetadata; }
        field(20; "[HSTRCLRT]"; Decimal) DataClassification = SystemMetadata; }
        field(21; "[NOTEINDX]"; Decimal) DataClassification = SystemMetadata; }
        field(22; "[CREATDDT]"; DateTime) DataClassification = SystemMetadata; }
        field(23; "[USERDEF1]"; Text[100]DataClassification = SystemMetadata; }
        field(24; "[USERDEF2]"; Text[100]DataClassification = SystemMetadata; }
        field(25; "[PostSlsIn]"; Integer) DataClassification = SystemMetadata; }
        field(26; "[PostIvIn]"; Integer) DataClassification = SystemMetadata; }
        field(27; "[PostPurchIn]"; Integer) DataClassification = SystemMetadata; }
        field(28; "[ADJINFL]"; Integer) DataClassification = SystemMetadata; }
        field(29; "[INFLAREV]"; Integer) DataClassification = SystemMetadata; }
        field(30; "[INFLAEQU]"; Integer) DataClassification = SystemMetadata; }
        field(31; "[ACCTENTR]"; Integer) DataClassification = SystemMetadata; }
        field(32; "[USRDEFS1]"; Integer) DataClassification = SystemMetadata; }
        field(33; "[USRDEFS2]"; Integer) DataClassification = SystemMetadata; }
        field(34; "[Clear_Balance]"; Integer) DataClassification = SystemMetadata; }
        field(35; "[Workflow_Status]"; Integer) DataClassification = SystemMetadata; }
        field(36; "[DEX_ROW_TS]"; DateTime) DataClassification = SystemMetadata; }
        field(37; "[DEX_ROW_ID]"; DateTime) DataClassification = SystemMetadata; }
    }

    keys
    {
        key(Key1; "[ACTINDX]"{ Clustered = true; }
    }
}

The action "Manage Custom Tables" opens up Migration Table Mapping page.

I started the migration but the migration for this table failed:

When I click on Tables Failed cue I see this error:

Violation of PRIMARY KEY constraint 'TWO$GL00100$514b1439-9541-4c23-bcae-c24cd2db2231$Key1'. Cannot insert duplicate key in object 'dbo.TWO$GL00100$514b1439-9541-4c23-bcae-c24cd2db2231'. The duplicate key value is (0).

Am I missing any other steps in order to bring this GP table in?

Thank you!

I have the same question (0)
  • Suggested answer
    Andy Sather Profile Picture
    on at

    Hello  - We currently do not have dedicated Dev support via the Dynamics 365 Business Central forums, but I wanted to provide you some additional resources to assist.  If you need assistance with debugging or coding I would recommend discussing this on one of our communities.

    www.yammer.com/dynamicsnavdev

    dynamicsuser.net/.../developers

    I will open this up to the community in case they have something to add.

  • SilverAdo2021 Profile Picture
    598 on at

    Thank you, Andy.

    Posted the question on Yammer -> Migrations channel

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

News and Announcements

Season of Giving Solutions is Here!

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 > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,573

#2
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 773 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 760 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans