Shared scripts not works

Hi,

I can't use a shared script. I don't know why.
???

You probably need to set your Gateway Scripting Project,
https://docs.inductiveautomation.com/display/DOC80/Project+Library#ProjectLibrary-GatewayScriptingProject

1 Like

Your project script seems to have incomplete functions. So that script will not compile. So that script's failure to compile will cause it to "not exist". Empty folders won't exist.

Delete your broken code from shared.whatever.schedule. Save your project.

When calling from tag events, not @jlandwerlen's point. (The script console is not an appropriate scope for testing tag events, nor for testing Perspective action or transform scripts.)

2 Likes

Or add pass as the function's body, if you want to keep the functions in there:

def decode(prompt):
    pass
1 Like

The functions look like they are simply folded, probably to sanitize their contents from public view. Notice the + symbol on the left of each of them.

4 Likes

Thanks my problem is solved.

2 Likes

Good catch.
The line numbers should have been a clue...

Though it appears some of those functions actually did not compile, even if that was for a completely different reason.

1 Like