Exception when writing MoleRatio AC Packing

I get a server error 
Server threw an exception (writing property "MoleRatio at pack.pl line ...) 
when setting MoleRatio when trying to script the AC packing function in Perl. I don't get an error when running the same settings with the software itself and there are no complaints when debugging the perl script inside Materials Studio. I need to be able to script the packing because I want to create a dataset. Does anyone know anything that may help with this?

Answers 3
TG
TG 2026-03-26

Dear Marcus,

Thanks for writing in the community.

Can you confirm that as a starting point, you used the following?
Modules > Amorphous Cell > set composition under Composition in setup tab > downward arrow to the right of Run > Copy Script

This will allow you to start from the script that is actually being run when using the user interface.

Hope it helps,
Best regards,
Théophile.

CM
CM 2026-03-26

*  Which Materials Studio version is this?
* On which platform exactly do you observe the problem?

Please do a run with Retain Server files. This is on the scripting toolbar under Run on Server > Script Job More.
Please zip the complete JobID folder (from the Job Explorer)  on the Gateway where the job is running and post the resulting .zip file.
 

CM
CM 2026-03-26

This is not the intended way to run MaterialsScript from the command line.
Please search the Materials Studio help for materialsscript AND standalone to find the  "Running MaterialsScript in standalone mode" section of the help.

I suggest t run it on My Computer using the local Gateway.