Page 1 of 85612345678910...2025303540...Last »

Field Level Security can crash Microsoft Dynamics GP 2015 Web Client

David Meego - Click for blog homepageWhile working on testing GP Power Tools, I had to investigate an issue with GP Power Tools running on the Microsoft Dynamics GP 2015 Web Client, and discovered a bug which can crash the web client.

The problem I was seeing was just by having GP Power Tools installed, the web client would crash after login or when opening the first window. Note that this issue is resolved now.

I spent some time analysing the GP Power Tools code and tracking the flow of the scripts by adding warning statements into the code until I was able to narrow down the feature that was causing the crash.

Further investigation allowed me to identify the actual script causing the problem and finally, I was able to locate the actual line of code. The reason it was harder than normal to locate the issue was that the code in question was dynamically created pass-through Dexterity sanScript code executed in the context of the runtime engine’s Dex.dic dictionary.

To access more detailed dictionary resource information than available via the Resource_ function library commands, GP Power Tools and in particular the Resource Explorer window use the Script Explorer window in the Dexterity runtime engine. Dexterity developers will be familiar with the window which has part of the script debugger and is used when opening or debugging scripts.

ScriptExplorer

The techniques using this window were published in my 2001 conference session Pushing the Limits with Dexterity. For more information see the Cross Dictionary Dexterity Development article on my old blog.

The error was caused by the line of code that opened the Script Explorer form in a script that would retrieve a list of windows for a specified form in a dictionary.

I knew that the Field Level Security feature included with Dynamics GP (which I originally developed as Omni Field Security) has a similar Resource Explorer window. So I tested that window and it seemed to work fine.

Then I noticed that my script closed the Script Explorer form before opening it and wondered if the issue was not opening the Script Explorer, but re-opening it after it had been closed.

The Resource Explorer window in GP Power Tools and the one in Field Level Security also closed the Script Explorer window when the Resource Explorer form is closed.

So I tested the theory and closed Field Level Security (and so the Resource Explorer and in turn the Script Explorer) and then re-opened Field Level Security (which opens the Resource Explorer and the Script Explorer) and boom. It crashed with the following error:

A server side exception of type “ArgumentException” has occurred.

WebClientError

I have since updated GP Power Tools to never close the Script Explorer window and just to initialise it when it is needed. This has resolved the crashing problem.

However, if you open and close Field Level Security and then re-open it, you can cause the web client to crash. It might not happen every time, but be aware that using Field Level Security more than once per web client session could be risky.

Note: While trying to reproduce the error to get the screenshots for this article, it took a few goes before the web client crashed.

If you are game, try it and let me know (via the comments) if you can replicate. Maybe it is just my install. If the session does crash, make sure you clean up the stranded session using End Task with Task Manager.

TaskManager

Also don’t forget to log back in as the same user and company to clean up the activity tracking records.

David

PS: I have also reported this issue to Microsoft and they will investigate it.

This article was originally posted on http://www.winthropdc.com/blog.

Filed under: 2015, Dynamics, GP, Microsoft Tagged: Application, Exception, GP 2015

Continue reading here:
Field Level Security can crash Microsoft Dynamics GP 2015 Web Client

July 2, 2015 · WinthropDC · No Comments
Tags: , , , , , , , , , ,  · Posted in: Blogs I Follow Total Views: 7

Microsoft Dynamics GP 2015 not showing Service Enabled Procedures

David Meego - Click for blog homepageIt has been a while since I last posted on the blog. I have been working flat out to finalize the GP Power Tools code and documentation. All I can say is that the Microsoft Dynamics GP community will be amazed with some of the new features and will love the improvements above and beyond the Support Debugging Tool. I will be starting a “What’s New” in GP Power Tools series of posts soon.

Anyhow, the subject of today’s post is an issue in Microsoft Dynamics GP 2015 that I discovered while testing the GP Power Tools code.

The Security Task Entry window can be used to add access rights for Service Enabled Procedures in any of the product dictionaries.  Just select the Security Task ID and then select the product, Type as Service Enabled Procedures and the series.

SecurityTaskEntry2Security Task Entry working

All seems working as expected…. until you create a modified forms dictionary for that product, by going into the Modifier. You don’t have to make any changes, the existence of the forms dictionary is all that is needed. Now the Service Enabled Procedures for that product no longer show up.

SecurityTaskEntry1
Security Task Entry no longer showing Service Enabled Procedures

