cant find environment resourcefile

Not applicable

I have imported a js resource file to the environment scope, but when trying to include the resource file in js policy, during uploading the proxy I get:

<Error>
    <Code>messaging.config.beans.InvalidResourceURLRef</Code>
    <Message>Invalid resource url ref jsc://master-logger-1-0-76.js in policy JS-InjectCommonFunctions in zooz</Message>
    <Contexts/>
    <Cause>
        <Code>messaging.config.beans.ResourceDoesNotExist</Code>
        <Message>Resource with name master-logger-1-0-76.js and type jsc does not exist</Message>
        <Contexts/>
    </Cause>
</Error>

even tough I can see the file while using the list endpoint of the managment API (in environment scope)

Note: I am using only mngmnt API to immport and retrieve the file. so UI solutions are irrelevant

0 2 229
2 REPLIES 2

Not applicable

Hi,

Could you please check whether, it is correctly added in resources\jsc location.

Else you can directly add in the proxiy - scripts with the file type as JavaScript.

adding-javascript.jpg


Hope this will help in finding the issue.

@Kannan thanks for your reply

how do I check it is correctly added in resources\jsc location?