Page 1 of 1

Plugin Purchase Order Generation Reorder Method - error

PostPosted: Tue May 05, 2015 3:47 pm
by neil.interactit
Hi guys,

This error is occurring on site, but if I take a database copy and load it up on my dev box everything is fine ...

image001.png
image001.png (14.5 KiB) Viewed 2937 times


There is obviously a path issue, but the error seems to be upon compile - so is the fix likely to be within the plugin code, or changing something in the onsite environment?

Cheers,
Neil.

Re: Plugin Purchase Order Generation Reorder Method - error  Topic is solved

PostPosted: Tue May 05, 2015 4:06 pm
by Scott.Pearce
Jiwa generates a path into which the plugin will be compiled. This path is generated based on attributes like the name of the database, the version of Jiwa, and the Jiwa username of whoever is logging in. This allows compiled plugins to co-exist peacefully on a multi-user system, where each user may be accessing multiple databases, each with plugins having the same name.

To illustrate, when I log in to a demo database on my local machine, load up a plugin, and press the compile button, a .DLL is spat out at:

"C:\ProgramData\Jiwa Financials\Jiwa 7\7.0.117\localhost\JiwaDemo\Plugins\admin\Compile\Purchase Order Generation Reorder Method - Replenish to Minimum\"

The name of the .DLL is "Purchase Order Generation Reorder Method - Replenish to Minimum.dll". So, the full path ends up as:

Code: Select all
C:\ProgramData\Jiwa Financials\Jiwa 7\7.0.117\localhost\JiwaDemo\Plugins\admin\Compile\Purchase Order Generation Reorder Method - Replenish to Minimum\Purchase Order Generation Reorder Method - Replenish to Minimum.dll


That's 218 characters already. Use a longer machine name (as opposed to "localhost" in the example above), and login to Jiwa as a user with a username longer than "admin" (again, as used in the example above), and we will soon find ourselves hitting the 260 char limit imposed by the OS!

In your case, I would recommend simply renaming the plugin. "Purchase Order Generation Reorder Method - Replenish to Minimum" is quite long (and yes, I realise we named it!). Maybe rename it to "PO Generation Reorder Method - Replenish to Min".

Re: Plugin Purchase Order Generation Reorder Method - error

PostPosted: Tue May 05, 2015 4:31 pm
by neil.interactit
Ah, the simplest of fixes. Thanks Scott!