Reading data from Excel in multiplayer mode

Dear Will,

I am writing to ask for help. We noticed that we cannot read our Excel data (after generating the model) inside Forio. When we try to add {{Time}} it does not show anything (we added “Time” as mentioned on webinars). Surprisingly, in single player mode everything works fine. When we check console, it shows several errors, including: No world found in run. Make sure you’re using EpicenterJS version > 2.7.

Could you please help in solving this issue?

Thank you.

Hi Akbartus,

Unfortunately, you can’t preview data when viewing multiplayer sims in the interface builder. This is because the data may be by role, and the builder doesn’t know which role to display.

To test, open an incognito window (or in different chrome profile). Create a group, a user in the group, and assign a role. Then log in as this user. You should then be able to see the data.

WILL

Dear Will,

I tried as suggested and it still shows error. This time it does not see user, although I added and assigned a role.

One small addition:

When I try to access user panel through “Impersonate” in groups panel, it works fine.
Could you help me clarify why this behavior is observed?

Thank you beforehand for your kind reply.

Hi Akbar,

I can’t tell for sure-- looking at your account it appears you deleted the earlier project and made a new one?

The error indicates that it can’t find the user linked to the world or the run. Did you delete or change the user assignment? Or perhaps the user is not assigned correctly to the world and role.

The fact that impersonating the user makes it work is promising. If you start in an incognito window and log in with that user, does it work?

Dear Will,

Thank you for your kind reply. Yes, I did as suggested but still receive that error and not able to show extracted data from Excel.

Dear Akbar,

We have been able to identify and solve the problem.

There was a bug in the library (epicenter.js) which retrieved an incorrect user key. Specifically, it retrieved a user key for the v3 API when it should have retrieved a user key for the v2 APIs. For older users these keys are the same. (this made it a bit difficult to track down the problem). But for newer APIs this needs to be converted in the Forio libraries.

Specifically, the fix is included in the login code for version 2.13.5 of the Epicenter.js library.

You can fix this in either of two ways.

(1) Create a new sim from scratch, using the interface builder. This will correctly use the epicenter js library version 2.13.5.

(2) or Edit the HTML for the interface files directly. Specifically,

  • Go to the interface tab
  • Edit these files: login.html, index.html, facilitator.html
  • Find any javascript or css file that has “2.13.0” in the URL and change that to “2.13.5”. The most important is the script tag for login.js in login.html.

Our apologies for the difficulty – please let us know via the forum if we can of further help!

Best regards,

WILL

Dear Will,

Thank you and programmers team for your strong support. I followed your first advice and now everything works perfectly.

Have a great day.

With kind regards,
Akbar