Skip to main content

Notifications

Announcements

No record found.

Dynamics Business Central migration forum
Answered

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

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
 
  • Suggested answer
    Saurav.Dhyani Profile Picture
    Saurav.Dhyani 14,613 User Group Leader on at
    Cloud Migration Setup error Invoking endpoint failed with HttpStatusCode - 401 : Unauthorized
    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
  • Verified answer
    Community member Profile Picture
    Community member 18 on at
    Cloud Migration Setup error Invoking endpoint failed with HttpStatusCode - 401 : Unauthorized
    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

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 288,584 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,864 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans