Have you had any luck getting the Macro to display the Folder Path? I saw some code in a later post but wasnāt able to get it working? Please let me know. Thanks in advance.
bjmmoffatt (BOB member since 2009-05-20)
Have you had any luck getting the Macro to display the Folder Path? I saw some code in a later post but wasnāt able to get it working? Please let me know. Thanks in advance.
bjmmoffatt (BOB member since 2009-05-20)
For those that have upgraded to BO XI R2 SP6 we found that the Instance Viewer would NOT work, but I found the solution.
In the MACRO code for the WHERE clause, remove the āSI_SCHEDULEINFO.ā schema name from the SI_STARTTIME.
NEW
WHERE SI_INSTANCE = 1 AND
(SI_UPDATE_TS >=ā" & start_date & āā)AND
(SI_STARTTIME >= 'ā & start_date & āā)AND
(SI_STARTTIME < 'ā & end_date & āā)ā)
OLD
WHERE SI_INSTANCE = 1 AND
SI_UPDATE_TS >=ā" & start_date & āā AND
SI_SCHEDULEINFO.SI_STARTTIME >= 'ā & start_date & āā and
SI_SCHEDULEINFO.SI_STARTTIME < 'ā & end_date & āāā)
Shifty (BOB member since 2005-09-29)
Hello guys, I try to figure out the patch too make this third version work with XI 3.1. When I read post, you said go to thread page 6ā¦Well, Could send the patch again ? Thanks in advance. For me, I used this tools to clean some heavy reportsā¦
patrickfx (BOB member since 2007-10-17)
Rachidb - you rock! Thank you!!!
Roxy21 (BOB member since 2008-10-15)
It is not working with BOXI 3.1 .Can some one give me an update tool for BOXI 3.1?
alex555 (BOB member since 2005-06-14)
The dates donāt seem to handle properly. Iām putting 05/01/2011 00:00:00 for the start of this month and then 05/05/2011 00:00:00 for the end date (end of today).
The start date is being converted to 2011.04.01.23:00:00
and the end date is being converted to 2011.04.05.23:00:00
As the format time function is converting the date into the format of yyyy.mm.dd.hh:nn:ss this looks well out.
If I add a watch to the startdate and enddate variables and edit them manually once they are set it works ok. Does anyone else have this issue?
dopple (BOB member since 2009-06-19)
We just upgraded to 3.1 SP3 FP3.5 and are seeing a similar issue. Iāve updated the libraries and made the other changes necessary to have it run in 3X; it does run and pull back some data but it is not complete.
Something strange is going on with the dates. My guess is that itās related to the bug that was discovered at the time change this spring. We have not yet applied that fix so I canāt be certain.
This is what happened to the dates I used.
Input box
LocalTimeToUTC = 6/10/2011 4:50 a.m.
Resulting dates
Two things:
It appears to not be making the adjustment from GMT to my time zone (CDT), so itās off by 5 hours. Even when I adjusted for that, though, to see our overnight runs, it only brought back parital results. It showed two reports just after midnight, then none from there to around 5:00 a.m., then showed reports after that. Unfortunately, most of my critical stuff runs between the two
I tried the Joe Peters 3X version and it does the same thing, presumably because itās based on this one as far as date manipulation goes.
Has anyone applied that time zone fix and run this afterwards? Has something changed with the date format on the records in the repository? Is there anything else anyone has done to resolve this?
Thanks again for the macro - weāve been using it for quite a while and are missing it now! Instance manager can give us the same information, of course, but not in nearly as tidy a package to review.
Mary
Juddy5 (BOB member since 2002-11-22)
This tool is great. However, I am not a programmer and can only do minor tweaks here and there to code.
In one of the other tools someone built he was able to grab the folder location of the object. His code looks like this:
'------------------------------------------------------------------------
'Get the Path
'------------------------------------------------------------------------
ParentFolderID = rsrow.ParentID
Set tempObj = iStore.Query("SELECT SI_ID, SI_NAME, SI_PARENTID FROM CI_INFOOBJECTS WHERE SI_ID=" & ParentFolderID)
ParentFolderID = tempObj.Item(1).ParentID
Path = "/" + tempObj.Item(1).Title + Path
Do While ParentFolderID <> 0 And ParentFolderID <> 4
Set tempObj = iStore.Query("SELECT SI_PATH, SI_NAME FROM CI_INFOOBJECTS WHERE SI_ID=" & ParentFolderID)
Path = "/" + tempObj.Item(1).Title + Path
ParentFolderID = tempObj.Item(1).ParentID
Loop
Path = "Home" & Path
Rng(RowNum, 6) = Path
Path = ""
How/where would I add this to the code in your xls tool?
giggles7840 (BOB member since 2007-07-13)
Hi giggles7840,
Thereās an easier way to get the path; this is the code I use in VBA:
Function getPath(in_IO As InfoObject)
Dim oIO As InfoObject: Set oIO = in_IO
Dim outString As String
Do While oIO.ID <> 0 And oIO.ID <> 4
If Not oIO.Instance Then outString = oIO.Title & "/" & outString
Set oIO = oIO.Parent
Loop
getPath = Left(outString, Len(outString) - 1)
End Function
Add that function at end of Module1, then change
.Cells(1 + i, j + 1).Value = oInfoObject.Title
to
.Cells(1 + i, j + 1).Value = getPath(oInfoObject)
Joe
joepeters (BOB member since 2002-08-29)
Hi Mary,
Weāre on SP3.1 in XI3 and SP3.4 in XIr2. We applied the I-canāt-believe-this-is-still-a-problem DST fix this spring, and I am not seeing the same problem that you are.
There is an oddity in the way dates are managed. Date conditions in a CMS query are entered in UTC, but the result is displayed in local time (not sure if itās userās local time, or server, in my case they are the same). So a query:
select si_update_ts from ci_infoobjects where si_update_ts between '2011.06.14.04:00:00' and '2011.06.14.08:00:00' order by si_update_ts
will show me results for midnight-4:00AM EDT. Soā¦ Iām not sure whatās causing the problem youāre having, although it is possible that itās related to DST.
Your reports arenāt set to Clean Up Instance, are they? If so, that would explain why theyāre not showing up, since the instance would have been purged.
Joe
joepeters (BOB member since 2002-08-29)
awesome! This worked perfectly! Thank YOU!
giggles7840 (BOB member since 2007-07-13)
I just wanted to say thanks to Rachidb for sharing this tool. With some tweaks itās working out great!!
And a thank you to everyone who asked and answered questions. I was able to get both folder path codes to work. I modified one to pull just the parent folder so I could sort on that column. I also changed the code to pull only pending/recurring reports in the future. All thanks to everyone on this thread (couldnāt have done it without you because Iām a total noob with vbs).
BJSmith (BOB member since 2011-06-06)
Ahlan Rachid,
this is a Helpful tool. Thanks for sharing it with us.
I have two questions concerning your tool:
1-how can I please get the really Message Error from the CI_InfoObjects, because the error Message what I get via your Tool doesnĀt corresponding the error what I get in the Instance Manager for certain Instance? I want to retrieve the Message ĀSI_SUBST_STRINGSĀ from the ĀSI_STATUSINFOĀ, but I donĀt know how to do that.
2-Have you please an Idea why I get the error ĀThe request is not for the current CMS, it is forĀ Ā when I want to refresh the results?
Thank you for your feedback in advance,
Hicham
naidoo (BOB member since 2006-12-16)
Hi rachidb,
This is an excellent tool! Very userful. Thanks for sharing.
I want to extract the report folder path of the instances. Like how we see in Instance Manager of XI3 Ver.
Could you please share an excel that extract that details as well?
Or Can you guide, how to modify the existing macro to extract the Infoview folder path info?
mariasundarraj (BOB member since 2007-03-30)
Thanks rachidb
For sharing with us . This is very useful for me.
lax_lambor (BOB member since 2011-09-27)
Iupdated the libraries for 12.0 XI 3.1sp3, ran fine and quickly. Nice resource
tkline (BOB member since 2009-10-08)
Hello Member
Thanks for the valuable script.
I need to run this script automaticay for every day.
How i can pass current date , without date prompting.
How i hard code userid, password & server name & authentication
without using log on form.
Regards
kksoft2002 (BOB member since 2009-12-10)
Hi Members
When i try to get the size of the instance using the vb macro which is in this download area i get error on this line
.Cells(1 + i, j + 1).Value = oInfoObject.Files.Item(1).Size / 1024 & " KB"
may if there is no value for some instance it will through error.
if some one fix this please pso the code
Regards
Repos
kksoft2002 (BOB member since 2009-12-10)
A very quick-and-dirty solution would be:
On Error Resume Next
.Cells(1 + i, j + 1).Value = oInfoObject.Files.Item(1).Size / 1024 & " KB"
On Error Goto 0
or
If hasFiles(oInfoObject) Then
.Cells(1 + i, j + 1).Value = oInfoObject.Files.Item(1).Size / 1024 & " KB"
End If
....
Function hasFiles(oI as InfoObject) as Boolean
hasFiles=false
On Error Goto wtf
Dim a as Integer : a = oI.Files.Count
If a > 0 Then
hasFiles = true
Exit Function
End If
wtf:
End Function
(untested)
joepeters (BOB member since 2002-08-29)