Skip to main content

Notifications

Small and medium business | Business Central, N...
Suggested answer

Unexpected Error While Creating Customer In BC

Posted on by 5
Hi All,
 
While trying to create a new customer in BC using Web API V2.0. I'm getting below error. 
 
 
{
    /error/: {
        /code//Internal_ServerError/,
        /message//Sorry, the current permissions prevented the action. (TableData LSC Preaction Creation Preaction Creation Read: LS Central)  CorrelationId:  d8c5e94c-fac5-44ed-8765-66fae4f1404f./
    }
}
 
Though I'm successfully able to get the list of customers not sure why while creating/updating new customers, I'm getting the below error.  Please let me know how to overcome this issue. Your forward for the inputs.
 
 
Categories:
  • Suggested answer
    Unexpected Error While Creating Customer In BC
    Hi @Ram Pranav,
     
    Since we are using the connect app credentials and authentication type as Oauth, The connect app user doesn't appear in the users. I followed below steps.
     
    1. Open search box in BC
    2. Type Azure Active Directory Applications
    3. Open your application 
    4. Goto User Permission Sets
    5. Add SUPER(DATA) permission
     
    As you have mentioned it needs read access to TableData LSC Preaction Creation table. I think SUPER(DATA) permission set has this permission included. Thanks for your input. It helped me figuring out the resolution. Thanks.
  • Suggested answer
    Ram Pranav Profile Picture
    Ram Pranav 50 on at
    Unexpected Error While Creating Customer In BC
    Hi,
     
    Navigate to Users, click on the user configured for OAuth authentication. Click on Effective Permissions action on the User Card. This page will list down all the permission for the OAuth user. Check if the user has READ permission for the TableData listed in your error. Add the TableData READ permission if it is not there.
     
    Retrieving the list of customers probably doesn't need this table information but creating a customer does. Hence, BC threw a permission error.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

New! Quick response templatesâš¡

Save time with the new custom templates!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,228 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,056 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans