Skip to main content
New Participant
August 22, 2016
Question

Captivate 9 exporting to html & JSON files

  • August 22, 2016
  • 4 replies
  • 6476 views

We have just updated our captivate 9 and find the lessons now do not work when we publish them.  before this update Captivate would put all the assets as .png into the "dr" directory; these are now in replaced with a few .JSON files; can i stop this happening and leave them as source images? 

This topic has been closed for replies.

4 replies

New Participant
April 28, 2017

Hello everyone. Just wondering if anyone has got this to work on a SharePoint 2013 enterprise installation, and if so could you share the steps and settings?

Thanks in advance!

S_Bulash
New Participant
September 14, 2017

We are using SharePoint Learning KIT in SharePoint and have exactly the same issue.

SharePoint has it's own mechanism how to work with .json files and those files  (in the "dr" directory) are not recognized as valid json script files and declined to be processed by SharePoint (SharePoint just says in logs: "Error=The file '/_layouts/15/sharepointlearningkit/frameset/Content.aspx/0/a640fee9-8769-44dd-b414-6786533f2cb6/dr/imgmd.json' does not exist.")

The solution is to disable SharePoint JSONHandlerFactory in the location from where .json files are called.

In our case this was location of the SharePoint Learning KIT (C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\TEMPLATE\LAYOUTS\SharePointLearningKit)

To disable SharePoint JSONHandlerFactory copy and paste below to th web.config file of your SharPoint web application before the latest  </configuration> tag:

<location path="_layouts/15/SharePointLearningKit">

<system.webServer>

  <handlers>

<remove name="JSONHandlerFactory" />

  </handlers>

</system.webServer>

</location>

P.S. Abobe, I do not see any reasons keep files named .json.... After renaming them to .son and fixing all paths everything works fine.

TonyaMemphis
Participating Frequently
March 3, 2017

Update - added the JSON mime type on our IIS server and everything now plays fine. Thanks for the tip!

TLCMediaDesign
Inspiring
September 30, 2016

We've had an issue with one LMS vendor not getting mime types added to the server.

In lieu of the mime type not being present you can do the following.

Change the name of the json files to a .js extension.

Open the index.html file and do the same. Find the .json extensions and replace with .js.

The file will work just fine.

amyr49322010
Participating Frequently
January 28, 2017

TLCMediaDesign, thank you for this great fix!  It has solved my issue almost 100%, but there is one small hiccup outstanding.  the training plays flawlessly within the LMS, but when it gets to the last slide, which is a quiz question, the slide is almost blank (basically only shows the buttons to select an answer, but no other text or images are there).  

It works fine from my desktop, and server location, just not once its in the LMS.

Did you run into this issue as well? Any suggestions?

RodWard
Community Expert
January 30, 2017

Hi RodWard!  Thanks for your response.  you rsponded to a seperate posr as well so I'll answer both questions in this one.

1) I doublechecked my project, and confirmed that I have the quiz slide, then a results slide, and then a blank slide.  When I play the training, it stops on the quiz slide which looks almost blank, be I can't move forward from there. 

2). To this point, the developer I'm working with has insisted that we can accept .json files, however based on the testing and the fact that most of the training worked once I changed the file types to .js - it tells me we need to double check that.

Here is an additional question that perhaps will give a workaround.  IF I remove the quiz althogether, and keep the .js file in the project, I'm wondering if the learner would still get credit for completing the course.  I don't really need a quiz, as it's just there for confirmation that they completed it. What do you think?

Thank you!


The JSON files are actually required for delivering lots of images in a typical project and these are not necessarily only in the quiz.  So if the issue is due to your server not being set up to enable the JSON mimetype then taking out the quiz isn't necessarily going to fix the issue.

If you want to check whether the issue is something about your server, just upload the same SCORM package to SCORM Cloud and see if it works from there.

BDuckWorks
Inspiring
August 25, 2016

This functional change is part of the update, so you can't retrograde to the earlier version.

The fix is to ask you webserver admin to configure a MIME type to support the JSON files.