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

Notifications

Announcements

No record found.

Community site session details

Community site session details

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

Cloud Migration Setup error Invoking endpoint failed with HttpStatusCode - 401 : Unauthorized

(1) ShareShare
ReportReport
Posted on by 18
Hi,
 
I am getting an error I've never seen before while trying to migrate BC OnPrem 23.1 to BC Online 23.5.
I did this migration with these exact OnPrem and Online versions for a different database last month and did not get this error message.
I am using the same SQL connection string I always use (I just edit the database name).
SQL user I use for the connection is sysadmin and db owner.
 
 
Any ideas?
 
Thanks,
Kevin
 
I have the same question (0)
  • Verified answer
    Community member Profile Picture
    18 on at
    This error can occur in the setup phase and in the migration phase.
    Make sure that the user that is consenting to cloud migration has a Business Central license and has super permissions.
     
    In my case the user that consented to the cloud migration only had internal admin permissions and did not have a Business Central license on the user.
    This seems to be a bug, a user without a Business Central license and super permissions should'nt be able to give consent to cloud migrations.
    ______
    Kevin
  • Suggested answer
    Saurav.Dhyani Profile Picture
    14,380 Super User 2025 Season 2 on at
    Hi Kevin,
     
    Make sure that user you are using in your connection string have db owner permission in SQL database.
     
    You can review your steps with this video - https://youtu.be/6WrbjeFdzwA
     
    Regards,
    Saurav Dhyani

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

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 3,098

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,556 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,108 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans