Showing posts with label System. Show all posts
Showing posts with label System. Show all posts

June 19, 2010

GPTip42day - Locking users out of GP

I don't generally suggest or endorse products in this blog but when I run across something that really stands out in terms of 'bang for the buck', I like to share it.

Need to lock users out to perform upgrades or maintenance?  Check out Rockton Software's Dynamics GP Toolbox.  http://www.rocktonsoftware.com/products.aspx?p=12

For a very modest price, the Toolbox provides the ability to lock users out and much more.

March 26, 2010

GPTip42day - SA vs. DYNSA


What are the primary differences between SA and DYNSA users in GP? 

1.  SA is the SQL database system administrator and has full  access to all databases on the SQL Server, including non-GP databases.  DYNSA is the GP database administrator and has access to all GP databases only.

2.  SA and DYNSA are both granted Power User roles automatically in GP Security. 

3.  SA is required for certain tasks such as initial system installation, payroll updates, and to administer some 3rd party applications.  Generally speaking though, DYNSA can perform most of the security and maintenance tasks in GP that SA can.

4.  From a SQL database security perspective, DYNSA should be used by your GP administrator for day-to-day administrative duties.  SA use should be reserved for SQL administrators where possible to reduce the possibility of tampering in non-GP databases.

March 24, 2010

GPTip42day - Activity Tracking


If you need to track certain user activities in GP such as master data creation or transaction posting activity, use Activity Tracking to do so.

Administration>Setup>System>Activity Tracking

* click image to enlarge

To turn on Activity Tracking, select the Activity Type, place a checkmark in the Activity, select User(s) and place a checkmark in the appropriate Company(s).

You can track multiple activities but beware that the Activity Tracking table can grow very large in a short period of time if many activities are tracked.  Therefore, turn  tracking on for only those activities that are essential and clear the table on a regular basis via Administration>Utilities>System>Activity Detail.

March 4, 2010

GPTip42day - Resolve Batch 'Stuck' in Posting


Occasionally, a batch will 'hang' during the posting process and not show as available to be recovered in Batch Recovery. When this happens, follow these steps to 'unstick' the batch. Note: to be performed by GP Administrators only.

1. Run the following script against the company database. Replace XXX with the batch number or the name of the batch that you are trying to post.

UPDATE SY00500 SET MKDTOPST=0, BCHSTTUS=0 where BACHNUMB='XXX'

Note: The value of BACHNUMB is the same as the Batch ID in GP.

2. View the contents of the SY00800 table located in the DYNAMICS database to determine the value of the DEX_ROW_ID field for the batch that you are trying to recover. You can view the contents of this table by running the following script:

SELECT * FROM DYNAMICS..SY00800

Note: If no results are returned, go to step 5.

3. Run the following delete script, based on the results received in step 3. Replace XXX with the DEX_ROW_ID value of the batch that you are trying to recover:

DELETE DYNAMICS..SY00800 where DEX_ROW_ID= 'XXX'

The preceding steps will free up the batch for edit and posting. Once the batch is again available:

4. Verify the accuracy of the transactions.
5. Verify that you can edit and post the batches.

February 16, 2010

GPtip42day - Track User Inactivity


I generally don't get into the technical side of GP in the Tip42day but this is just too good not to share. 

A user on the https://community.dynamics.com/forums/32.aspx forum posed the following question -

Is there any column that will show the last activity time for a user? I would like to be able to send email alerts to users who are logged in but haven't been active for 1 hour.

This is a great idea but I'm not aware of any field in any table in GP that stores this info.  However, I didn't think about pulling this directly from SQL.  Fortunately, there are people much smarter than I am out there who did.  Here's the solution - 

SELECT CASE WHEN S.session_id IS NULL THEN 'Missing DEX_SESSION'


ELSE ''


END MISSING_SESSION,


CASE WHEN DATEDIFF(mi, P.last_batch, GETDATE()) > 1


THEN 'Idle for ' + LTRIM(RTRIM(STR(DATEDIFF(mi, P.last_batch, GETDATE())))) + ' minutes.'


ELSE ''


END AS IDLE_TIME_DESC,


CASE WHEN DATEDIFF(mi, P.last_batch, GETDATE()) > 1


THEN DATEDIFF(mi, P.last_batch, GETDATE())


ELSE 0


END AS IDLE_TIME,


A.USERID,


A.CMPNYNAM COMPANY_NAME,


INTERID COMPANY_ID,


LOGINDAT + LOGINTIM LOGIN_DATE_TIME,


SQLSESID SQL_SESSIONID,


P.login_time SQL_LOGINTIME,


P.last_batch SQL_LAST_BATCH,


DATEDIFF(mi, P.last_batch, GETDATE()) TIME_SINCE_LAST_ACTION,


S.session_id SQLSERVER_SESSIONID,


S.sqlsvr_spid SQLSERVER_PROCESSID,


P.spid PROCESSID,


P.status PROCESS_STATUS,


P.net_address NET_ADDRESS,


P.dbid DATABASE_ID,


