Export Dynamics GP Trial Balance to Excel

Friday, October 30, 2009

Do you ever need to export your Financial Trial Balance (or even your AR or AP) to Excel?  Tired of printing your GP Trial Balance report to a CSV file and then attempting to open it in Excel, and then delete the report/page headings every 20 or 30 lines?

Well, now you can use the SQL Reporting Services (SRS) report that comes default with Dynamics GP 10!  SRS reports natively export nicely to Excel, saving you much time and trouble.

With the release of Dynamics GP 10, several of the most common GP reports were updated (and I do mean that in all possible senses) to SRS.  About 75 reports in total, from the major modules.  If you are running SQL Reporting Services on your SQL Server (2000, 2005, 2008), you can access these reports through GP or a URL.

  1. Make sure you are running IIS somewhere (if your server is not overloaded, you can do this on the SQL Server itself)
  2. Make sure SRS is installed as part of your SQL Server installation.  I will not go into details in this post, but you can read more at MS books online site.
  3. Configure Reporting Services (either at install time using the defaults, or manually using the config tool)
  4. Install the Dynamics GP SRS Wizard from the AdProd folder of the GP DVD (or disc 2 of the CD set, or downloaded from Partnersource/Customersource)
  5. Run the tool, and select one or more companies for which to deploy the reports
  6. In GP, under Tools - Setup - Reporting Tools Setup, specify the URLs of the SRS reporting site (usually http://servername/ReportServer/reportservice.asmx and http://servername/reports/pages/folder.aspx)
  7. In GP, under the Administration navigation pane tab, clock on Custom Reports List to view a list of SRS Reports deployed.

So now you can open these reports from within GP, or point a user to them (After giving them appropriate security) using a URL.

The GL Trial Balance report will be in the COMPANY_CODE - Financial folder.  There is a Detail and Summary report.  Run one, pick your options, and then hit View Report.

Once it is up, you can select Excel as the output option and hit "Export" and you now have a GP Trial Balance in a well-formatted Excel spreadsheet!

Running Pentaho CE 3.5 With Access to MS SQL 2005

Wednesday, October 28, 2009

For those that do not know, Pentaho is a commercial open-source Business Intelligence (here-after referred to as BI) software solution.  It produces a Community Edition (CE) which is available free of charge, and an Enterprise Edition (EE) which is around $30,000 for the whole enchilada.  EE has some additional features that the CE does not, such as Single Sign On (SSO), some additional Admin Console features, and other whizbang goodies.  Also thoroughly QA's code.  However, the vast majority of the functionality is the same in both editions.

My goal here is to get the latest 3.5 CE release talking to my Microsoft Dynamics GP 10 Fabrikam company database, running on MS SQL 2005.  Why?  Because I spend most of my time working with GP (and CRM).

First, I downloaded Pentaho CE 3.5 and started reading the Getting Started Guide. I first created a directory to hold my extracted files, and made the two directories recommended under the main - server and design tools.  My path is now:
c:\pentaho\server
c:\pentaho\design tools
I extracted the biserver-ce-3.5.0.stable.zip file to the server directory.  That made two new directories - biserver-ce and administration console.  I then was able to get the Pentaho User Console up by simply running start-pentaho.bat from within the biserver-ce directory. That worked like a charm. All the sample information is there.

Now I want to make a new report using my GP data.  According the the Guide, a new data source can be created using the Pentaho User Console when you click Add in the Select Data Source step when creating a new Ad Hoc Report.  Let's try it.

After clicking on the New Report icon, and then clicking on the Add button to add a new datasource, the New Data Source "window" pops up and already has an entry for the SampleData.


I hit the little green + icon to add a new connection.  When I select the MS SQL Server option and enter my criteria and test, it fails.


Why does it fail? Well, it turns out it is looking for the JTDS JDBC driver, which is not in my classpath, apparently.

So, next step is to download the JTDS driver, which works with SQL Server and Sybase.  Download here, and then extract and copy the jtds-1.2.4.jar file to the biserver-ce/tomcat/common/lib directory.  That was my guess as a path that would work.  And it did!  (One other note - TCP/IP must be enabled for the SQL Server Network Protocol, or you need to pass the JTDS driver a parameter telling it to use Named Pipes.  Details here.)

After stopping Tomcat (Ctrl-C in the windows or stop-pentaho.bat) and restarting Tomcat/Pentaho, I go back to add a new report and new datasource.  This time it works!


So now I can continue and attempt to make a new Ad Hoc Report using this new connection.  I am going to do a simple query to get the Customer List by Customer Class.
select custnmbr, custname, custclas from rm00101
 After entering this query into the New Data Source SQL Query field, I hit Preview to verify it works, and it does.  Then I hit Apply and am presented with a Metadata specification:


I know that all three fields are strings, so I mark them as such.  Now I move along to the next step.


Next is to identify the fields, groupings, and filters for the report.


Next.  Everything looks good.

Next.  I specify a Report Header.



Now I click on the little blue floppy disk icon to Save my report.  I saved it in the BI-Developer/Reporting folder, as TWO Customer by Class.  Now in the User Console, I can open that location in the tree and see my new report.


But when I double-click the report to view it, I get this error message:


Since I do not know what that means, I'm kinda stuck, and will attempt to watch some demos and see what I can find on the net.