Locking or freezing or hanging voiding sales order/quote in GP

by Administrator 7. January 2013 13:24
This is a really niche problem, as its not already out there, worth posting. Whenever a user
tried to void a sales document, the user session would hang. Lock escalation in SQL would then
follow due to the blocking.
If you check in SQL activity, the problem is caused by two sids from the user concerned, 
example SQL associated with those sessions is:
CANFD.dbo.zDP_BM010115F_1;1
select count(*) from IS010001 
where SOPNUMBE='11111' 
and SOPTYPE=2 and LNITMSEQ=16384 and CMPNTSEQ=0 
The problem in the case I was examining was that the manufacturing module had been installed 
but not fully configured, not being used.

Solution

Taking the manufacturing module references out of DEX.INI of the client GP folder stopped 
the locking.
 

Tags:

Microsoft Dynamics GP

TSQL Str() Error converting data type varchar to float.

by Administrator 15. November 2012 08:00

Found someone had made this mistake, beware when doing something like

str(@LOCNCODE)

where @LOCNCODE is a varchar

The function is defined as:

STR ( float_expression [ , length [ , decimal ] ] )

So the variable is getting converted to a float before it is then turned back into a character data type, problem in my case was that it had worked for years until LOCNCODE one day contained letters as well as numbers.

 

Tags:

TSQL

Task Scheduler and COM automation

by Tim 28. February 2012 15:16

Note to self:

The solution for this appalling BUG in Microsoft IIS & Excel is terrific:

  1. Create directory "C:\Windows\SysWOW64\config\systemprofile\Desktop " (for 64 bit Windows) or "C:\Windows\System32\config\systemprofile\Desktop " (for 32 bit Windows)
  2. Set Full control permissions for directory Desktop (for example in Win7 & IIS 7 & DefaultAppPool set permissions for user
    "IIS AppPool\DefaultAppPool")

 

http://social.msdn.microsoft.com/Forums/en/vbgeneral/thread/4d6c383a-94eb-4898-9d22-aa4bb69be25b

Tags:

.NET

eConnect: The creator of this fault did not specify a Reason

by Tim 20. November 2011 16:14

eConnect WCF exception handling

For this example a WCF service reference to the server endpoint running the GP2010 eConnect integration service as a reference named “GPeConnect” is used.

If an exception were to occur from eConnect on say the CreateEnity mehods, and the exception examined as type system.exception, then the following message is found from ex.message,

System.ServiceModel.FaultException: The creator of this fault did not specify a Reason

To retrieve the error message from econnect that we are interested in, use the System.ServiceModel.FaultException class as shown below. By accessing the Detail.Message property, it is possible to get message of interest.

More...

Tags:

.NET | econnect | WCF | Microsoft Dynamics GP

TextBox