P.hostname HOSTNAME


FROM DYNAMICS..ACTIVITY A


LEFT JOIN DYNAMICS..SY01400 U ON A.USERID = U.USERID


LEFT JOIN DYNAMICS..SY01500 C ON A.CMPNYNAM = C.CMPNYNAM


LEFT JOIN tempdb..DEX_SESSION S ON A.SQLSESID = S.session_id


LEFT JOIN master..sysprocesses P ON S.sqlsvr_spid = P.spid


AND ecid = 0


LEFT JOIN master..sysdatabases D ON P.dbid = D.dbid

This script creates a column called 'IDLE_TIME' and stores the idle time in minutes, which can be used to determine which users to send the email to via SQL Mail.

Thanks to Ron Wilson and Sivakumar Venkataraman for this great tip!

February 8, 2010

GPtip42day - Size of Note field


I'll bet everyone has been wondering what the maximum note size is that can be entered into a note field.  From our friend and GP developer extraordinaire, Mr. David Musgrave, the maximum number of characters a note field will hold is 32,000. 

Now, if we just had a character counter on that note field David!

February 3, 2010

GPtip42day - Are hotfixes cumulative?


This question was posed on one of the forums yesterday.  The answer is yes - hotfixes are cumulative - meaning they include all previous hotfix and service pack modifications to-date.

From Microsoft PartnerSource - 'All service packs, hotfixes, tax updates and year end updates are cumulative and the version information is incremented with each patch release.'

January 20, 2010

gptip42day - Resetting the GP system password


Note, this tip is for GP Administrators only.  Attempts by non-administrators to change the system password could compromise data security!

Occasionally, the GP system password is forgotten or lost.  This password is required to make changes at the system level, such as adding a new user, changing user security, etc.  Here's how to recover when this happens.

1.  In SQL Management Studio, run this script to remove the existing password -

           UPDATE DYNAMICS.SY02400
           SET PASSWORD = 0x0202020202020202020202020202020
 
2.  In GP, reset the system password.
 
Tools>Setup>System Password
 

* click image to enlarge

Now, store the password in a safe, accessible place!!

December 31, 2009

gptip42day - Reconcile


GP provides a way to 'Reconcile' summary and detail data within the application.  Each module has its own Reconcile utility.  For instance, Tools>Utilities>Financial>Reconcile opens the Reconcile Financial Information window.


* click image to enlarge

Now, this Reconcile is not for reconciling a GL account to the subledger, i.e., Accounts Receivable to the AR Trial Balance.  This Reconcile forces financial summary information, such as the monthly data in the Financial Summary Inquiry window, to equal the underlying detail.

Over time, some transactions don't post properly, data gets corrupted, etc, etc.  This Reconcile fixes those data errors.

However, there is one aspect of this utility that you need to be aware of.  Note that you can reconcile Open and History years.  Be very careful that you don't reconcile a History year that contains only GL account balances.  This might be the case where historical account balances were imported during an implementation because it was deemed unnecessary to import all the transaction detail.  If you reconcile a History year in this scenario, it will zero out your account balances.  Why?  Because the Reconcile process, by design, forces the summary data to equal the detail transaction data.  If there are no detail transactions - Reconcile will make the summary equal that!

Now, fortunately, GP presents a warning to this effect when you select a History year to reconcile.  Heed the warning!!

December 19, 2009

gptip42day - When can I apply the 2009 Year End Payroll Update?


This question has been asked numerous times over the last few weeks on multiple forums. 

The answer is - you can apply the YE update anytime, regardless of whether or not you still have 2009 payroll(s) to process.  The YE update does not include tax table updates for 2010.  Those are part of the 2010 US Payroll Tax Update.

The 2009 YE update does include all previous YE updates, hotfixes, and service packs.

December 14, 2009

gptip42day - Resource Descriptions


Ever wonder what tables and/or fields are associated with a particular window in GP?  Did you know there's an easy way to find out?  Resource Descriptions provides the answers.  For instance, let's say you want to find the tables associated with the Account Maintenance window.

Tools>Resource Descriptions>Windows


* click image to enlarge

Select the Product, Series, and 'View By' then scroll down to the Account Maintenance line and click on it.  The associated tables appear in the scrolling window in the bottom right corner and the fields appear in the scrolling window in the bottom left corner.

November 6, 2009

gptip42day - The GP MVB


Which button would you vote to be the Most Valuable Button in the GP application? My vote would be for this one -



That's right - the ubiquitous Help button.  The amount of information available in the GP Help files is amazing.  This button takes you to context-sensitive Help, providing not only an overview of the window or transaction you're working in and how to process the relevant transaction,  it also provides a detailed description of the purpose of nearly every button and field on every window in the application. 

And if that's not enough, the Help button introduces you to the world of Printable Manuals - detailed manuals that provide step-by-step instruction on practically every action you can take in GP.  These manuals are presented in pdf format and can be easily printed for future reference or just a good late-night read.

I strongly encourage you to use this button frequently.  Make it your best friend and it, in turn, will make you a GP expert!