Skip to main content

Notifications

Community site session details

Community site session details

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

Extension Objects names in SQL table names diffences

(0) ShareShare
ReportReport
Posted on by 13

Hi,

I have custom objects in Business central since I want to create an extension in the Business Central cloud I have renamed object names with BGS_ as a suffix in Visual Studio code and Published them online but my SQL server database tables are without Suffix BGS_. So data from these tables are not copied into my online business central.

will you suggest one? Please

  • Suggested answer
    Mohana Yadav Profile Picture
    60,213 Super User 2025 Season 1 on at
    RE: Extension Objects names in SQL table names diffences

    Width property is different to length of the field.

    We cannot increase the length of the field size in BC.

    Standard Description field length is 100 characters so you have to shrink your data in description field 100 in your OnPrem system.

  • Hafiz@d365 Profile Picture
    13 on at
    RE: Extension Objects names in SQL table names diffences

    Hi Mohana,

    Your advice is working fine.

    around 7 important tables are not migrated because of almost one reason the 'Description' field has more than customized standard tables.

    example 

    "Failed to copy the table. Inner error: String or binary data would be truncated in table 'db_bcprodasia_t86224812_20230306_06352608_0756.dbo.BrightGas$Item$437dbf0e-84ff-417a-965d-ed2bb9650972', column 'Description'. Truncated value: 'LPG Flexible Hose With 3/4" CS NPT Male Fitting Other End 3/4" CS NPT Female Fitting Union Type With'.'

    5025.ERoorBCCommunitySupport.jpg

    where to correct 

    I have increased the size as shown below

    modify(Description)
            {
                Width = 500;
            }
    in the 'Item' table
  • Hafiz@d365 Profile Picture
    13 on at
    RE: Extension Objects names in SQL table names diffences

    Hi Mohana,

    Your advice is working fine.

    around 7 important tables are not migrated because of almost one reason the 'Description' field has more than customized standard tables.

    example 

    "Failed to copy the table. Inner error: String or binary data would be truncated in table 'db_bcprodasia_t86224812_20230306_06352608_0756.dbo.BrightGas$Item$437dbf0e-84ff-417a-965d-ed2bb9650972', column 'Description'. Truncated value: 'LPG Flexible Hose With 3/4" CS NPT Male Fitting Other End 3/4" CS NPT Female Fitting Union Type With'.'

    8081.ERoorBCCommunitySupport.jpg

    where to correct 

    I have increased the size as shown below

    modify(Description)
            {
                Width = 500;
            }
    in the 'Item' table
  • Hafiz@d365 Profile Picture
    13 on at
    RE: Extension Objects names in SQL table names diffences

    Hi Mohana,

    Your advice is working fine.

    around 7 important tables are not migrated because of almost one reason the 'Description' field has more than customized standard tables.

    example 

    "Failed to copy the table. Inner error: String or binary data would be truncated in table 'db_bcprodasia_t86224812_20230306_06352608_0756.dbo.BrightGas$Item$437dbf0e-84ff-417a-965d-ed2bb9650972', column 'Description'. Truncated value: 'LPG Flexible Hose With 3/4" CS NPT Male Fitting Other End 3/4" CS NPT Female Fitting Union Type With'.'

    ERoorBCCommunitySupport.jpg

    where to correct 

    I have increased the size as shown below

    modify(Description)
            {
                Width = 500;
            }
    in the 'Item' table
  • Verified answer
    Mohana Yadav Profile Picture
    60,213 Super User 2025 Season 1 on at
    RE: Extension Objects names in SQL table names diffences

    You can define the table mappings in the latest Cloud Migration Tool.

    Please try this

    learn.microsoft.com/.../migration-table-mapping

  • Hafiz@d365 Profile Picture
    13 on at
    RE: Extension Objects names in SQL table names diffences

    Things get more complicated

    when I want to deploy an extension on the promise, the allowed object ranges differ.  cloud objects ranges I have done are different.

  • Suggested answer
    Mohana Yadav Profile Picture
    60,213 Super User 2025 Season 1 on at
    RE: Extension Objects names in SQL table names diffences

    Please install the app with BGS_ in OnPrem database also and try to migrate afterwards.

  • Hafiz@d365 Profile Picture
    13 on at
    RE: Extension Objects names in SQL table names diffences

    Yes, Mohana,

    I am aware of the issue. Please give me a solution. I

  • Mohana Yadav Profile Picture
    60,213 Super User 2025 Season 1 on at
    RE: Extension Objects names in SQL table names diffences

    The extension that is installed in OnPrem and Cloud should be the same.

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,190 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,968 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans