Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 Community / Forums / Commerce forum / Cant activate CPOS - T...
Commerce forum
Suggested answer

Cant activate CPOS - The application initialization failed and A database error has occurred

Posted on by 82

Hi, 

I'm trying to activate a CPOS after we did a database copy and migrated master data, but i'm experiencing some issues. 

I'm getting two different error codes, and I don't find a logic which explain when i'm getting the one rather then the other. 

The first one I get is this one, which appear before I come to the activation part: 

"The application initialization failed. Please try again or contact your system admin.  
Error details
Step InitializeExtensibilityFramework failed with error: ["{\"stack\":\"CommerceError\\n at new CommerceError (https://XXXXXXXpos.axcloud.dynamics.com/Commerce.TypescriptUtilities.js:464:36)\\n at ErrorConverter.toCommerceErrors (https://XXXXXXXpos.axcloud.dynamics.com/Commerce.TypescriptUtilities.js:117:37)\\n at https://XXXXXXXpos.axcloud.dynamics.com/Commerce.TypescriptUtilities.js:103:31\\n at Array.forEach (<anonymous>)\\n at ErrorConverter.toCommerceErrors (https://XXXXXXXpos.axcloud.dynamics.com/Commerce.TypescriptUtilities.js:102:32)\\n at https://XXXXXXXpos.axcloud.dynamics.com/Pos.Framework.js:1865:81\",\"message\":\"\",\"name\":\"CommerceError\",\"_errorCode\":\"string_29000\",\"_title\":\"\",\"_handled\":false,\"errorCode\":\"string_29000\",\"title\":\"\",\"handled\":false,\"__proto__\":{}}"]

The other is is shared below: 
pastedimage1660133405239v1.png

 

We did run the Environment Reprovisioning tool, pressed initialize in commerce parameters, ran the Initialize commerce scheduler, ran a full sync on the channel database, and ran the 9999 distribution schedule job. 

Have anyone else experienced this and know how to solve the issue?

  • umer draz Profile Picture
    umer draz 90 on at
    RE: Cant activate CPOS - The application initialization failed and A database error has occurred

    I would perform check on the URL. you can test the ping URL as described in below article.

    https://{Commerce server URL}/commerce/healthcheck?testname=ping

    if thats working then You just need to specify URL like below

    https://{Commerce server URL}/commerce

    If it still fails, check the logs.

  • Suggested answer
    huijij Profile Picture
    huijij 19,803 on at
    RE: Cant activate CPOS - The application initialization failed and A database error has occurred

    Hi,

    Suggest you refer to the checklist to follow before activation:

    docs.microsoft.com/.../retail-device-activation

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... 287,696 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,490 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans