Skip to main content
7-Bedrock
December 12, 2021
Question

Getting an error for type cast while call sql query, could you please help on type casting?

  • December 12, 2021
  • 3 replies
  • 2236 views

 Unable to Invoke Service <service name>on <Thing Name>: Execute Query failed: org.postgresql.util.PSQLException: ERROR: procedure public.<stored procedure name>(character varying, character varying, bigint, bigint, character varying, character varying, double precision, double precision, character varying, double precision, double precision, character varying, double precision, bigint, bigint, double precision, bigint, bigint, bigint, character varying, character varying, character varying, character varying, character varying, character varying, character varying, bigint, character varying, integer) does not exist Hint: No procedure matches the given name and argument types. You might need to add explicit type casts. Position: 6

3 replies

7-Bedrock
December 12, 2021

I tested my stored procedure on the database it's worked, but when calling the stored procedure from thingworx service I used base type accordingly expected from the stored procedure but still shows the error.  Does anybody helps with this error of typecasting. ?

24-Ruby III
December 12, 2021

There is such an article here - "Execute Query failed: org.postgresql.util.PSQLException: ERROR: canceling statement due to user request in ThingWorx": https://www.ptc.com/en/support/article/CS345780 

Support
December 20, 2021

Hi @SA_10100358.

 

Based on this part of the error "No procedure matches the given name and argument types", here as some possibilities that we can think of:

 

lack of permissions

typo somewhere

possibly you're not sending the correct number of parameters expected

 

Regards.

 

--Sharon