Trying to execute SSIS package via script.
Declare @execution_id bigint
EXEC [SSISDB].[catalog].[create_execution]
@package_name = N'SF_Appointment.dtsx'
,@execution_id = @execution_id OUTPUT
,@folder_name = N'Packages'
,@project_name = N'SF_tables'
,@use32bitruntime = False
,@reference_id = Null
,@runinscaleout = False
I think it may be the folder name because I am using the folder where the package is located and not where the project is located?
The error I get is
Msg 27146, Level 16, State 1, Procedure SSISDB.catalog.create_execution, Line 201 [Batch Start Line 0] Cannot access the package or the package does not exist. Verify that the package exists and that the user has permissions to it.
I have the highest levels of access, which is why I think it is the folder and not my permissions. If it is my permissions, I'd have see what it could be because I have system admin access... I tried searching online but it all goes back to my permissions but I have the ones they talk about. This is why I say it may be the folder but even that gives me the same error.