Method [x] is a function or has parameters that are not supported. Only IN parameters are supported.
I am attempting to create a database task that will close old customer order lines on a weekly basis assuming certain criteria are met (which I have in a SQL statement). However, when I go to set up the New Database Task and choose “Select Method” and then choose the API, I get the following pop-up.
“Method CLOSE_CUSTOMER_ORDER_API.CLOSE_ORDER_LINE__] is a function or has parameters that are not supported. Only IN parameters are supported.”
Am I missing something? Or is this not possible?
Page 1 / 1
Database Tasks will only support procedures with IN arguments.
Check CLOSE_CUSTOMER_ORDER_API.Close_Order_Line__, the first 2 arguments are IN OUT, this is not supported.
So, is there no way to actually get Customer Orders to auto-close on a scheduled basis?
I wouldn’t say no just yet, need to check for another API method that we can invoke that is also compatible as a scheduled database task.
Hi @aprough,
Have you run the process manually and used the debugger to see which API is called?
@GPIE . I have not (actually didn’t know I could). I will see if I can figure that out. Thx.
It’s pretty straight forward…
Press CTRL+SHIFT+D in IFS to open Debug Console.
Run the process in IFS.
Find the specific process command, select the PL/SQL Details tab.
You can see below in the bottom panes what the API call is.
You can then use Copy Special to capture the code, for example...
So, is there no way to actually get Customer Orders to auto-close on a scheduled basis?
You can setup a migration job with that method and schedule it to run as often as you'd like. Just specify your conditions in the where clause carefully.
So, is there no way to actually get Customer Orders to auto-close on a scheduled basis?
You can setup a migration job with that method and schedule it to run as often as you'd like. Just specify your conditions in the where clause carefully.
Just add whatever conditions you want in the where clause and the schedule the job.
@anmise . Thank you; that worked perfectly! I was working through this process but running into a situation where I had two different methods (one to return the objid and one to do the close_order_line_) which was not working. I had no idea I could skip that for something like this.