Skip to main content
8-Gravel
Sep 29, 2024 9:34 AM UTC
Solved

Create triggers for Oracle databases using Thingworx

I tried to create an Oracle database trigger using Thingworx,Database connection successful.

I created a command service

Huaxu_0-1727602334277.png

An exception message is displayed after the command is executed

Huaxu_1-1727602369347.png

How can I resolve this exception

Rocko
RockoAnswer
19-Tanzanite
Sep 30, 2024 7:53 AM UTC

Try to use the <<>> notation instead of [[]] for the parameters. (see https://www.ptc.com/en/support/article/CS355016)

 

If all else fails. concat the string and use execute immediate, similar to Example 3 here: https://www.ptc.com/en/support/article/CS261346

 

2 replies

19-Tanzanite
Sep 30, 2024 7:30 AM UTC

Is the same command executing successfully if you run it in Oracle SQL Developer (or whatever equivalent of it you might use) ?

Translate
Rocko
Rocko19-TanzaniteAnswer
19-Tanzanite
Sep 30, 2024 7:53 AM UTC

Try to use the <<>> notation instead of [[]] for the parameters. (see https://www.ptc.com/en/support/article/CS355016)

 

If all else fails. concat the string and use execute immediate, similar to Example 3 here: https://www.ptc.com/en/support/article/CS261346

 

Translate