# Unable to locate the error message source

**URL:** <https://scilab.discourse.group/t/unable-to-locate-the-error-message-source/766>\
**Category:** Xcos\
**Created:** [December 14, 2024, 4:00pm UTC](https://scilab.discourse.group/t/unable-to-locate-the-error-message-source/766 "2024-12-14T16:00:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pion3k](https://avatars.discourse-cdn.com/v4/letter/p/94ad74/32.png) [@pion3k](https://scilab.discourse.group/u/pion3k)\
**Post date:** [December 14, 2024, 4:00pm UTC](https://scilab.discourse.group/t/unable-to-locate-the-error-message-source/766/1 "2024-12-14T16:00:36Z")

</div>

Hi,

I am on Scilab 2025.0.0. I have an xcos diagram which uses a bunch of scifunc\_block\_m (with my user-defined functions). When I run the program I get the following error:

```auto
 "setdiff: Wrong value for input argument #3: Must be in {1,2,"r","c","*"}."

```

I don’t use `setdiff` in my code but I believe it is used internally by some other blocks (such as DEMUX, etc). Is there any other way to tell which part of the diagram causes the issue?

BR

---

<div class="post-metadata">

**Author:** ![davidcl](https://yyz2.discourse-cdn.com/free1/user_avatar/scilab.discourse.group/davidcl/32/1029_2.png) [@davidcl](https://scilab.discourse.group/u/davidcl)\
**Post date:** [December 16, 2024, 1:31pm UTC](https://scilab.discourse.group/t/unable-to-locate-the-error-message-source/766/2 "2024-12-16T13:31:26Z")

</div>

Hi,

The `setdiff()` does not look like it is called inside `scifunc_block_m` functions. Is it on your user code?

To help, please post your files.

Regards
