Unable to load a new .js file of type xtk:javascript..... failed to load the js library error | Community
Skip to main content
Level 4
May 11, 2022
Solved

Unable to load a new .js file of type xtk:javascript..... failed to load the js library error

  • May 11, 2022
  • 1 reply
  • 954 views

Hi All,

 

I am trying to create a new custom workflow activity, but when trying to call a new js file from this custom activity its throwing below error- unable to load the new js library and not able to move forward. However currently the js file has no custom codes and only the call functions just to load.

In the data schema i have already called these js:

<attribute default="'arc:fulfilment_js.js'" name="library"/>

 

<methods>
<method library="arc:fulfilment_js.js" name="FulfilmentGetDonors" static="true">

 

Below is the error :

 

 

Please let me know if I am missing anything or there should be a different way of achieving this or should i need to mention the newly created js anywhere in the core libraries? I am currently stuck and any help in this regard is highly appreciated.

 

Thanks in advance!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by CedricRey

Hi @poonam_dogra it seems that you forgot the extension in the name of your library (first screen)

The library seems to name 'arc:fulfilment_js' but it should be named 'arc:fulfilment_js.js'. Every Javascript should have this extension in the name.

As this name is unique, when you'll try to rename it, it will create a new one. Don't forget to delete the old one 😉

 

Cedric

1 reply

CedricRey
CedricReyAccepted solution
Level 5
May 11, 2022

Hi @poonam_dogra it seems that you forgot the extension in the name of your library (first screen)

The library seems to name 'arc:fulfilment_js' but it should be named 'arc:fulfilment_js.js'. Every Javascript should have this extension in the name.

As this name is unique, when you'll try to rename it, it will create a new one. Don't forget to delete the old one 😉

 

Cedric

Level 4
May 11, 2022

Oh god what a mistake! 

 

Thanks a lot @cedricrey for catching this, really grateful for a quick reply and for sharp eye. 

 

Thanks once again!