As I have very similar code in the new Script Explorer window in GP Power Tools, I was seeing the same behaviour. This is what sparked the investigation into what was happening.

I tested the code that reads the dictionary and it is able to see the list of global procedures in the dictionary fine, but the check to see if the script is Service Enabled with the Script_GetSystemProperty() function fails to return the any data and so no scripts can be identified as Service Enabled.

I have reported this issue to Microsoft.  In the meantime, if you need to set security to Service Enabled Procedures, temporarily rename the custom forms dictionaries and re-launch Microsoft Dynamics GP.

David

This article was originally posted on http://www.winthropdc.com/blog.

Filed under: 2015, Dynamics, GP, Microsoft Tagged: Application, Exception, GP 2015

Read more here:
Microsoft Dynamics GP 2015 not showing Service Enabled Procedures

June 30, 2015 · WinthropDC · No Comments
Tags: , , , , , , , , , , ,  · Posted in: Blogs I Follow Total Views: 12

Changing themes in Microsoft Dynamics CRM 2015

Hi Folks, Hope you have explored the new options available in CRM 2015. One of the coolest features is changing the themes and the logo. This post will help you to quickly understand how to change the themes in CRM online: Navigate to Settings – Customizations.

View the original here:
Changing themes in Microsoft Dynamics CRM 2015

June 25, 2015 · turlapativishnu · No Comments
Tags: , , , , , , , ,  · Posted in: Blogs I Follow Total Views: 18

Creating PDF notes programmatically in CRM 2015

Hi Folks, This post will help you in creating notes attachment into CRM programmatically.   // Open a file and read the contents into a byte array FileStream stream = File .OpenRead( @”c:testfile.pdf” ); byte [] byteData = new byte stream.Length; stream.Read(byteData, 0, byteData.Length); stream.Close();   // Encode the data using base64. string encodedData = System.

See original article:
Creating PDF notes programmatically in CRM 2015

June 24, 2015 · turlapativishnu · No Comments
Tags: , , , , , , ,  · Posted in: Blogs I Follow Total Views: 23

Hands On With Microsoft Dynamics GP 2015 R2 … – azurecurve

… GP Consultant · azurecurve Nexus · azurecurve Twitter Archive · azurecurve WordPress Development · coralcurve | A Consultant’s Dabblings in Dynamics CRM. Browse… Categories · Tags · Months. Book Shop. UK Store · US Store … View Ian Grieve’s profile on LinkedIn View azurecurve’s Feed on Twitter MVP Profile View azurecurve’s facebook page View azurecurve’s Google+ View azurecurve’s Summary RSS Feed View azurecurve’s Detailed RSS Feed …

Excerpt from:
Hands On With Microsoft Dynamics GP 2015 R2 … – azurecurve

June 23, 2015 · Ian Grieve · No Comments
Tags: ,  · Posted in: Blogs I Follow Total Views: 11

It's Finally Here – Microsoft Dynamics GP 2015 R2! – Tidestone …

Meet Your Team. Subscribe. Enter your E-mail address in the box below and subscribe to our blog feed. Email Address. Categories … Search Dynamics GP Blog. ← 2015 Summer Beer Festival! It’s Finally Here – Microsoft …

Visit link:
It's Finally Here – Microsoft Dynamics GP 2015 R2! – Tidestone …

June 23, 2015 · tidestone · No Comments
Tags: , , , , , , , , , , ,  · Posted in: Blogs I Follow Total Views: 12

Friday Funny: Best Marriage Proposal

David Meego - Click for blog homepageThere have been some amazing marriage proposals posted via social media and YouTube over the last few years, but this has got to be one of the coolest one yet.

Maybe that’s just because it is from an Australian guy ….

Watch below to see Liam Cooper’s proposal to his long time girlfriend, Amy Smith:

Aussie guy proposes to girlfriend in packed cinema. Best wedding proposal EVER! (Direct link)

 

Here is the full music video created for the proposal:

Rude by Magic! (Cover & Music Video for Wedding Proposal!) (Direct link)

 

Here are some other movie trailer proposals (in no particular order):

Enjoy

David

PS: Now, go get a tissue and dry your eyes now.

This article was originally posted on http://www.winthropdc.com/blog.

Filed under: Fun Tagged: Friday Funny, Fun

Excerpt from:
Friday Funny: Best Marriage Proposal

June 19, 2015 · WinthropDC · No Comments
Tags: , , , , , , , , ,  · Posted in: Blogs I Follow Total Views: 34

Page 1 of 85612345678910...2025303540...Last »