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

Error message in sales invoice staging - Could not find a token with key accountId

(5) ShareShare
ReportReport
Posted on by 6
Hi - I have just processed a sales order from the sales order staging table in Business Central through to the sales invoice staging table, but, when trying to process the record at this stage, there is an error message: "Could not find a token with key accountId".
 
Can someone please confirm what this means and provide assistance as to how to rectify this?
 
Thanks
 
I have the same question (0)
  • Suggested answer
    Aman Kakkar Profile Picture
    2,977 Super User 2026 Season 1 on at
    Hi,
     

    As far as I know, there are no standard staging tables in Business Central for sales orders or sales invoices. Based on the error message mentioning “token” and “accountId,” it looks like this might be related to an API call or an integration process rather than standard BC functionality.

     

    Could you please confirm if there are any customizations or third-party apps/extensions involved in this process? That will help narrow down the root cause.

     
    Aman K
  • Suggested answer
    OussamaSabbouh Profile Picture
    12,803 Super User 2026 Season 1 on at
    Hello,
     
    That error means the integration can’t find the Dataverse Account ID for the customer.
     
    The invoice’s customer isn’t linked (coupled) to a Dataverse Account.
     
    Dataverse expects accountId, but the record may be a Contact or uncoupled customer.
     
     
    1. Open the Customer Card in Business Central.
     
     
    2. Use Set Up Coupling → Synchronize Now to link it to the correct Account in Dataverse.
     
     
    3. If mappings were changed, go to Integration Table Mappings → Use Default Synchronization Setup to reset.
     
     
    Regards,
    Oussama Sabbouh
  • Suggested answer
    Rishabh Kanaskar Profile Picture
    6,219 Super User 2026 Season 1 on at
    Hi,
     
    The error message indicates a missing or improperly handled OAuth token during integration or API interaction. Can you confirm the token response includes accountID?
     
     
    Thanks
    Rishabh
  • CB-31101411-0 Profile Picture
    6 on at
    Thanks guys - my IT team have worked on this but there is ow a new error message: The data does not represent a valid JSON token.

    Any ideas?
  • Suggested answer
    Jainam M. Kothari Profile Picture
    15,732 Super User 2026 Season 1 on at
    Hello,
     
    Sales Invoice Staging is not in the Standard BC. 
     
    Please Check any third party extension or Customizations related to 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,926 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,158 Super User 2026 Season 1

#3
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 533 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans