How to reference scriptcomponent multiple times in same package?

I found one blog that said I should add a variable to the ScriptComponentProject Name, so I tried:

<ScriptComponentProject Name="SC_LookupDimRange_<#=ScriptCounter#>" >

And I declared the variable in the environment file which is tier= 1 while ScriptProject.biml is tier= 2 However it wont compile, complaining that it doesn't know what the variable is in that context. Can anybody help?

0

Comments

2 comments
  • Can you either post a minimal reproduction case or send one to support@varigence.com ?

    0
    Comment actions Permalink
  • I have a working solution, big shout out to Brian Bonk for the assist. The working solution is to put each scriptcomponent into a separate biml file. Then simply use it doing:

    <ScriptComponentTransformation Name="<Any unique name>" >
    <#@ include file = "SC_Lookup"#>
    </ScriptComponentTransformation>
    0
    Comment actions Permalink

Please sign in to leave a comment.