Common.Exceptions.CloudCodeFunctionNotFoundException

I suddenly get this error despite the fact that the function exist I cloud code library.

The Environment is correct in Project Settings.

I have tried the code outside CC and that works.

I created a new c# module but the same result.

Unprocessable Entity
24-09-21 10:14:32 CC_Dispatcher - ERROR: ScriptError

(422) HTTP/1.1 422 Unprocessable Entity

Invocation Error

Common.Exceptions.CloudCodeFunctionNotFoundException: No CloudCodeFunction found with the specified name ‘GetOracleAccessToken’. Ensure that there is a CloudCodeFunctionAttribute with the correct name on a public method, defined within the module.

Hi,

Can you deploy the template (new) Cloudcode module?
Are you using the CLI or the deployment window?
what versions? if the DW, what version of CloudCode package?

Are you comfortable sharing your code? (you can leave out parts that are sensitive).
Either here or PM me?

Thanks

1 Like

Problem solved just now after a lot of debugging for some reason it was the [CloudCodeFunction( code line that had disappeared without me touching the script. Silly problem but I do not know how I had not uploaded the script for quite some time.

Thanks you for the answer.