{tocify} $title={Table of Contents}
Issue
The issue is related to deployment, where I am deploying azure services using yaml files.
In the yaml file it has a dedicated deployment job for each azure service.
And when I tried to run the pipeline , it gave me the below error
"Mapping values are not allowed in this context"
Why it happened
Below is snap of definition in yaml file
YAML requires a specific indentation and spacing to work . And it's not like JSON, where it ignores rather it will stop you and tell you to follow the rules of indentation and space etc.
That's what happened here
What to do
To fix the issue, the rules has to be followed i.e. correct the indentation.
Did the correction and services were happily deployed.
If you have questions or suggestions, feel free to do in comments section below !!!
Do share if you find this helpful .......
Knowledge Sharing is Caring !!!!!!
Learn More about some more Azure Data Factory errors
- Cannot find the object "xxx" because it does not exist or you do not have permissions.
- The function 'length' expects its parameter to be an array or a string. The provided value is of type 'Object'.
- ErrorCode=UserErrorInvalidColumnMappingColumnCountMismatch,Message=The column count in column mappings is more than the count in source/sink table.
- ErrorCode=UserErrorInvalidColumnMappingColumnNotFound,Column 'xxx' specified in column mapping cannot be found in source data.
- The path 'xxx' specified in the add operation already exists. Please specify a new path
- Cannot create Sql Source. Error: The value of the property 'Value' is invalid for the stored procedure parameter 'XXX'
- Cannot connect to SQL Database:'XXX' . Verify that the instance name is correct
- Cannot open server 'xxx' requested by the login. Client with IP address 'x.x.x.x' is not allowed to access the server
- Operation on target Copy data failed: Failure happened on 'Source' side