Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics GP (Archived)

Unknown identifier PM_Mass_Voucher_Selection

Posted on by 110

Hi,

I have a GP Tool customization for GP2010 SP3. I am running dexterity code in order to know the number of items for a list ('Select Payables Cheques' window).

The code is working well on all my test enviroments. But when we install at the client, we get the error: Unknown Identifier PM_Mass_Voucher_Selection 

What should i check? maybe the client has a corrupted dictionary?

            StringBuilder DexCmnd = new StringBuilder();
            DexCmnd.AppendLine("local boolean err_val;");
            DexCmnd.AppendLine("local integer count;");
            DexCmnd.AppendFormat("set count to countitems('(L) Restrictions Selected' of window {0} of form {0});", "PM_Mass_Voucher_Selection");
            DexCmnd.AppendLine();
            DexCmnd.AppendLine("set err_val to OLE_SetProperty(\"cls_ParameterName\", str(count));");

            string error = String.Empty;
            string sanscript = DexCmnd.ToString();

            SanScriptParams paramHandler = new SanScriptParams();
            Dynamics.Application DynamicsApp = System.Runtime.InteropServices.Marshal.GetActiveObject("Dynamics.Application") as Dynamics.Application;
            DynamicsApp.SetParamHandler(paramHandler);


            if (DynamicsApp.ExecuteSanscript(sanscript, out error) != 0 || !error.Equals(String.Empty))
            {
                throw new Exception("Error retrieving the value of the countitems function: " + error);
            }

 Hopefully someone can help

*This post is locked for comments

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans