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...
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,414 User Group Leader 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

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,986 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,071 Super User 2026 Season 1

#3
Dhiren Nagar Profile Picture

Dhiren Nagar 975 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans