Azure / Azure/Azure-DataFactory

Invalid string in a JSON file breaks the ADF UI

Open
#533 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
PowerShell
Stars
529
Forks
623
PR merge metrics
No merged PRs in 30d

Description

## Bug Description
When resolving a merge conflict in the company's repository, an accidentally invalid string was inserted and pushed to the main branch. Then into the ADF UI, all the Global Parameters disappear. When trying to run any of our pipelines, a validation error occurs, that global parameters can not be found.

## To Reproduce
Create a pipeline, which receives as an input Global Parameter. Then create the Global Parameter and commit it into the repo. Next into the JSON file, where Global Parameter is located insert the following string:

![image](https://user-images.githubusercontent.com/58025467/217829973-7ceb5bd5-0962-4e8d-9369-07b450d8bfc0.png)

and commit it to the main branch.
As a result in the UI all Global Parameters disappear:

![image (12)](https://user-images.githubusercontent.com/58025467/217830752-fbb43c1b-eedb-4803-9b9d-8620471aade2.png)

## Expected behavior
An error could be displayed in the UI, that something went wrong with the Global Parameters.
Or logic that cleans invalid JSON strings.
Overall anything than the empty UI page will be better.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.