question

Lambert avatar image
0 Likes"
Lambert asked José Antonio MD commented

Error referencing resource via label in process flow

Hi,

When I reference a resource via token label as in the image below I get the following error:

"exception: Error: Invalid reference value for resource "PalletHandler" in process flow "ProcessFlow". Reference cannot be a number. Reference should be set to Numeric and the count field should be used instead."

1646995107772.png

However, the tokens contains the right reference in the label.

1646995212855.png

Could you please help me?

thank you in advance,

Lambert

FlexSim 22.1.0
acquire resource
1646995107772.png (54.1 KiB)
1646995212855.png (18.6 KiB)
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

José Antonio MD avatar image
0 Likes"
José Antonio MD answered José Antonio MD commented

Hello @Lambert

The problem is the reference. Reference may be a task executer, fixed resource, other 3D object or Gorup.

Use "sample" and create a direct reference to PalletHander1 in 3D view.

I hope I have been helpful.

· 2
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Lambert avatar image Lambert commented ·

Thanks Jose Antonio, sorry I was not clear.

I am trying to acquire a fixed resource that changes based on the label of a token.

when token.pallethandler = /PalletHandler1 --> acquire PalletHandler1

when token.pallethandler = /PalletHandler2 --> acquire PalletHandler2

could you help me on how to do this?


0 Likes 0 ·
José Antonio MD avatar image José Antonio MD Lambert commented ·

Hello @Lambert,


In this case your can use a Group or direct use 2 resources and acquire by case. See example: ReourceByCase.fsm

0 Likes 0 ·
reourcebycase.fsm (42.5 KiB)
Roi Sánchez avatar image
0 Likes"
Roi Sánchez answered

Hi @Lambert, I think the reference of your resource is not correct. I guess you should have it referenced to the Pallet Handler 3d Object.

1646998437035.png


Take a look at the attached model:

Resources reference.fsm


5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.