Biml / Mist cryptic errors demystified

Error:: BimlScript expected X properties, but Y were supplied Provide required properties

The required attribute on parameter object does not seem to work when using CallBimlScript
example: 
<#@ property name="parameterValue" type="System.String" required="False"#>

Workaround: Specify empty/null parameter in CallBimlScript then use string.IsNullOrEmpty(parameterValue) in your callee script.


Error

When building biml script i get
"Error:Node: Varigence.Biml.SsisEmitter.Model.Dataflow.Input: Expression  contains syntax errors" 
No error lines or task names are shown.

Cause  / Solution

This message actually means that one of your tasks have an empty ssis expression (Note the double space between "Expression  contains". Examples could be columns inside a . Check recent added tasks for missing expressions.


Error

Cannot build biml file in mist that has an ssis expression containing double ampersands "&&"

Cause / Solution

The xml format bilm is using cannot handle ampersands (&) since they are special xml characters. Replace them with &amp; like below:

Does not work:
!isnull(DestinationKey) && (DT_STR,40,1252)DataRowHash == (DT_STR,40,1252)DestinationDataRowHash

Working:
!isnull(DestinationKey) &amp;&amp; (DT_STR,40,1252)DataRowHash == (DT_STR,40,1252)DestinationDataRowHash


Comments

Popular posts from this blog

Constructing nested array structs in BigQuery

How to decrypt stored password from SSMS registered servers

Cause for Parameter is incorrect 0x80070057 error in ssis