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 :
Small and medium business | Business Central, N...
Suggested Answer

The primary key in the Sales Line table can contain only one field, and its type must be Integer.

(5) ShareShare
ReportReport
Posted on by 12

I am facing an error after running Full Synchronization in Integration Table Mappings.(Sales Header)

 

Error message:
The data could not be updated because of the following error: The primary key in the Sales Line table can contain only one field, and its type must be Integer.


 

Additionally, in the Sales Line table, the fields Item No. and Document No. are not appearing in Integration Field Mapping.

SALESORDER-LINE

 
SALESORDER-ORDER


I have attached the Excel sheet containing the field list (CRM and Business Central) for your reference.

 

Best regards,

I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    304,711 Super User 2026 Season 1 on at
    Moved the question from the Dynamics 365 General to the Business Central forum.
  • Suggested answer
    YUN ZHU Profile Picture
    100,212 Super User 2026 Season 1 on at
    This is a bit strange, have you tried resetting all the default integration tables? I remember having it in the action bar.
    PS: Dynamics 365 Sales and Business Central integration setup (Set up a connection to Dataverse and Set up a connection to Dynamics 365 Sales)
     
    Hope this can give you some hints.
    Thanks.
    ZHU
     
  • Suggested answer
    Pallavi Phade Profile Picture
    5,510 Super User 2026 Season 1 on at
    Namaste @NP-26051046-0 ,
     
    Sales Line Table in Business cnetral has "Document Type , Document Number , Line Number" as Primary key .  As per above error its little confusing which table are you referring for . Sales Line Feilds i have gone through the excel . Is it some other integration table . If yes then u have to sync from CRM table to middle dataverse table .
     
     
    Hope below links help to solve , Old community threads.
     
     
     
     
    If you feel helped , please verify the answer 
     
     
    Regards 
    Pallavi Phade 
  • Suggested answer
    Nimsara Jayathilaka. Profile Picture
    5,001 Super User 2026 Season 1 on at
    Hi
     
    It is key mapping Error Occuring So It is compulsory to add the Sales Line primary keys to your Excel file and try again.
     
    Thanks
    Nimsara
  • Suggested answer
    Rishabh Kanaskar Profile Picture
    6,225 Super User 2026 Season 1 on at
    Hi,
     
    This error occurs because the integration mapping for Sales Line is not set correctly. The Sales Line table has a composite primary key (Document Type, Document No., Line No.), but Dataverse integration only supports a single-field integer key.
     
    To fix:
    Remove Sales Line from your integration table mappings, or
    Create a custom integration table with a single-field integer primary key that mirrors Sales Lines and use that table for synchronization.
    Direct synchronization of Sales Line with Dataverse is not supported out of the box.
     
    Thanks
    Rishabh

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,012 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 986 Super User 2026 Season 1

#3
Teagen Boll Profile Picture

Teagen Boll 659 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans