MongoDB Module Installed but Not Accessible in Scripting (Ignition 8.1.45)

Hello Ignition Community,

I’m having an issue with the MongoDB module in Ignition and would appreciate any help or guidance.

Details:
Ignition Version: 8.1.45 (b2025010709)

MongoDB Module Version: MongoDB Connector 1.1.45 (b2025010709)

Issue: The MongoDB module is installed and running (visible in the Config > Modules section), but it is not accessible in scripting. When I check dir(system), the MongoDB module does not appear in the list.

Steps Taken:
Verified that the module is installed in the correct folder:

Copy
C:\Program Files\Inductive Automation\Ignition\user-lib\modules
Confirmed that the module is active and running in the Ignition Gateway.

Restarted the Ignition Gateway after installation.

Checked the logs for any errors related to the MongoDB module, but no relevant errors were found.

Tried accessing the module in scripting using system.mongodb, but it is not available.

Questions:
Are there any additional steps or configurations required to make the MongoDB module accessible in scripting?

Could this be a compatibility issue between the MongoDB module and Ignition 8.1.45?

Has anyone else encountered this issue, and if so, how was it resolved?

Any help or suggestions would be greatly appreciated!

Thank you

The MongoDB scripting functions are only available in Gateway and Perspective scopes.

Thank you Kevin
I am still encountering an error regarding the availability of the MongoDB module.

If that message appeared in the output console it's because you invoked the script from the Client/Designer still.

Just because you wrote the code in a project script doesn't mean it executes on the Gateway - it executes where you call it from.

thank you Kevin .
I'm not familiar with Ignition i near 17 years work with siemens.
I try to learn .