mibuso.com

Microsoft Business Solutions online community
It is currently Mon May 20, 2013 1:54 pm

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: [Solved] Key Performance Tool error
PostPosted: Mon Dec 06, 2010 12:32 pm 
Offline

Joined: Sat Jul 17, 2004 11:10 am
Posts: 64
Location: indonesia
Hi,

We're using NAV 4.0 without SP with SQL Option (SQL 2000 SP3a)

I successfully installed "Key Information Tool".fob and setup SQL Connection (Test Connection succeeded)
Load Text Objects didn't return any error but when we clicked "Get SIFT Info" threw an error like this:
Image

Any idea what's wrong? I tried with 2 tables (G/L Entry and Warehouse Entries) but same error occured.
Thanks in advance

Regards,
David


Last edited by dsatria on Wed Dec 08, 2010 8:21 am, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Key Performance Tool error
PostPosted: Mon Dec 06, 2010 1:35 pm 
Offline
MVP Microsoft Dynamics NAV

Joined: Thu Jul 31, 2003 12:00 pm
Posts: 639
Location: Nürnberg
Country: Germany (de)
Hi David,

well, I guess you have to debug this - I don't have the tool available, but obviously there's something wrong with the ADO connection string:

There should be a line like this:
Code: Select all
...
ADOConnection.DefaultDatabase(GetCurrentDatabase);
...

And the function should look like this:
Code: Select all
GetCurrentDatabase() : Text[250]
Databases.SETRANGE("My Database", TRUE);
Databases.FINDFIRST;
EXIT(STRSUBSTNO('[%1]', Databases."Database Name"));

If this does not work, maybe you could "hard-code" the default db?!

But: if you are trying to fix some SIFT issues, maybe this could also help:
http://dynamicsuser.net/blogs/stryk/archive/2010/05/29/optimizing-sift-and-vsift.aspx

Regards,
Jörg

_________________
Jörg A. Stryk (MVP - Dynamics NAV)
NAV/SQL Performance Optimization & Troubleshooting
STRYK System Improvement
The Blog - The Book - The Tool


Top
 Profile E-mail WWW  
 
 Post subject: Re: Key Performance Tool error
PostPosted: Wed Dec 08, 2010 7:59 am 
Offline

Joined: Sat Jul 17, 2004 11:10 am
Posts: 64
Location: indonesia
Hi Jörg,

Thanks for your reply

There is a line like you mentioned but with slightly different name, i.e. GetCurrentDB instead of GetCurrentDatabase

But the function code is totally different:
Code: Select all
SessionInfo.SETRANGE(SessionInfo."My Session",TRUE);
IF SessionInfo.FIND('-') THEN
  DBName := SessionInfo."Database Name";

IF (STRPOS(DBName,'.') <> 0) OR
   (STRPOS(DBName,'-') <> 0) THEN
  DBName := '[' + DBName + ']';

EXIT(DBName);

Using Debugger I can assure you that DBName variable contains correct database name.
Is there any other information I can supply you to make things clearer?

Regards,
David

PS. Thanks for the URL to the article regarding SIFT, I'm reading it now...


Top
 Profile  
 
 Post subject: Re: [SOLVED] Key Performance Tool error
PostPosted: Wed Dec 08, 2010 8:29 am 
Offline

Joined: Sat Jul 17, 2004 11:10 am
Posts: 64
Location: indonesia
Hi all,

The problem turned out to be our database name which contains spaces :wink:
So changing the function code will solve it:
Code: Select all
...
IF (STRPOS(DBName,'.') <> 0) OR
   (STRPOS(DBName,'-') <> 0) OR
   (STRPOS(DBName,' ') <> 0) THEN
  DBName := '[' + DBName + ']';
...

Thanks and regards,
David


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum


Search for:
Jump to: