Please take this survey to help us learn more about how you use third party tools. Your input is greatly appreciated!
creating R UDF library
Ima getting error while running library in vertica , though the underlying Rcode is exceuting fine in R (no syntax errors)
Failure in UDx RPC call InvokeSetExecContext(): Error calling setupExecContext() in User Defined Object [] at [/scratch_a/release/22925/vbuild/vertica/OSS/UDxFence/vertica-udx-R.cpp:139], error code: 0, message: Exception in Validate Library:<text>:1:29: unexpected input
1: rudfkmeans <- function(x,y)
0
Leave a Comment
Can't find what you're looking for? Search the Vertica Documentation, Knowledge Base, or Blog for more information.
Comments
Hi kr,
Can you share the code that is causing the error? I think you have a syntax error in your code. It may be syntactically correct in R, but Vertica does some additional validation on the R source before running it.
Thanks,
Chris
I'm having the same issues, I have tried many different versions and still get the same error.
Attaching the code, can you please take a look and point me to what I'm doing wrong:
Thanks,
Kostia
We have typically seen this error whenever the R script is created in Windows OS and saved in the Dos/Windows format instead of Unix format(End of Line character is different). We usually open the file in Notepad++ and use "Edit --> EOL Conversion" to save the source file in Unix format.
Ravi
Hi,
That fixed the issue.
Thank you very much.