cset icon indicating copy to clipboard operation
cset copied to clipboard

Custom Modules and Importing Modules - Not Working

Open Skullack opened this issue 1 year ago • 11 comments

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:

  1. Structured my question.
  2. Completed all required fields.
  3. 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:

  1. exported existing module.
  2. Made changes to the exported module to match what I wanted in terms of questions.
  3. Saved Json file with new file name.
  4. Pasted file in "drop file here" block.
  5. Added a name and shortname
  6. 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.

Skullack avatar Sep 23 '22 14:09 Skullack

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.

Skullack avatar Sep 23 '22 22:09 Skullack

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.

Aderdrummer avatar Sep 27 '22 06:09 Aderdrummer

I'm facing the same problem.

marcelogianetti avatar Sep 27 '22 18:09 marcelogianetti

Would be great if someone responded with a solution to this.

GerhardMohr avatar Sep 29 '22 22:09 GerhardMohr

@csetbuild @h-m-f-t WoW no response !!

GerhardMohr avatar Oct 31 '22 17:10 GerhardMohr

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.

securenetworx-shark avatar Nov 18 '22 09:11 securenetworx-shark

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.

Acmosa avatar Jan 06 '23 14:01 Acmosa

This what Im getting with this issue related to adding questions or json file image image

hams3 avatar Jan 10 '23 18:01 hams3

@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: image

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 avatar Feb 19 '23 01:02 SoarinFerret

@SoarinFerret Thank you for sharing this! It works for me after spamming the button Add new question.

Aderdrummer avatar Feb 19 '23 14:02 Aderdrummer

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.

Aderdrummer avatar Apr 11 '23 14:04 Aderdrummer