Hi,
I'm trying to create new resources in SRM, and it's failing with the following error
Function resource WP-MOR-Q Channel5 could not be initialized: MaxAmountOfInstancesReached. (87c3f640-1e81-4f27-9b35-5d34658d8fc3)
Is this a configurable limit, if so, where is it set?
Thanks
Chris
Hi Chris,
The max amount of instances of a function resource is a limit per link element (*). If the function has an entrypoint table configured, the max amount of function resources you can link to the same link element will be equal to the amount of rows in the entrypoint table. If the function does not have an entrypoint table configured, the max amount of function resources you can link to the same link element will be equal to the 'MaxInstances' property in the function xml.
Depending on if your function uses an entrypoint table or not, you will either need to add rows in the entrypoint table of your link element, or increase the 'MaxInstances' property in the function.xml.
Example function.xml with an entrypoint table, here table with id '5000':
<Functions xmlns="http://www.skyline.be/config/functions">
...
<Function id="..." name="ExampleFunction" profile="...">
<Parameters>
<Parameter id="1"/>
<Parameter id="101"/>
</Parameters><EntryPoints>
<EntryPoint pid="5000"/>
</EntryPoints>
</Function>
</Functions>
Example function.xml without an entrypoint table:
<Functions xmlns="http://www.skyline.be/config/functions">
...
<Function id="..." name="ExampleFunction" profile="..." maxInstances ="100">
<Parameters>
<Parameter id="1"/>
<Parameter id="101"/>
</Parameters></Function>
</Functions>
(*) The link element is the parent element of the function DVE, in cube it is configured with the 'link element' field, when using scripting this is the 'MainDVEDmaID' and 'MainDVEElementID' property on a FunctionResource:
Note: if you have both an entrypoint table configured the 'MaxInstances' property is ignored, so you cannot override the max amount this way.
Hope this helps.
Thanks very much!
We have 72 instances in that pool