Hello,
I am quite new to the flow (in short knows nothing) and I am creating a flow for the first time and needs help!
I have created a PowerApp and I need to run a On Premise SQL Server Stored Procedure which requires an input. That input I intend to provide through using a text box input.
In this scenario, the stored procedure will create a table for the direct and indirect reporting employees of a given employee ID. This ID is an input field/text field in PowerApps. I am doing following steps:
3. I do not know what to put under "plnitld". In case if I am skipping the step, I am getting the error:
@IM,I have also observed this behavior in executing a SQL stored procedure from Power Automate using the step "Execute stored procedure". It has shown extra parameter pInitId which is not part of my stored procedure. Please see image attached. My stored procedure has only a single input parameter JSONData but no idea how the second parameter pInitId appeared in the Flow canvas.
I solved the issue by simply using the latest version "Execute stored procedure(V2).
This has been an issue ever since I created my first flow/automate about 2 months ago. I find I can sometimes make it go away by deleting the action and re-creating it. But it is really frustrating and very buggy process.
It does sometimes feel like Microsoft spent so much effort renaming from Flow to Automate, that development and bug fixing of this stuff just went out the window.
I am experiencing the same issue. Flow is adding a parameter 'pInitId' to the input parameters when the stored procedure is selected. I wrote the stored procedure myself minutes before adding it to the flow, so I know the parameter was never a part of the stored procedure.
Hi Vivek, maybe the paramter plnitId was part if the stored procedure beforehand.
I have an issue with a stored procedure that was changed months ago. One of the parameters was no longer asked as Input as it was no longer needed.
Somehow Flow is still not aware of this change and forces me to supply a value when executing the stored procedure.
Even when I add this as a step to a complete new flow, somewhere in the big memory of Flow it still thinks that parameter should be supplied when running that stored procedure.
As it is no longer used, I just fill it with something meaningless (a dot or a zero), as long as the type is okay.
Thank you for your response.
Following is the stored procedure I am trying to run:
Drop table dtSupTbl; WITH Employee_CTE(employeenumber,displayname,supervisorId) AS ( SELECT employeenumber,displayname,supervisorId from [EmployeeQuaterlyReview].[dbo].[dtEmpMaster] where supervisorId=@inp UNION ALL SELECT e.employeenumber,e.displayname,e.supervisorId from [EmployeeQuaterlyReview].[dbo].[dtEmpMaster] e INNER JOIN Employee_CTE c ON e.supervisorId = c.employeenumber ) SELECT * into [dbo].[dtSupTbl] FROM Employee_CTE
In this @inp is the input provided through PowerApps.
I am not aware of what pInitId means. This is the first time I am dealing with Flows and Stored Procedure and I have very limited knowledge in this subject.
Thanks,
Vivek
Hey @imvivran
Michael E. Gernaey
497
Super User 2025 Season 1
David_MA
436
Super User 2025 Season 1
Riyaz_riz11
244
Super User 2025 Season 1