Monday, May 12, 2014

No plan survives contact with the enemy: Budgets and Project Plans

By Steve Endow

"No plan survives contact with the enemy"--this is a paraphrased version of an oft cited quote by Field Marshall Helmuth Carl Bernard Graf von Moltke (that's quite a name).

I'm currently working on a project that involves integrating Dynamics GP with a customer's internal e-commerce web site.  The customer's web site is used to capture customer information when they sign up for a subscription service.  I was asked to develop a solution that could receive that information in real time and store it in Dynamics GP.  This involved new customer information and credit card information and integration with two web services.

I had a few phone calls with the GP partner and client, we discussed the general requirements, and then we came up with a high level task list and estimate.  It seemed relatively straightforward.

Then the project started.  We knew that there were a few open questions, but not too long after we started working on the tasks, new details emerged.  There were some requirements that were more complex than anticipated, new requirements that were not anticipated, and some increase in scope due to new feature requests.  We adjusted our design and resumed working on the tasks.  Over half way through the project, yet another requirement surfaced that will affect a few parts of the overall solution that was a combination of "Oops, I forgot to mention that" and "It would be nice if...".  No problem, we have a plan to accommodate the requirement.

Okay, so all of this isn't too surprising--these are all fairly common events in technology projects.

But in this particular case, it all seemed more visible because the client is very conscientious about project management and receiving regular updates on tasks and timelines.  I've spent hours just updating the simple Excel task list every week, and had to give up completely on an MS Project plan that I originally created--there were just too many changes to try and track the project in detail in Project.

After updating the budget vs. actual report and reconciling all of my time against the originally planned tasks vs. new or changed tasks, it reminded me of the "von Moltke" quote.  It seems that technology project plans aren't terribly different than battle plans.  You don't always have all of the details or knowledge before you start a project, and things change as the project progresses.  (Come to think of it, anyone who has done home remodeling can probably also relate...)

Usually, that means that projects grow, become more complex, and require more time and/or money to complete, despite a customer's desire to have a fixed project plan with a fixed budget.  Plan accordingly, and expect all project plans and budgets to require adjustment as a project progresses.

Steve Endow is a Dynamics GP Certified Trainer and Dynamics GP Certified IT Professional in Los Angeles.  He is also the owner of Precipio Services, which provides Dynamics GP integrations, customizations, and automation solutions.

You can also find him on Google+ and Twitter


Wednesday, May 7, 2014

Why is my Dynamics GP database growing / getting so large / taking up so much space?

By Steve Endow

There was a recent forum post by a user who had noticed that his Dynamics GP system database was growing, and was apparently looking to understand how to monitor the growth.

I have dealt with this question before, but never remember the query, so I wanted to post it here for future reference.

My approach is to run a query that shows the number of records and the size of each database table in the database.  Usually, most of the database is utilized by a handful of tables, so once you find your top 5 or 10 tables, you'll quickly understand what type of data is consuming the space in your database.

I found this Stack Overflow thread that addresses the issue and offers a few queries.  I prefer the query that was most upvoted because its result set is in a single clean set that can be copied and pasted into Excel.

The query lists I have modified the Order By clause to sort the largest tables to the top.

SELECT
   t.NAME AS TableName,
   s.Name AS SchemaName,
   p.rows AS RowCounts,
   SUM(a.total_pages) * 8 AS TotalSpaceKB,
   SUM(a.used_pages) * 8 AS UsedSpaceKB,
   (SUM(a.total_pages) - SUM(a.used_pages)) * 8 AS UnusedSpaceKB
FROM
   sys.tables t
INNER JOIN      
   sys.indexes i ON t.OBJECT_ID = i.object_id
INNER JOIN
   sys.partitions p ON i.object_id = p.OBJECT_ID AND i.index_id = p.index_id
INNER JOIN
   sys.allocation_units a ON p.partition_id = a.container_id
LEFT OUTER JOIN
   sys.schemas s ON t.schema_id = s.schema_id
WHERE
   t.NAME NOT LIKE 'dt%'
   AND t.is_ms_shipped = 0
   AND i.OBJECT_ID > 255
GROUP BY
   t.Name, s.Name, p.Rows
ORDER BY
SUM(a.total_pages) DESC


And the results look like this:



Steve Endow is a Dynamics GP Certified Trainer and Dynamics GP Certified IT Professional in Los Angeles.  He is also the owner of Precipio Services, which provides Dynamics GP integrations, customizations, and automation solutions.

You can also find him on Google+ and Twitter




Friday, May 2, 2014

Will eConnect import transactions into a batch that is in Batch Recovery?

By Steve Endow

Will eConnect import transactions into a batch that is in Batch Recovery?

The short answer is: Yes!

A client asked me this question today and I didn't have an answer, as it is something that I haven't considered  or tested before.

The client uses a third party requisition system that is constantly importing batches into Dynamics GP--I believe they are purchase receipt batches.  The requisition system can import transactions into GP using two different batch IDs--either the username plus the date, such as "JSMITH20140502", or a single common batch ID, like "IMPORTRCTS".

Since the client has many users of the requisition system, he was hoping to avoid having dozens of different batch IDs to post in GP.  But he wondered if he used a single batch, and there was an error in the batch causing it to go to batch recovery, what would happen when the requisition system tried to import more transactions into that same batch?

I didn't know, so I performed a test.  Using my Dynamics GP Batch Load Test application, I imported 10 payables invoices into a batch called TEST.


I then modified the distributions in one of the invoices so that they were invalid.


I then posted the batch, forcing it to go to batch recovery.


When a batch is in recovery, GP will not allow you to open or edit the batch.


If I would have recovered the batch at this point, it would only contain one transaction--the invoice with the invalid distributions.  The other 9 transactions posted successfully and would no longer be in the batch.

I then used the Batch Load Test application to import more transactions into the TEST batch.  I received no errors, and the import completed successfully.

I then recovered the TEST batch.


When the batch was recovered, it contained 11 transactions.  The 1 transaction with the error, and the 10 new transactions that I imported.


So, this demonstrates that eConnect, unlike the GP application, will allow you to add new transactions to a batch that is in recovery.

Is this a bad thing?  Or a good thing?  I don't know that it is either bad or good, but it means that you should design your workflow accordingly.

This particular client wanted to automatically post his batches using Post Master Enterprise.  But if he uses a single batch and it goes to recovery, transactions will pile up in that batch until someone uses the Batch Recovery window to recover the batch--since eConnect will import transactions into a batch that is in recovery.

Anyway, this is one of those things where you don't know the answer for sure until you test it and confirm how GP or eConnect behaves.  This particular behavior is consistent with other eConnect "differences", such as:

Will eConnect import transactions into a batch that is being edited in GP?  Yes!

Will eConnect import transactions into a batch that is being actively posted in GP?  Yes!


Steve Endow is a Dynamics GP Certified Trainer and Dynamics GP Certified IT Professional in Los Angeles.  He is also the owner of Precipio Services, which provides Dynamics GP integrations, customizations, and automation solutions.

You can also find him on Google+ and Twitter







Thursday, May 1, 2014

eConnect error: All transaction type child nodes must contain the same document number

By Steve Endow

I developed a new eConnect GL JE import for a customer and during an initial test, it worked fine.

But during a subsequent test with a new sample data file, the customer would receive the following eConnect message:

All transaction type child nodes must contain the same document number. Please ensure your transaction is not missing this unique identifier for the element JRNENTRY. (If you would like the document number generated, please ensure a document number value is not contained in the document number element JRNENTRY.)

The journal entry would import into Dynamics GP properly, despite the error.  I don't recall ever seeing this error before, so I was puzzled.  I first checked the serialized XML that was being generated, and it looked fine.

< ?xml version=\"1.0\"? >
< eConnect xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" >
< GLTransactionType >
< eConnectProcessInfo xsi:nil=\"true\" / >
< taRequesterTrxDisabler_Items xsi:nil=\"true\" / >
< taGLTransactionLineInsert_Items >
< taGLTransactionLineInsert >
< BACHNUMB >CMS30< /BACHNUMB >
< JRNENTRY >24440< /JRNENTRY >
< CRDTAMNT >0.00< /CRDTAMNT >
< DEBITAMT >170618104.45< /DEBITAMT >
< ACTNUMST >999-9999-99< /ACTNUMST >
< DSCRIPTN >Contr< /DSCRIPTN >
< /taGLTransactionLineInsert >
< taGLTransactionLineInsert >
< BACHNUMB >CMS30< /BACHNUMB >
< JRNENTRY >24440< /JRNENTRY >
< CRDTAMNT >170618104.45< /CRDTAMNT >
< DEBITAMT >0.00< /DEBITAMT >
< ACTNUMST >999-9999-99< /ACTNUMST >
< DSCRIPTN >Contr< /DSCRIPTN >
< /taGLTransactionLineInsert >
< /taGLTransactionLineInsert_Items >
< taAnalyticsDistribution_Items xsi:nil=\"true\" / >
< taGLTransactionHeaderInsert >
< BACHNUMB >CMS30< /BACHNUMB >
< JRNENTRY >24440< /JRNENTRY >
< REFRENCE >CMS Contr 04/23/2014< /REFRENCE >
< TRXDATE >04/23/2014< /TRXDATE >
< TRXTYPE >0< /TRXTYPE >
< /taGLTransactionHeaderInsert >
< taMdaUpdate_Items xsi:nil=\"true\" / >
< /GLTransactionType >
< /eConnect >


I was puzzled.  I then pulled up another eConnect GL import I had developed to see if I was missing anything in the XML--but the XML structure was identical.

But after another round of tests, I found that the first JE imported fine, but the second and subsequent JEs received the eConnect error.  Hmmm.

So here is the XML for the second JE.  Notice anything wrong?

< ?xml version=\"1.0\"? >
< eConnect xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" >
< GLTransactionType >
< eConnectProcessInfo xsi:nil=\"true\" / >
< taRequesterTrxDisabler_Items xsi:nil=\"true\" / >
< taGLTransactionLineInsert_Items >
< taGLTransactionLineInsert >
< BACHNUMB >CMS30< /BACHNUMB >
< JRNENTRY >24440< /JRNENTRY >
< CRDTAMNT >0.00< /CRDTAMNT >
< DEBITAMT >170618104.45< /DEBITAMT >
< ACTNUMST >999-9999-99< /ACTNUMST >
< DSCRIPTN >Contr< /DSCRIPTN >
< DOCDATE >04/23/2014< /DOCDATE >
< /taGLTransactionLineInsert >
< taGLTransactionLineInsert >
< BACHNUMB >CMS30< /BACHNUMB >
< JRNENTRY >24440< /JRNENTRY >
< CRDTAMNT >170618104.45< /CRDTAMNT >
< DEBITAMT >0.00< /DEBITAMT >
< ACTNUMST >999-9999-99< /ACTNUMST >
< DSCRIPTN >Contr< /DSCRIPTN >
< DOCDATE >04/23/2014< /DOCDATE >
< /taGLTransactionLineInsert >
< taGLTransactionLineInsert >
< BACHNUMB >CMS30< /BACHNUMB >
< JRNENTRY >24441< /JRNENTRY >
< CRDTAMNT >0.00< /CRDTAMNT >
< DEBITAMT >4975354.07< /DEBITAMT >
< ACTNUMST >999-9999-99< /ACTNUMST >
< DSCRIPTN >ContrRev< /DSCRIPTN >
< DOCDATE >04/23/2014< /DOCDATE >
< /taGLTransactionLineInsert >
< taGLTransactionLineInsert >
< BACHNUMB >CMS30< /BACHNUMB >
< JRNENTRY >24441< /JRNENTRY >
< CRDTAMNT >4975354.07< /CRDTAMNT >
< DEBITAMT >0.00< /DEBITAMT >
< ACTNUMST >999-9999-99< /ACTNUMST >
< DSCRIPTN >ContrRev< /DSCRIPTN >
< DOCDATE >04/23/2014< /DOCDATE >
< /taGLTransactionLineInsert >
< /taGLTransactionLineInsert_Items >
< taAnalyticsDistribution_Items xsi:nil=\"true\" / >
< taGLTransactionHeaderInsert >
< BACHNUMB >CMS30< /BACHNUMB >
< JRNENTRY >24441< /JRNENTRY >
< REFRENCE >CMS ContrRev 04/23/2014< /REFRENCE >
< TRXDATE >04/23/2014< /TRXDATE >
< TRXTYPE >0< /TRXTYPE >
< USERID >eConnect< /USERID >
< /taGLTransactionHeaderInsert >
< taMdaUpdate_Items xsi:nil=\"true\" / >
< /GLTransactionType >
< /eConnect >


Note that the LineInsert_Items include lines for the prior JE and the current JE.  For each JE that was processed, the number of lines kept growing, as they included all of the lines from all prior JEs.

Aha!  What causes this?  Forgetting to clear the LineInsert_Items array!  I had forgotten to add this line with each header loop:

glLines = new List< taGLTransactionLineInsert_ItemsTaGLTransactionLineInsert >();


And so that one missing line caused the bug, which caused the eConnect error.

As my younger daughter now says (following the lead of her big sister):  "Easy peasy macaroni cheezy!"

Steve Endow is a Dynamics GP Certified Trainer and Dynamics GP Certified IT Professional in Los Angeles.  He is also the owner of Precipio Services, which provides Dynamics GP integrations, customizations, and automation solutions.

You can also find him on Google+ and Twitter






Flat Tax Rates and Additional Amounts in Dynamics GP

Every time I train someone on payroll in Dynamics GP, I point out the flax tax rate fields available on both the Pay Code Setup (Setup-Payroll-Pay Code) and Employee Pay Code Maintenance windows. (Cards-Payroll-Pay Code).

 
 
And I emphasize that if a value is entered in either of these fields, it will override the tax settings for the employee and take the flat rate instead.  So, for example, an employee who is set up this way...

 
 
....with a Federal Filing Status of Married and 1 exemption, if there is a flat tax rate on their pay code then it will ignore the Federal Filing Status and number of exemptions when calculating Federal withholding.  However, and this a significant HOWEVER, it will NOT ignore the Additional Withholding amount.  So in the case above, the system will take 28% Federal withholding PLUS an additional $100 on the payroll.  This is true regardless of whether the payroll includes pay codes other than the one with a flat tax rate.  So, even if you run the Bonus payroll separately, it will still take 28% plus $100.
 
The devil is in the details, right?  So the options would be (feel free to chime in if you have other alternatives) to either adjust the flat percentage to offset the additional amount or remove the additional amount from the Employee Tax Maintenance window prior to building the payroll and then adding it back afterwards (not fun, I know).
 
Christina Phillips is a Microsoft Certified Trainer and Dynamics GP Certified Professional. She is a senior managing consultant with BKD Technologies, providing training, support, and project management services to new and existing Microsoft Dynamics customers. This blog represents her views only, not those of her employer.
 



Wednesday, April 30, 2014

The Paradox of Choice by Barry Schwartz

By Steve Endow

Several years ago I read an article in Scientific American called "The Tyranny of Choice" by Barry Schwartz.  It was fascinating and finally gave a name to a frustration that I had been noticing for several years, particularly when having to shop for something new or expensive.  If it visited a store, I would be confronted with an entire wall or aisle of products and it was overwhelming to try and choose just one.

I recommend reading the article, but Mr. Schwartz has since published his full book on the topic, called  The Paradox of Choice.  And he has a great TED presentation on the topic as well.


I think it's a good topic and concept for everyone to understand, as many sales and marketing strategies revolve around offering customers choices.  Even consultants in the field can benefit, as they need to understand that clients who are not Dynamics GP experts can be frustrated by a list of choices as well.

So when you are working with your customers, keep the concept of The Paradox of Choice in mind.

Steve Endow is a Dynamics GP Certified Trainer and Dynamics GP Certified IT Professional in Los Angeles.  He is also the owner of Precipio Services, which provides Dynamics GP integrations, customizations, and automation solutions.

You can also find him on Google+ and Twitter





Great quote: "I am never a fan of always"

By Steve Endow

I was on a call with a client this week and we were discussing a moderately complex business process related to Dynamics GP transaction integrations and custom reports.

At some point during the conversation, the client was asked if he thought that a particular report would always be run in a particular way.  After pausing for a moment, he had a great response:

"I am never a fan of always"

It instantly got my attention, and I love the somewhat ironic use of "never" in the phrase.

The quote speaks to something that most veteran consultants know well.  Whenever developing a business process, or a solution tied to a business process, you can rarely make an assumption that any particular thing will "always" occur--or "never" occur for that matter.  Business processes are often defined by their exceptions, and in many businesses, it seems that exceptions are the rule.

While this often makes it difficult to implement consistent processes in Dynamics GP, such exceptions are often what makes a business unique and competitive.  They offer the wacky discounts or weird invoicing options or strange business processes that you've never seen before and that are difficult to setup in Dynamics GP.  But those things were often created to accommodate customers, so there are often good reasons for the madness.

Anyway, I thought that was a great quote.

Steve Endow is a Dynamics GP Certified Trainer and Dynamics GP Certified IT Professional in Los Angeles.  He is also the owner of Precipio Services, which provides Dynamics GP integrations, customizations, and automation solutions.

You can also find him on Google+ and Twitter