Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PrePostDeployentv2 Script Error #675

Open
sandman153 opened this issue Jun 24, 2024 · 4 comments
Open

PrePostDeployentv2 Script Error #675

sandman153 opened this issue Jun 24, 2024 · 4 comments

Comments

@sandman153
Copy link

sandman153 commented Jun 24, 2024

Hi

I am using the Prepost deployment script however I am getting the following error

The script works fine with the predeployment set to true. It is just the post deployment that is failing.

Index operation failed; the array index evaluated to null.
PowerShell exited with code '1'.

I believe this is happening when Pushing Pipelines to a list

Any help would be much appreciated as I am looking to implement this at a client site.

I am using the Version 2 script

Kind regards
Sarath

@sandman153
Copy link
Author

sandman153 commented Jun 24, 2024

I am using the template with the following parameters

-armTemplate "$(System.DefaultWorkingDirectory)/$(templateLocation)\ARMTemplateForFactory.json" -ResourceGroupName $(resourceGroup) -DataFactoryName $(adfName) -predeployment $false -deleteDeployment $true

@sandman153 sandman153 changed the title PrePostDeployentv1.2 Script Error PrePostDeployentv2 Script Error Jun 24, 2024
@Liszet
Copy link

Liszet commented Jul 4, 2024

I am facing the same issue with both the v2 and v1 script.

@sandman153
Copy link
Author

Hi @Liszet

I have managed to narrow the problem. This is happening with certain pipelines only. I modified my script to filter these pipelines out, and it works.

I do not understand why a pipeline name would cause this problem.

@Liszet
Copy link

Liszet commented Jul 5, 2024

@sandman153 I have found the fix, and documented it here, #679 (comment)
If you further investigate these pipelines, do you face the same problems i have identified?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants