This is a weird one. Any help would be appreciated.
I have one app and one process that feeds the app with a datatable called “out_new_dt”. I have binded that datatable to a custom list and will make edits to that binding. And then push it back into the process to a variable called “in_selectedDatatable” to create queue items.
My issue is that I have two places where I run this process: one for editing the details and one for accepting the details. I have two buttons with the below configurations
Accepting
When I click the edit button, the process starts are runs as expected. When I click on the Accepting button (with very similar configuration) I get this error
Unable to start orchestrator process - invalid response received from orchestrator
I have tried several things. Specifically - When I remove the process argument “out_new_dt” the process will start. I’ve been banging my head trying to figure this out. Could it be because the edit anda accept buttons are on two different pages (each with bindings to out_new_dt)? No idea whats happening. Thanks!
Yes it runs successfully in Orchestrator and also from the app (just not from one section of the app) - I think it is some bug. What I did to fix this was create a new IO datatable and used that instead of the switchback between the input datatable and output datatable.
Yeah its working, but after switching to one IO variable instead of having one variable for input and one for output… A bug for sure, and an annoying one because there are no error details
Understood,But I am not sure why do you need to create Data table as IO variable, Reason right now Apps do not support for Data table as Input variable.
So this is by design only support Out Variable as Output Arg type.
This will get sorted once App will have complex variable type and as well as Data table Input Variable supported.
So this is not a bug may be , its design like that.
@Arvind_Kumar1 ,
Thanks for the heads up, but just to clarify - the app is getting an “input” as an output variable from the process data table and then passing the “output” data table back into the process as an input data table.
This method works in the app, but for some reason on a specific button on a page it didn’t work until I change the data table variable to IO
@Arvind_Kumar1 or @evan.cohen please help - This is still a big issue for me. Here’s another example of how messed up this is. I created a super simple test. I have one app with two buttons Button1 and Button2
These two buttons have the same exact action (running a process)
When I click on Button1, the process starts without issue. But then when I click on Button2 (or Button1) that runs the same process I get this error “Unable to start orchestrator process - invalid response received from orchestrator:”
If the app is public, it will use the permissions you grant to the app (because the users are unauthenticated), but if it is not public then it will use the logged in user’s permissions.
The permissions listed on the page under the “App Runtime” sections are the permissions necessary to run attended/unattended automations from an app.
If a private app, then the logged in user at run time must have the permissions.
If a public app, then the app itself must have the permissions.
If a user does not have Webhook:Create permissions at the tenant level, unattended jobs will not start at app runtime.
App Runtime - Unattended Automation
In order for users to trigger unattended automation at app runtime, a minimum of the following permissions are required:
Tenant Level
Define a user’s access to resources at the tenant level.
Webhooks: View, Create: Used by App to start and retrieve results from the process run
Folder Level
Define the user’s access and ability within each folder they are assigned to.
Jobs: Create - Used to start unattended jobs from Apps
@marian.platonov - thanks for the response. this is not a public app. I am the logged in user and I am an Admin.
However, as you can see from my example above, I am able to run the process 1 time, but unable to run the same process a second time without refreshing the browser…
This probably isn’t a permissions issue.
@Arvind_Kumar1 - great idea! The error message I got is this - “The field InputArguments must be a string or array type with a maximum length of ‘10000’”
The input is an array arg, so it must be the max length… how can i check the length?
Very good so we are close to the answer. this is not the problem of apps or process this is limitation of API JSON object. for API call max 10,000 characters are allowed.
For API calls, a maximum of 10,000 characters is accepted for the entire length of the JSON representation of input arguments, including argument names, all the escaped characters, spaces, brackets, and argument values.
thank you @marian.platonov and @Arvind_Kumar1 - I have an array that is being passed to the Input of the API. Is there a way to filter the array? I see there is a filter function, but I think it can only be used for Entities (“Incomplete expression: missing ‘entity’ ut found ‘orchestrator-process-property’”)?