Unhandled script exception:
Invalid Product ID 258.
EXCEPTION_CLASS_SCRIPT_OUT_OF_RANGE
SCRIPT_CMD_CALL
Product 258 corresponds to Project Accounting. Suffice to say, there isn't any validation in place to determine if the Project Accounting dictionary is present, before attempting to display the invoice. The workaround, of course, is to install Project Accounting even if you don't need it, until a fix is in place from Microsoft.
This issue is present in Microsoft Dynamics GP 2015 R2 YE (14.00.1016) and Microsoft Dynamics GP 2016 RTM (16.00.0404). I have not tested GP 2016 R2, but see no specific reason to believe this is been fixed, given the fact that this condition only occurs if Project Accounting is not installed.
Until next post!
MG.-
Mariano Gomez, MVP
7 comments:
It appears the workaround for this issue is to turn project accounting on in registration and then to turn if back off. Error then goes away when drilling into invoices.
Thanks, Mariano. Exactly the information I was looking for. You rock, Sir!
Best,
Lisa Williams
Paul,
Thanks for the update! Will keep this one in the toolbox :-)
MG.-
I can confirm this is still a problem in GP 2016 R2.
I can confirm the problem still exists on GP2016R2 and the workaround still resolves the issue.
There is nothing that needs to be fixed around this, typically what it is happening is that PA is marked in the registration window, but you do not have PA installed. If PA is NOT installed then UNMARK it in the registration window.
Thanks
Terry Heley
Microsoft
Terry,
This IS a problem that could be handled better with a simple line of code that checks if the PA dictionary is installed:
if (Launch_GetProdPosition(258) > 0) and ('Module Registered'[5] of globals) then
{ your PA call here}
end if;
MG.-
Mariano Gomez, MVP
Post a Comment