# Issue with SCORM file and triggering with a Variable

**URL:** <https://community.evolveauthoring.com/t/issue-with-scorm-file-and-triggering-with-a-variable/3192>\
**Category:** General Help\
**Tags:** coursecompletion\
**Created:** [September 30, 2024, 8:25am UTC](https://community.evolveauthoring.com/t/issue-with-scorm-file-and-triggering-with-a-variable/3192 "2024-09-30T08:25:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joel](https://avatars.discourse-cdn.com/v4/letter/j/b9bd4f/32.png) [@Joel](https://community.evolveauthoring.com/u/Joel)\
**Post date:** [September 30, 2024, 8:25am UTC](https://community.evolveauthoring.com/t/issue-with-scorm-file-and-triggering-with-a-variable/3192/1 "2024-09-30T08:25:44Z")

</div>

We are having an issue with a SCORM file which is not registering completed in our platform. We have done some testing and even though our SCORM was tested in SCORM Cloud. We have found the attached error but can’t seem to find the issue/understand the coding?

Can anyone help explain what our issue is?

 ![Error 1](https://canada1.discourse-cdn.com/flex031/uploads/evolveauthoring/original/2X/2/288b56d28c111d68ebe2840e22023c187946b205.png)  
 ![Error](https://canada1.discourse-cdn.com/flex031/uploads/evolveauthoring/original/2X/4/4e8340a4f7590f88c3e69dc14ee8dfac2fd6b14e.jpeg)

---

<div class="post-metadata">

**Author:** ![Matt\_Leathes](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.evolveauthoring.com/matt_leathes/32/586_2.png) [@Matt\_Leathes](https://community.evolveauthoring.com/u/Matt_Leathes)\
**Post date:** [October 1, 2024, 11:42am UTC](https://community.evolveauthoring.com/t/issue-with-scorm-file-and-triggering-with-a-variable/3192/2 "2024-10-01T11:42:15Z")

</div>

Well that’s very odd. `100` should be a perfectly valid value to set for `cmi.score.max`.

The only thing I can think is that it doesn’t like that the value is being passed as a number rather than a string i.e. Evolve is sending this:

```js
SetValue('cmi.score.max', 100);

```

But what the LMS actually wants is this:

```js
SetValue('cmi.score.max', '100');

```

Which would be _incredibly_ picky - particularly as it seems to be fine with `cmi.score.raw`, and `cmi.score.min` being passed as numbers - those fields have the exact same data type and requirements in the SCORM spec as `cmi.score.max`…

Given that it works fine on SCORM Cloud could you contact your LMS provider to check this with them? It may well be a bug on their side. If not and they do believe it’s a valid error we’d need to know why they think it is.

---

<div class="post-metadata">

**Author:** ![Matt\_Leathes](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.evolveauthoring.com/matt_leathes/32/586_2.png) [@Matt\_Leathes](https://community.evolveauthoring.com/u/Matt_Leathes)\
**Post date:** [October 1, 2024, 11:48am UTC](https://community.evolveauthoring.com/t/issue-with-scorm-file-and-triggering-with-a-variable/3192/3 "2024-10-01T11:48:44Z")

</div>

If this is the only error you are seeing then, as a workaround, you could publish your course from Evolve via the Advanced settings where you can toggle the setting ‘Show SCORM Errors’ off.
