Scenario: I have a created a reusable fileUploadField component which I am planning to use in all existing fileUploadField field in all apps. I have created a rule inputs for all the parameters of the fileUpload field and passing values to the common component while calling it. In saveInTo of the common component I am calling a!startProcess which will run asynchronously(i.e. no activity chaining).
Issue:
Could not display interface. Please check definition and inputs. Interface Definition: Expression evaluation error [evaluation ID = 50518:8f67a] in rule 'aco_fileuploadfield' : An error occurred while executing a save: Expression evaluation error : Attempted to run a second smart service, but only one smart service can be run per expression evaluation.
Note: I have built this functionality to capture document details across all apps and all upload fields which are already in use. We don't want to change any UI and major changes to existing screens.
Discussion posts and replies are publicly visible
Hi riyazn2499 , I am also facing the same issue did you find any solution to trigger process model only once?
What exactly do you mean with "same issue"?
Hi Stefan Helzle
I am trying to change the filenames while uploading the files without submitting
I used a!submituploadfiles function to upload documents and triggering process model in saveInto to change doc names
when i am uploading multiple docs saveInto executing multiple times with respect to number of docs. if i upload 3 documents at a time 3 instances are getting created and throughing error as cant execute smartservice second time
You can only use a single smart service function in a saveInto. You will have to find a different way.
BTW, why do you need to change file names?
As Stefean mentioned you can only call smart service functions once. If you want to change the file names, best way is do that in process model after uploading to target folder.