question

Steven Chen avatar image
0 Likes"
Steven Chen asked Matthew Gillespie answered

Issue Report :Push Task Sequence

Hello,

location:Use Transport >> Use List >> Push to Task Sequence List.

I found an issue. It did an incorrect List push, so it displayed an error.


Error Report

Flexscript Error MODEL:/Queue1>variables/transportdispatcher Line 21 Could not resolve push overload based on passed parameters

001.fsm

FlexSim 20.1.2
flexsim 20.1.2push task sequence
001.fsm (28.0 KiB)
image001.png (11.1 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.

1 Answer

·
Matthew Gillespie avatar image
1 Like"
Matthew Gillespie answered

Thanks for pointing this out. We'll update that picklist for the next bug fix release so that it doesn't throw exceptions.

You fix the error in your model by adding .as(Variant) to the task sequence, so change this

List(listName).push(ts, 0);

to this

List(listName).push(ts.as(Variant), 0);

Here's your model with that fix

001_Fixed.fsm


001-fixed.fsm (27.7 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.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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