Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Deploying to the CloudHub fails with the error in the YAML

I am trying to deploy the mulesoft application in to the DEV CloudHub using the Azure Devops CI/CD Pipeline. But when the application getting deployed in to the Cloud Hub it throws error like

ConfigurationPropertiesException: YAML configuration properties only supports string values, make sure to wrap the value with \" so you force the value to be an string. Offending property is sharepoint.auth with value null"}

Below is my DEV yaml file

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

# Sharepoint
sharepoint:
  maxCouncurrency : "2"
  siteUrl: "https://example.com/sites/D365Admin"
  auth:
##username: ""
##password: ""
  listener:
    path: "/sites/D365Admin/NP/SF"
    polling:
      frequency: "60" # In seconds
      startDelay: "30" # In seconds
  archive:
    path: "/sites/D365Admin/NP/SF-Archive"

I commented out the username and password as it is supplied in the Pipeline Variable. But I am not sure why am I getting the error on the sharepoint.auth Any suggestion what I am missing here.

>Solution :

The error message seems pretty clear. The property sharepoint.auth doesn’t has any value, it has a value of null, which is not allowed. Only strings are allowed and null is not a string. Try commenting it or assigning it an empty string (""). If you are not using it for anything just comment it.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading