cset
cset copied to clipboard
Custom Modules and Importing Modules - Not Working
I can not create custom modules in the latest enterprise version 11.2 When I click on Module builder I cannot add my own questions. Creating my own questions:
- Structured my question.
- Completed all required fields.
- When I click on the add Question button absolutely nothing happens. No logs in SQL or in IIS that provides any info regarding this.
I even tried importing a new module using the Import New Module set. Steps taken:
- exported existing module.
- Made changes to the exported module to match what I wanted in terms of questions.
- Saved Json file with new file name.
- Pasted file in "drop file here" block.
- Added a name and shortname
- clicked on import. Result = "The module failed to import because an error occurred in processing." I have no errors in my Json format everything was cleared.
No logs to view or any indication as to what is causing the error.
Please could someone assist.
I changed all my permission still nothing works If I try and create a module using a json file the module is created however none of the questions appear that was added in the new module. Your help will be appreciated to be able to create custom questions.
Thank you for opening that case. I have the same issue. I tried with elevated privileges, but it's still the same. Nothing happens when you click the "Add new question" button.
Same issue with v11.0.1.0. Nothing to add that might help, but I'm also interested in someone's assist.
I'm facing the same problem.
Would be great if someone responded with a solution to this.
@csetbuild @h-m-f-t WoW no response !!
I have same issue with 10.3.0.0 - and i cant export my own module, the exported JSON file almost empty, the questions and the structure missing.
For as far as I can see, when trying to add a question the following occurs:
A call is triggered to http://<hostname>:5001/api/builder/AddCustomQuestion
This triggers the following error:
Access to XMLHttpRequest at 'http://<hostname>:5001/api/builder/AddCustomQuestion'
from origin 'http://<hostname>' has been blocked by CORS policy:
No 'Access-Control-Allow-Origin' header is present on the requested resource
Strange thing is when I set the following header in IIS: Access-Control-Allow-Origin: *
I get the error that there are duplicate entries for Access-Control-Allow-Origin.
Access to XMLHttpRequest at 'http://<hostname>:5001/api/contacts/allroles' from origin 'http://<hostname>'
has been blocked by CORS policy: Response to preflight request doesn't pass access control check:
The 'Access-Control-Allow-Origin' header contains multiple values '*, *', but only one is allowed.
In the above error code all api calls fail because of the configured duplicate Access-Control-Allow-Origin:*
I hope this helps any ASP savvy coder fix the issue.
This what Im getting with this issue related to adding questions or json file
@hams3 I believe I was able to identify the custom questions issue - it looks like the question ID being generated server side is too low and falls in with some already generated questions. Here is a relevant error code:
This appears to increase sequentially, so if you spam the button a bunch to add a new question, you are eventually able to create custom questions. Once you are able to create one, you can create as many as you want.
@SoarinFerret Thank you for sharing this! It works for me after spamming the button Add new question.
Hi everyone, For the record, I don't have these bugs anymore using the version 11.5.0.0. Custom Modules and Importing Modules seem to work.