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

FixBoolJsonParseErrorInPrePostDeploymentScript.V2 #513

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

danyarmoski-medsol
Copy link

There is an issue with the current script where as of 3 days ago the code changed and there is Regex that is converting the value of Boolean to start with a capital letter. For example DevOpsFileEvent_properties_typeProperties_ignoreEmptyBlobs it was converting that to value True with a capital T which results in error ##[error] Conversion from JSON failed with error: Unexpected character encountered while parsing value: T. Path 'properties.typeProperties.ignoreEmptyBlobs', line 21, position 26. from Line: 680 ##[error]Conversion from JSON failed with error: Unexpected character encountered while parsing value: T. Path 'properties.typeProperties.ignoreEmptyBlobs', line 21, position 26. To fix this you add the .ToString().ToLower() to the end of line 475. Which will not convert boolean values to capital letters and makes the error go away.

There is an issue with the current script where as of 3 days ago the code changed and there is Regex that is converting the value of Boolean to start with a capital letter.  For example DevOpsFileEvent_properties_typeProperties_ignoreEmptyBlobs it was converting that to value True with a capital T which results in error ##[error] Conversion from JSON failed with error: Unexpected character encountered while parsing value: T. Path 'properties.typeProperties.ignoreEmptyBlobs', line 21, position 26. from Line: 680
##[error]Conversion from JSON failed with error: Unexpected character encountered while parsing value: T. Path 'properties.typeProperties.ignoreEmptyBlobs', line 21, position 26.
To fix this you add the .ToString().ToLower() to the end of line 475.  Which will not convert boolean values to capital letters and makes the error go away.
@danyarmoski-medsol
Copy link
Author

#510

@chez-charlie
Copy link

#sign-off

@danyarmoski-medsol
Copy link
Author

#sign-off

I am pretty sure that this is already addressed in the latest release of the script and nuget package for data factory automation

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 this pull request may close these issues.

2 participants