# \[AMPL 25086\] Error at \_cmdno 26 executing "solve" command

**URL:** https://discuss.ampl.com/t/ampl-25086-error-at-cmdno-26-executing-solve-command/2219
**Category:** Google Group Mirror
**Created:** [January 30, 2026, 8:11pm UTC](https://discuss.ampl.com/t/ampl-25086-error-at-cmdno-26-executing-solve-command/2219 "2026-01-30T20:11:59Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Vivi](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.ampl.com/vivi/32/156_2.png) [@Vivi](https://discuss.ampl.com/u/Vivi)
#### Post date: [January 30, 2026, 8:11pm UTC](https://discuss.ampl.com/t/ampl-25086-error-at-cmdno-26-executing-solve-command/2219/1 "2026-01-30T20:11:59Z")

</div>

Dear AMPL team,

I am reading my data from spreadsheet and I have a set of only one member and a parameter related to this set. The Excel file is attached. And in the .run file to read the spreadsheet I have thoses statements:

table EPSI\_tab IN “amplxl” “EPSI\_VAL.xlsx” “epsi”:  
[EPSI], EP\_VAL;

read table EPSI\_tab;

And I have had the following error message:

«error processing param EP\_VAL[…]:  
no data for set EPSI  
ampl: »

Thank in advance for your help.

> **(attachments)**
>
> [EPSI\_VAL.xlsx](https://discuss.ampl.com/uploads/short-url/biJKeyE0SOpW4NOGHRgmtGx1tqI.xlsx) (9.85 KB)

---

<div class="post-metadata">

### Author: ![4er](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.ampl.com/4er/32/530_2.png) [@4er](https://discuss.ampl.com/u/4er)
#### Post date: [January 31, 2026, 7:20pm UTC](https://discuss.ampl.com/t/ampl-25086-error-at-cmdno-26-executing-solve-command/2219/2 "2026-01-31T19:20:09Z")

</div>

When the set is described as `[EPSI]` in the `table` statement, `read table EPSI_tab` assumes that the members of `EPSI` are known, and only the values for `EP_VAL` will be read from the spreadsheet.

To tell the `read table` statement to read _both_ members of set `EPSI` and values of param `EP_VAL` from the spreadsheet, add `EPSI <-` before `[EPSI]`:

```auto
table EPSI_tab IN "amplxl" "EPSI_VAL.xlsx" "epsi":
   EPSI <- [EPSI], EP_VAL;

```

---

<div class="post-metadata">

### Author: ![AMPL\_Google\_Group1](https://avatars.discourse-cdn.com/v4/letter/a/a87d85/32.png) [@AMPL\_Google\_Group1](https://discuss.ampl.com/u/AMPL_Google_Group1)
#### Post date: [January 31, 2026, 7:21pm UTC](https://discuss.ampl.com/t/ampl-25086-error-at-cmdno-26-executing-solve-command/2219/3 "2026-01-31T19:21:06Z")

</div>

Your question has been moved to our new user forum at [discuss.ampl.com](http://discuss.ampl.com), and a response has been posted there. To see the response, use this link:

[https://discuss.ampl.com/t/ampl-25086-error-at-cmdno-26-executing-solve-command/2219](https://discuss.ampl.com/t/ampl-25086-error-at-cmdno-26-executing-solve-command/2219)

To reply, click the red “Reply” button that follows the response. (Do not send an email reply to this message.)

---

<div class="post-metadata">

### Author: ![Vivi](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.ampl.com/vivi/32/156_2.png) [@Vivi](https://discuss.ampl.com/u/Vivi)
#### Post date: [February 2, 2026, 2:41pm UTC](https://discuss.ampl.com/t/ampl-25086-error-at-cmdno-26-executing-solve-command/2219/4 "2026-02-02T14:41:07Z")

</div>

Many thanks for your help! I highly appreciate it.
