BExAnalyzer: SAPBEXsetFilterValue and others: runtime error 1004, Intersect
Hello there,
any idea why e.g. SAPBexSetFilterValue does not work any more in BI7.0?
We need to set serveral filter values by macro which worked like a charme in BW3.5.
Now, all functions that have to to with filter values cause a runtime error 1004, saying that the intersect-property of the application object could not be assigned.
Does anyone have the same problem or even a solution or just a snipplet of working code (set or get a filter value).
As far as I've found out, the drill-down-functions may cause the same problem.
Any hints are welcome. Thank you.
Sure, here it is. Simple enough, but not working no matter what I try:
Dim result As Long
' last parameter (atCell) left out. Cursor placed on filter cell for costcenter. If you have a look
' at the API, then the ActiveCell will be used in that case. This worked quite good in BW 3.5
result = Run("SAPBEXSetFilterValue", "DE00DECCR10000", "0HIER")
' The statement above will call the following code inside the API:
' Public Function SAPBEXsetFilterValue(intValue As String, Optional hierValue As String, Optional atCell As Range) As Integer
' extErrorBegin ("3.x API SAPBEXsetFilterValue called")
' If atCell Is Nothing Then Set atCell = Application.ActiveCell
' SAPBEXsetFilterValue = paddin.SAPBEXsetFilterValue(ActiveWorkbook.Name, intValue, hierValue, atCell)
' extErrorEnd
' End Function
' No matter if I use my statement (Run(...)) or call the API statement directly, I always receive a runtime error '1004',
' saying that the intersect-property of application-object could not be assigned.
SAPBEXSetFilterValue worked like a charme in BW3.5. We used it in several workbooks for automation and this becomes a really big problem now in BW7.0.
Any help/idea welcome!
Similar Messages
-
Runtime Error '1004':, Method 'Intersect' of object '_Global' failed
Hello
I am getting a runtime error 1004, can someone tell me why? I am getting the runtime error on the first Application.Intercept statement.
Thank you for your help!
smsemail
Private Sub Worksheet_Change(ByVal Target As Range)
Application.ScreenUpdating = False
Application.DisplayAlerts = False
If Not Application.Intersect(Target, Me.Range("A:A")) Is Nothing Then
lastRow = ActiveSheet.Range("A" & Rows.Count).End(xlUp).Row
If lastRow < 17 Then
Exit Sub
End If
If lastRow > 67 Then
lastRow = 67
End If
Else
Exit Sub
End If
If Not Application.Intersect(Target, Me.Range("A17:A" & lastRow)) Is Nothing Then
Application.EnableEvents = False
If Application.WorksheetFunction.CountA(Worksheets("RIPS").Range("A17:A67")) = 0 Then
Exit Sub
End If
If Application.WorksheetFunction.CountA(Worksheets("RIPS").Range("B17:B67")) = 0 And _
Application.WorksheetFunction.CountA(Worksheets("RIPS").Range("C17:C67")) = 0 And _
Application.WorksheetFunction.CountA(Worksheets("RIPS").Range("D17:D67")) = 0 Then
Exit Sub
End If
If CmdExecute = True Then
Exit Sub
End If
If CmdClear = True Then
Exit Sub
End If
Worksheets("RIPSSummary").Activate
lastRow = ActiveSheet.Range("A" & Rows.Count).End(xlUp).Row
Set SourceRange = Application.Intersect(Range("A2:A" & lastRow), ActiveSheet.UsedRange)
MsgBox "Source Range: " & SourceRange
Worksheets("RIPS").Activate
lastRow = ActiveSheet.Range("A" & Rows.Count).End(xlUp).Row
Set TargetRange = Application.Intersect(Range("A17:A" & lastRow), ActiveSheet.UsedRange)
MsgBox "Target Range: " & TargetRange
Exit Sub
wsDeleted = False
For Each acell In SourceRange.Cells
RecordFound = True
If Not IsEmpty(acell.Value) Then
Set C = TargetRange.Find(acell.Value, LookIn:=x1values)
If C Is Nothing Then
RecordFound = False
End If
If RecordFound = False Then
wsDeleted = True
For Each Worksheet In Worksheets
If Worksheet.Name = acell.Value Then
Worksheet.Delete
End If
Next Worksheet
End If
End If
Next acell
If vbKeyDelete Or _
vbKeyClear Then
r = lastRow
Do Until r < 17
If Worksheets("RIPS").Range("A" & r).Value = "" Then
Rows(r).Delete
End If
r = r - 1
Loop
End If
Application.EnableEvents = True
End If
Application.ScreenUpdating = True
Application.DisplayAlerts = True
End SubIt should work but maybe there's something about your workbook we can't see.
In passing generally best not to disable screenupdating, alerts or events unless need to do so. More importantly though you should ensure they always get reset. As written you have several Exit Sub's before any code that resets them. Also in case of an error
consider resetting them in an error handler. -
I have a workbook with VBA and I am getting a 'Run-time Error 1004' and when I hit the debug the process stops at below lines of codes:
' Insert blank rows, one to hold each period and one for the total line
With resultArea.Cells(RowNum, KeyFigCol - 1) {it says Application defined or Object defined error}
If .Value <> "" Then
I saw other threads for this error and I checked the OSS-429183. Also my macro>>security is set to low.
Any suggestions? Plus I am getting this error only in dev environment, stage & production work fine. I have verified the VBA code and they all have same code.Hi All, I still have this problem. I have the same VBA code in all the systems, but it gets error in development system only. its working fine in other systems. That's what breaks my head:(
Any suggestions. I have attached my VBA code.
'* Variable Declarations
Dim Column As Integer
Dim StrPos As Long
Dim TempStr As String
Dim RowNum As Integer
Dim StrRowNum As Integer
Dim EndRowNum As Integer
Dim EndColNum As Integer
Dim KeyFigCol As Integer
Dim DelStrCol As Integer
Dim LabelPos As Integer
Dim ActiveCellSave As String
Dim MonthFlag As String
Dim MonthFlagPrev As String
Dim MonthColStr As Integer
Dim MonthColEnd As Integer
Dim MonthCol1st As Integer
Dim MatMonRow As Integer
Dim ColPrjAvl As Integer
Dim ColTopGrn As Integer
Dim ColTopYel As Integer
Dim ColTopRed As Integer
Dim ColRmdRpl As Integer '001A
Dim ColMaxQty As Integer
Dim ColRplQty As Integer
Dim First As Boolean
Dim NumPeriods As Integer '001A
Dim UsgPerDay As Integer '001A
Dim StartTime
Dim EndTime
' Check the query id to determine which sheet to activate
If queryID = "SAPBEXq0016" Then 'Monthly Query
'Application.ScreenUpdating = False
'Set sheet "Inventory Montly Analysis" to active
Sheets(3).Activate
NumPeriods = 13 '001A
'* 001A: Set "Inventory Weekly Analysis" to active
ElseIf queryID = "SAPBEXq0018" Then ' Weekly query
Sheets(4).Activate
NumPeriods = 24
'* 001A: Set "Inventory Replenishment" to active
ElseIf queryID = "SAPBEXq0017" Then ' Replenishment Detail query
Sheets(6).Activate
NumPeriods = 0
Else
Exit Sub
End If
'* 001A: End of new code
'* Initialization Routines
First = True
' For performance testing, save off the start time of the macro
StartTime = Time
' Save off the current cell location so that we can restore that location
' when formatting is compelte
ActiveCellSave = ActiveCell.Address()
If ActiveCell.Value <> "No applicable data found." Then
' Determine the First Row in the spreadsheet where query results are displayed
' The first row will be stored in variable RowNum
TempStr = resultArea.Address(RowAbsolute:=False, ColumnAbsolute:=False)
StrRowNum = 0
Do While StrRowNum = 0
StrRowNum = Val(TempStr)
If StrRowNum = 0 Then
TempStr = Mid(TempStr, 2, 20)
End If
If TempStr = "" Then
Exit Do
End If
Loop
' Determine the Last Row in the spreadsheet where query results are displayed
' The last row will be stored in variable EndRowNum
TempStr = resultArea.Address(RowAbsolute:=False, ColumnAbsolute:=False)
StrPos = InStr(TempStr, ":")
TempStr = Right(TempStr, Len(TempStr) - StrPos)
EndRowNum = 0
Do While EndRowNum = 0
EndRowNum = Val(TempStr)
If EndRowNum = 0 Then
TempStr = Mid(TempStr, 2, 20)
End If
If TempStr = "" Then
Exit Do
End If
Loop
' Determine the Last Column in the spreadsheet where query results are displayed
' The last column number will be stored in EndColNum
TempStr = resultArea.Address(RowAbsolute:=False, ColumnAbsolute:=False, ReferenceStyle:=xlR1C1)
StrPos = InStr(TempStr, ":")
If StrPos > 0 Then
TempStr = Right(TempStr, Len(TempStr) - StrPos)
StrPos = InStr(TempStr, "C")
If StrPos = 0 Then
EndColNum = 255
Else
TempStr = Right(TempStr, Len(TempStr) - StrPos - 1)
EndColNum = Val(TempStr)
End If
End If
' Clear all of the old contents below the query result area
TempStr = Format(EndRowNum + 1) + ":" + Format(65536)
ActiveSheet.Rows(TempStr).Select
Selection.Clear
' Determine the location of various key figure columns needed in subsequent processing
KeyFigCol = 0
For Column = 1 To EndColNum
' Find the start column for the key figures - Indicated by the first column
' with a dash "-" character in it.
If InStr(resultArea.Cells(1, Column).Value, " - ") <> 0 Then
If KeyFigCol = 0 Then KeyFigCol = Column
End If
' Find the Projected Available Column
If (ColPrjAvl = 0) And (InStr(resultArea.Cells(1, Column).Value, "Proj") <> 0) Then
ColPrjAvl = Column
End If
' Find the Top of Green Column
If (ColTopGrn = 0) And (InStr(resultArea.Cells(1, Column).Value, "Top of Green") <> 0) Then
ColTopGrn = Column
End If
' Find the Top of Yellow Column
If (ColTopYel = 0) And (InStr(resultArea.Cells(1, Column).Value, "Top of Yellow") <> 0) Then
ColTopYel = Column
End If
' Find the Top of Red Column
If (ColTopRed = 0) And (InStr(resultArea.Cells(1, Column).Value, "Top of Red") <> 0) Then
ColTopRed = Column
End If
' Find the Recommended Replenishment Quantity
If (ColRmdRpl = 0) And (InStr(resultArea.Cells(1, Column).Value, "Recommended Replenishment Qty") <> 0) Then
ColRmdRpl = Column
End If
' Find the Usage Per Day
If (UsgPerDay = 0) And (InStr(resultArea.Cells(1, Column).Value, "Usage Per") <> 0) Then
UsgPerDay = Column
End If
' Find the Maximum Order Column
If (ColMaxQty = 0) And (InStr(resultArea.Cells(1, Column).Value, "Maximum Order Quantity") <> 0) Then
ColMaxQty = Column
End If
' Find the Recommended Replenishment Column
If (ColRplQty = 0) And (InStr(resultArea.Cells(1, Column).Value, "Recommended Replenishment") <> 0) Then
ColRplQty = Column
End If
Next Column
'* Begin of main formatting loop
'* Logic for Recommended Repl Highlighting
If NumPeriods = 0 Then
' Highlight the Recommended Replenishment Quantity
For RowNum = 2 To EndRowNum
If resultArea.Cells(RowNum, ColRplQty).Value > resultArea.Cells(RowNum, ColMaxQty).Value Then
resultArea.Cells(RowNum, ColRplQty).Interior.ColorIndex = 7 'Highlight Red
End If
Next RowNum
'* Logic for Monthly and Weekly Queries
Else
' Work from the bottom up, inserting new lines and folding the keyfigures
' downward into one row for each month
For RowNum = EndRowNum To 2 Step -1
' Insert blank rows, one to hold each period and one for the total line
With resultArea.Cells(RowNum, KeyFigCol - 1) This is where it stops & gives Runtime Error 1004
If .Value <> "" Then
' For the bottom-most characteristic row, we must cut and paste differently to ensure
' the cells formats are properly pasted in the new rows
If First Then
TempStr = Format(RowNum) + ":" + Format(RowNum + NumPeriods)
resultArea.Rows(TempStr).Select
Selection.Insert Shift:=xlDown
resultArea.Rows(RowNum + NumPeriods + 1).Select
Selection.Cut
resultArea.Rows(RowNum).Select
ActiveSheet.Paste
First = False
' If this is the first characteristic record, and it resides in row 2, then we know that the
' query only has one row of data - special formatting is required in this situation
If RowNum = 2 Then
resultArea.Cells(2, 1).Select
Selection.Copy
Range(ActiveSheet.Cells(StrRowNum + 2, 1), ActiveSheet.Cells(EndRowNum + NumPeriods, KeyFigCol - 1)).Select
Selection.PasteSpecial Paste:=xlFormats, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False
End If
' Not the first row, use normal processing
Else
TempStr = Format(RowNum + 1) + ":" + Format(RowNum + NumPeriods)
resultArea.Rows(TempStr).Select
Selection.Insert Shift:=xlDown
End If
' As we insert rows for each characteristic row, we need to adjust the end row
' number accordingly
EndRowNum = EndRowNum + NumPeriods
' Initialize variables used for each set of month processing
MatMonRow = RowNum + 1
MonthFlagPrev = ""
MonthFlag = ""
MonthColStr = 0
' Scan key figure column headings from left to right, looking for changes in month
For i = KeyFigCol To EndColNum + 1
' Get the month text for each column
MonthFlag = ""
TempStr = resultArea.Cells(1, i).Value
MonthFlag = Mid(TempStr, InStr(TempStr, "-") + 1, 15)
' If we move into a new month, then copy and paste the previous month downward
If ((MonthFlag <> MonthFlagPrev) And (MonthFlagPrev <> "")) Or (i = EndColNum + 1) Then
If DelStrCol = 0 Then DelStrCol = i + 1 ' Capture last key figure of first month
If i = EndColNum + 1 Then i = i + 1 'For results row, need to extend by one
' Copy and paste values for previous month
Range(resultArea.Cells(RowNum, MonthColStr), resultArea.Cells(RowNum, i - 1)).Select
Selection.Copy
resultArea.Cells(MatMonRow, MonthCol1st).Select
ActiveSheet.Paste
' Paste the Month text into the row heading
resultArea.Cells(MatMonRow, MonthCol1st - 1).Value = MonthFlagPrev
If MonthFlagPrev = " Average Result" Then
Range(resultArea.Cells(MatMonRow, MonthCol1st - 1), resultArea.Cells(MatMonRow, EndColNum)).Select
Selection.Interior.ColorIndex = 36
End If
With resultArea.Cells(MatMonRow, ColPrjAvl)
If .Value >= resultArea.Cells(RowNum, ColTopGrn).Value Then
.Interior.ColorIndex = 43 'Green Green
ElseIf .Value >= resultArea.Cells(RowNum, ColTopYel).Value Then
.Interior.ColorIndex = 14 'Green
ElseIf .Value >= resultArea.Cells(RowNum, ColTopRed).Value Then
.Interior.ColorIndex = 44 'Yellow
Else
.Interior.ColorIndex = 7 'Red
End If
End With
MonthColStr = i
MatMonRow = MatMonRow + 1
End If
' Set variables on first pass through
If MonthColStr = 0 Then
MonthColStr = i
MonthCol1st = i
MonthFlagPrev = MonthFlag
End If
' Capture the previous month text
If MonthFlagPrev <> "" Then
MonthFlagPrev = MonthFlag
End If
Next i
' Clear out the key figure data at the lowest characteristic level
Range(resultArea.Cells(RowNum, KeyFigCol), resultArea.Cells(RowNum, EndColNum)).Select
Selection.ClearContents
End If
End With
Next RowNum
' Strip out the month text from column headings
For i = KeyFigCol To DelStrCol
LabelPos = InStr(resultArea.Cells(1, i).Value, "-")
If LabelPos > 1 Then resultArea.Cells(1, i).Value = _
Left(resultArea.Cells(1, i).Value, LabelPos - 1)
Next i
' Remove Extraneous columns (months 2-12)
Range(resultArea.Cells(1, DelStrCol - 1), resultArea.Cells(EndRowNum, EndColNum + 1)).Select
Selection.Clear
' Format Column Headings with appropriate column widths and heights
resultArea.Rows(1).Select
With Selection
.HorizontalAlignment = xlLeft
.VerticalAlignment = xlCenter
.WrapText = True
.Orientation = 0
.AddIndent = False
.IndentLevel = 1
.ShrinkToFit = False
.MergeCells = False
.RowHeight = 31.5
End With
' 001A: Add empty cells for Recommended replenishment
If ColRmdRpl <> 0 Then
For i = 2 To EndRowNum
If resultArea.Cells(i - 1, 1) = "" Then
Range(resultArea.Cells(i, ColRmdRpl), resultArea.Cells(i, ColRmdRpl + 4)).Insert Shift:=xlToRight
End If
Next i
Columns(ColRmdRpl + 5).Copy
Range(Columns(ColRmdRpl), Columns(ColRmdRpl + 4)).PasteSpecial Paste:=xlFormats, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False
Application.CutCopyMode = False
If UsgPerDay <> 0 Then
For i = 2 To EndRowNum
If resultArea.Cells(i - 1, 1) = "" Then
resultArea.Cells(i, UsgPerDay).Insert Shift:=xlToRight
End If
Next i
Columns(ColRmdRpl + 5).Copy
Range(Columns(ColRmdRpl), Columns(ColRmdRpl + 4)).PasteSpecial Paste:=xlFormats, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False
Application.CutCopyMode = False
End If
For i = 3 To EndRowNum
If resultArea.Cells(i - 1, 1) <> "" Then
Range(resultArea.Cells(i, ColRmdRpl + 1), resultArea.Cells(i + NumPeriods - 1, ColRmdRpl + 4)).Select
Selection.FillDown
Range(resultArea.Cells(i, UsgPerDay), resultArea.Cells(i + NumPeriods - 1, UsgPerDay)).Select
Selection.FillDown
End If
Next i
' Remove Extraneous columns (months 2-12)
Range(resultArea.Cells(1, DelStrCol - 1), resultArea.Cells(EndRowNum, EndColNum + 1)).Select
Selection.Clear
End If
' 001A: End of new code
End If
End If
Columns("A:BA").ColumnWidth = 10
resultArea.Columns.AutoFit
' Set Zoom level at 75%
ActiveWindow.Zoom = 75
' Restore the active cell
Range(ActiveCellSave).Select
' EndTime = Time
' MsgBox StartTime
' MsgBox EndTime
' StartTime = EndTime - StartTime
' MsgBox StartTime
' End If
' End If
'Application.ScreenUpdating = True
End Sub -
Pivot table runtime error 1004
Hello, i have problem with creating pivot table using vba...this is the code:
ActiveWorkbook.PivotCaches.Create(SourceType:=xlDatabase, SourceData:= _
"Zdroj!R1C1:R" & Pocet & "C5", Version:=xlPivotTableVersion12).CreatePivotTable _
TableDestination:="Vysledek!R1C1", TableName:="Kontingenční tabulka 2", _
DefaultVersion:=xlPivotTableVersion12
every time when i run macro i receive this message: runtime errror 1004...
Please can you help me solve this issue???
Thanks a lot...
MathewYou can only run that macro code once - because then you have the pivotcache existing and cannot add the same one again. Try it this way:
On Error Resume Next
ActiveWorkbook.PivotTables("Kontingencní tabulka 2").PivotCache.Delete
ActiveWorkbook.PivotCaches.Create(SourceType:=xlDatabase, SourceData:= _
"Zdroj!R1C1:R" & pocet & "C5", Version:=xlPivotTableVersion12).CreatePivotTable _
TableDestination:="Vysledek!R1C1", TableName:="Kontingencní tabulka 2", _
DefaultVersion:=xlPivotTableVersion12 -
Using Runtime exec() method to run java files and return runtime errors
Hi
I'm writing a java editor and I use
Runtime.getRuntime().exec(command)
to compile the java files. That works fine and I deal with the returned errors using the getErrorStream().
My questions are:
1. Can I use the same technique for returning runtime errors. In any posts I've read the process runs from begining to end, returning the errors after completion. How do I return the errors of the app as they happen interactively?
2. If i cant use the exec and getErrorStream() methods then does anyone know how it is done?
Thanks in advance for any help!Read this:
http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html
MOD -
Acrobat v9 Pro and Standard Runtime Error!
My company recently got in the CD's from Adobe for Acrobat 9 Professional and Acrobat 9 Standard.
I installed Acrobat 9 Pro on one of our systems. The system got a runtime error every time Adobe Acrobat started citing "C:\Program Files\Adobe\Acrobat 9.0\Acrobat\Acrobat.exe This application has requested the Runtime to terminate it in an unusal way. Please contact the application's support team for more information."
Initially, I thought it was an issue with that system. So, I installed Acrobat Standard on two other systems. Both units get the same error.
Of the 3 units 2 are identical IBM workstations with some different software installed. 1 is an HP system. The OS is a fairly clean Windows XP SP2 otherwise very stable installation.
I searched Adobe forums and here but haven't come across much version 9 questions/comments.
Initially, I was going to fully uninstall Acrobat and try the installation again. However, now that 2 other systems are getting the same error, I feel it would be a waste of time.
Any ideas on what to look for to resolve this issue?
Previous version was the latest v8 which 9 uninstalled.
Thanks in advance!
-Dean
EDIT: I did come across this for version 8 and tried the same fix with 9, but to no effect:
================================================================================
C++ Runtime error after launching Acrobat or Adobe Reader 8 on Windows
Issue
When you launch Adobe Acrobat 8 Standard, Professional, or Adobe Reader 8 on Windows, an error occurs:
Runtime Error!
Program: C:\Program Files\Adobe\Acrobat 8.0\Acrobat\Acrobat.exe
This application has requested the Runtime to terminate in an unusual way. Please contact the application's support team for more information.
Solution
Disable the Updater.api plug-in.
Navigate to where Acrobat or Adobe Reader is installed, usually
C:\Program Files\Adobe\Acrobat 8.0\Acrobat\plug_ins
or C:\Program Files\Adobe\Reader 8.0\Reader\plug_ins
Rename the Updater.api plug-in to Updater.api.old
Relaunch Acrobat or Reader.So here is the flaw... Since i dont see many people saying WHAT the flaw is.
==== THIS IS WITH ROAMING PROFILE CRASHES! ====
Adobe's program iterates the network path from left to right, skipping the first word: \\Server\Folder1\Folder2\Folder3\APPLICATION DATA as it searches a user's profile for the APPLICATION DATA folder.
So starting at FOLDER1 it checks to see if it can "create" a folder. It doesnt do it, but it tries to check its access. If your not in the users profile at this point, the program MOST LIKELY cannot because its a directory NOT owned by the user. THe previous folders is something you wouldn't give NORMAL users access to.
After the program FAILS to "create" its folder because it cannot -
The program Crashes:
*R6025 - Pure Virtual function call
* The exception unknown software exception (0x40000015) occurred in the application at location 0x2e80f5e3
* C++ runtime error
* WINDOWS NAME Collision error.
=== ITS ALL OF THESE! Same error, different points in the crashing ===
Solution?
I create a network drive DIRECTLY to the profile, then I update the registery to make that the WINDOWS APPDATA path. ALL of this is done on the user logon scripts. So it was just "solved" one day, except for a new drive letter appearing.
(Added to login script)
net use l: \\SERVER\USER PROFILE TREE\USER PROFILE
REG ADD "HKEY_CURRENT_USER\software\Microsoft\windows\CurrentVersion\Explorer\User Shell Folders" /v AppData /t REG_EXPAND_SZ /d "l:\Application Data" /f
For our work we use: \\SERVER\USER PROFILE TREE\%USERNAME%\%COMPUTERNAME% - so each user has SEPERATE data per computer they are on.
ADOBE - PLEASE update your code so it doesnt iterate like this! If it does RESUME on error, to see if its recoverable before the END of the interation. These are simple mistakes...
THIS will also fix the SIMILAR / SAME(?) BUG in ROXIO products. -
IPad and iPhone runtime errors after ios 6 update at one site I use
I use an I pad and iPhone 4S. Did iOS 6 updates and have no problems. However today I went to one site, the NGC collectors society ( registery section requiring sign in) that I use and get the following error below. I have cleared the cookies on my iPad and restarted, but still get the same error. I also made sure java script was on. The same with the iPhone. So far this is the only problem I have had with the new ios6. The site works fine with my laptop which is a MacBook Pro that is updated with the latest system software.
Server Error in '/' Application.
Runtime Error
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.
Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>
Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
</system.web>
</configuration>Hi,
Try to deactivate the FACEBOOK INTEGRATION (go to settings).. After i removed it to my iphone 4 All apps are now doing fine... No more crashing of apps :-) hope it works for you...
The problem is with facebook, go to settings / facebook / your user name and delete your account, the do a hard reset (home+power for some seconds).
dont need to delete the facebook app! just delete your integrate account from settings -
VBA Runtime Error 1004 "Application-defined or Object-defined error"
I have code VBA code written in MS Access 2010 (.mbd file) to write data into an Excel file (.xls file). Below is the code to write data into that excel file. When you run this code, it always throws Error#1004 "Application-defined or Object-defined
error". When you debug the code (F8) or run it (F5), it runs absolutely fine with out any issues. I am still not able to figure it out on what exactly the issue is. This code works fine when executed in MS Access 2007.
Below is thr code that's getting executed and when it fails, the focus is set on the 3rd last line of the code marked in double astriek mark.
Sub PopulateReport(appExcel As Object, testcam)
Dim Site As String, intRec As Integer, i As Integer, cnt As Integer, intRecSet As Integer, cntr As Integer
Dim F1 As String, F2 As String, F3 As String, F4 As String, F5 As String, F6 As String, F7 As String
Dim F8 As String, F9 As String, F10 As String, F11 As String, F12 As String, F13 As String, CAMDate As Date
Close
i = 0
cnt = 0
cntr = 0
Set cnn = CurrentProject.Connection
rec.Open "SELECT * FROM Site", cnn, adOpenStatic, adLockPessimistic
rec.MoveLast
rec.MoveFirst
intRec = rec.RecordCount
Do Until cnt = intRec
rec.MoveLast
rec.MoveFirst
rec.Move cnt
Site = rec(4)
Select Case Site
Case "Fort Worth"
cntr = 0
recset.Open "SELECT * FROM Employee", cnn, adOpenStatic, adLockPessimistic
recset.MoveLast
recset.MoveFirst
intRecSet = recset.RecordCount
appExcel.Application.Goto Reference:="START_FW_CL"
Do Until cntr = intRecSet - 1
appExcel.Selection.EntireRow.Copy
appExcel.Selection.EntireRow.Insert
cntr = cntr + 1
Loop
appExcel.Application.CutCopyMode = False
appExcel.Application.Goto Reference:="START_FW2_CL"
go = appExcel.Application.Range("START_FW2_CL")
cntr = 1
With appExcel.Worksheets("Accts. > Clearing").[START_FW2_CL]
Do Until recset.EOF
**.Offset(cntr, 0) = recset(0)**
.Offset(cntr, 1) = recset(1)
.Offset(cntr, 2) = recset(2)
End SubWhat's wrong about it? It can only copy what you chose to have in the recordset. If you only want some fields or fields in a different order, replace
SELECT * FROM with
SELECT Field1, Field2, etc
CopyFromRecordset is bay far the best method and runs much faster.
Rod Gill
Author of the one and only Project VBA Book
www.project-systems.co.nz -
JRE 5.0 and MS Runtime Error!
When I inadvertently let the 5.0 JRE install on my machine, I started getting a "Runtime Error!" in MS Windows Explorer.
The error was like this:
Microsoft Visual C++ Runtime Library
Runtime Error!
Program: C:\WINNT\explorer.exe
This application has requested the Runtime to terminate it in an unusual way.
Please contact the applications support team for more information.
Everytime I opened Windows Explorer, it would poppup this message and then crash the explorer. We tried multiple things to fix it, lots of ideas on the internet, but the only thing that would stop it is removing the JRE. Anyone else getting the problem?
FYI
I did not have google toolbar on my machine
my computer is well protected against virus' and adwaresYes, I'm having this same issue after the exact same thing...let JRE 5.0 install, over-writing the old JRE. I'm going to uninstall the 5.0 and see if it helps.
I'm running XP on a work machine and I've done everything else...registry cleaning, virus scans (in safe mode), Ad-Aware scan, no Google toolbar. I've cleaned the mcapfbho.dll file, removed all unneeded add-ons in Office, Outlook 2003, and IE 5.5. I've disabled McAffee's spamkiller and Exchange sniffer. I've ran ISPFix.exe and BHO Captor....all this and still get the error.
Hopefully removing the JRE 5.0 works. -
IPhone and Tunes Runtime Error
I connected my iPhone to my computer and opened iTunes in order to sync my phone. iTunes started up but I got the following message:
Microsoft Visual C++ Runtime Libray
Rutime Error!
Program: c:\Program Files\iTunes\iTunes.exe
This application has requested the Runtime to terminate it in an unusual way. Please contact the applications support team for more information.
Anyone have any ideas on what I should do?
Thanks!
Windows XPI got this too, however, I did not update my version of windowz XP in the last few weeks, certainly not since I got the phone. For me, getting this message was completely by surprise and judging by the time I am guessing Apple tried to push something (possibly) through iTunes, maybe something to the effect of "live" updates?
Here is my thinking. I have not updated anything on my computer since getting my phone. Last night I synch my phone and I got that same error. I checked the apple software update and sure enough there was a new version of iTunes, the 7.3.1 version. Prior to downloading that I did reboot a few times, thought maybe it was just a random issue, finally I installed 7.3.1 and all problems went away.
Based on that I know something outside of my doing occurred within iTunes. I am just not sure what it is. I was on the ilounge forums and now came here and on both forums there was a report of this. Interesting at that. -
"file in use" and other "unexpected" error messages
I may have found a bug in Tiger, and in case nobody has a plausible explanation for the problem, I will send a bug report:
I copied a locked file (shows a little lock symbol in its icon) from one Mac to the other via a network share (using Finder). I then tried to open that file on the other Mac, but failed with the error message "file in use". But the computer the file had been copied from had already disconnected and shut down, and the Mac I had copied the file to had booted once.
I then looked at the file security settings, but found nothing abnormal. But I was not allowed to change any of the security settings (owner and permissions).
I then tried the Terminal and tried commands like "sudo chmod" or "sudo chown", and got nothing but error messages.
What kind of operating system does not allow the supervisor ("root") to change file permissions?!?
I then tried to repair the volume, but DiskUtility thinks all is OK. Fine. And the file is obviously NOT in use (otherwise the volume could not have been unmounted).
I finally tried the tool SetFileInfo from the development system to change permissions and type/creator. "sudo SetFileInfo -whatever" gives "unexpected error". Aha, "unexpected". So there is something wrong in Denmark. Or California.
At least there is one hint what's going wrong: GetFileInfo shows an abnormal type/creation combination, something like "brok" and "macs".
The only thing I finally managed to do with the file was "sudo rm". I got some warning about unknown user and unknown group and override whatever, then the file was deleted. At least I think so. After removing the "locked" flag the copy process went fine, and the copy of the file could be opened on the other Mac, so it seems that there is a problem with copying "locked" files.Thank you for that hint! It does not fix the bug, but opens a way to a workaround.
I repeated the test, i.e. copied a locked file, and indeed the copy is protected with a "uchg" flag.
Removing the "uchg" flag still left the file locked, i.e. no other attribute (owner/group/rwx) could be changed. But the SetFile command now was able to remove the creator ('MACS') and type ('brok') settings.
After that the "second lock" had been removed, and now the "locked" attribute could be removed, and after having removed this third lock the file was accessible.
So I think that was enough of (unpaid) investigation, and I am going to send a bug report to Apple. -
Possible solution for -8 and other connection errors
I've been struggling recently to make connections with people, often seeing the -8 error. This happened even with the most simple network setup we could find, with our routers either running with uPnP enabled or disabled, and ports forwarded or not. Often we could connect individually to the Apple test accounts, but not each other.
The fix that worked for me, and also for someone else on these boards, was to look at our network "ports" on the Macs themselves. Not the TCP/UDP ports, but the "ethernet" , "airport", etc.
If you open system preferences, Network, and from the Show: dropdown at the top choose "Network Port Configuration" you will see the hardware network ports on your machine. If you use your machine in multiple environments, such as with a wired Ethernet port, Airport, perhaps a Firewire network too, your Mac may have several IP addresses assigned to itself, even if only one is active. Installing virtualization software such as Parallels adds more ports here, with more IP numbers.
Whilst running iChat in debug mode, and watching outbound connections through Little Snitch, I saw that firstly iChat thought I had multiple IP addresses which it attempted to open uPnP with, and secondly my outbound packets had the private internal IP address of one of the Parallels network ports the person I was trying to communicate with - which would never be delivered.
What we did was disable all the ports in the System Preferences described above, except for the one in use. We then restarted iChat and our video streams opened! I believe that iChat simply gets confused about which IP address to do its uPnP mojo with, and disabling the ones not in use makes it choose the correct one.
If you follow this advice, remember to re-enable the ports you disable when you use want to use them in future.
I'm convinced this is the cause of the problem - even when I use my MacBook behind a commercial locked down Watchguard firewall the video conferencing still works, which suggests that it's not the opening of ports through the firewall that's the issue, at least for some people.
I hope this is useful information for people struggling with -8 errors - let me know how you get on.Intel macs, since 25 febr.
"watching outbound connections through Little
Snitch"
Interrupted connections under some circumstances
after applying the AirPort Extreme 2007-001 update:
This is (often) soluble by disabling any third-party
wireless signal monitoring or sniffing utilities.
I don't think Little Snitch was causing any problems, for me at least. It did let me see that it was trying to talk to the other machine's non-active IP address, which is what led me to turning off the other network ports.
It's quite informative to see which TCP and UDP ports are being actively used, and where they're going. -
SAP Crystal Reports 2011: Error INS00140 and other install errors
Hi all,
There have been many customers who have downloaded the Crystal Reports 2011 installation package and have run into an error when the installer attempts to recognize the keycode being used. The error received is "The Product Keycode is not valid INS00140."
This thread is meant to track all current resolutions that have been determined based on troubleshooting with customers thus far. In addition, the thread will provide you with the list of things that we need to know in order to properly troubleshoot the issue.
Before attempting any of the steps below, please be sure that you are using the latest version of Crystal Reports 2011 which is SP02. You can download this version from the SAP [website|http://www.sap.com/solutions/sap-crystal-solutions/query-reporting-analysis/sapcrystalreports/index.epx].
Coy
====================
Resolution Options
Windows XP & Microsoft Visual C++ Redistributable
If you are installing Crystal Reports 2011 on Windows XP, then you need to ensure that the following Microsoft patches are not installed on the machine. You can check this by using the Add / Remove Programs dialogue.
KB2467175
KB2467174
KB2467173
If any of these are installed, then please remove them before attempting to install Crystal Reports 2011.
Installing with Dashboard Design 2011 or Presentation Design 2011
If you are installing Crystal Reports 2011 on the same machine as Dashboard Design 2011 or Presentation Design 2011, then there may be a problem with the registry key that points to the location of the keydecoder DLL. To check this, launch run regedit and navigate to the following location:
HKEY_LOCAL_MACHINE\SOFTWARE\SAP BusinessObjects\Suite XI 4.0\Shared Tools\keydecoder.dll
You want to make sure that the "path" key is pointing to the valid path for the keydecoder.dll. The correct path to the DLL should be: C:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\win32_x8keydecoder.dll.
Uppercase License Key
In addition to the above, you need to make sure that you are entering the license key in all uppercase characters. There is a current issue with the installer where it does not accept lower case characters.
Fix - Coming in SP02, but can implement manually for now
Locate the BCM-4-0.dll.2.Config file in the <install package directory>\dunit\product.crystalreports-4.0-core-32\actions
(replace crystalreports with crystalreportsjava for CR for Ent and xcelsius for dashboards)
Open BCM-4-0.dll.2.Config
Locate this line:
<bindingRedirect oldVersion="8.0.50727.0-8.0.50727.1434" newVersion="8.0.50727.4053" />
Modify the oldVersion number to make the line like this one:
<bindingRedirect oldVersion="8.0.50727.0-8.0.50727.4053" newVersion="8.0.50727.4053" />
This should allow you to install without issue.
Further Troubleshooting
If none of the above helps to resolve the issue, then we need the following:
The installation logs from the following folder: C:\Documents and Settings\<YOUR USER NAME>\Local Settings\Temp\<DATE OF YOUR LAST ATTEMPTED INSTALLATION>
The results from attempting to run the keycode validator directly. You can find it under the folders that contain the installation package. For example, C:\Documents and Settings\<YOUR USER NAME>\My Documents\CrystalReports2011\DATA_UNITS\CrystalReports\dunit\product.crystalreports-4.0-core 32\actions\isKeyCodeValid.exe -keycode <YOUR KEYCODE> -version 140 -property CR.EnableCR
You should submit a new forum post with relevant details about the error and provide links to download the logs generated by following the above steps.
Edited by: Don Williams on Dec 22, 2011 7:53 AMThen try these:
1. Download the latest version of the installation package for Crystal Reports 2011. To verify the version of extracted package, open productid.txt file located at: {installation package}\DATA_UNITS\CrystalReports\.
Make sure it is not less than 14.0.2...
2. Where to download Crystal Reports 2011 installation from: - free trial from SAP Online shop http://www.sap.com/solutions/sapbusinessobjects/sme/freetrials/index.epx - from SDN Community page http://service.sap.com/sap/bc/bsp/spn/bobj_download/main.htm - from Service Market Place http://service.sap.com/sbop-downloads Note: downloads from all above listed locations are fully functional product installations. Trial version defined by expiring key code, not by functionality limitations.
3. Copy the installation package to a hard drive if possible to avoid any networking issues.
4. Login to the machine as Local ADMINISTRATOR.
5. Temporary disable any kind of firewall, antivirus, network security etc., if possible.
6. On the latest versions of Windows, even if logged in as local Administrator, right-click the setup.exe and select "Run as Administrator". If do not have Administrator account, right click "Run as" Select current user and uncheck the "Protect my computer and data from unauthorized program activity".
7. Make sure there is enough space on the computer. If not sure about the space, run "Custom" installation with minimum components. Non-mandatory components could be added at any time.
8. Finally, if there is an existing "InstallData" folder under C:\Program Files (x86)\SAP BusinessObjects rename it to "InstallDataOLD"
Edited by: Don Williams on Dec 22, 2011 7:51 AM -
Hi, I have a Flash file someone else created that I need to debug and repair.
I get the following errors, when running debug:
Symbol 'nms_new_all.flv', Layer 'Layer 6', Frame 1, Line 1, Column 40
1172: Definition de.alex_uhlmann.animationpackage could not be found.
Symbol 'nms_new_all.flv', Layer 'Layer 6', Frame 1, Line 2, Column 50
1172: Definition de.alex_uhlmann.animationpackage.animation could not be found.
Symbol 'nms_new_all.flv', Layer 'Layer 6', Frame 1, Line 3, Column 48
1172: Definition de.alex_uhlmann.animationpackage.drawing could not be found.
Symbol 'nms_new_all.flv', Layer 'Layer 6', Frame 1, Line 4, Column 48
1172: Definition de.alex_uhlmann.animationpackage.utility could not be found.
Symbol 'nms_new_all.flv', Layer 'Layer 6', Frame 1, Line 5, Column 31
1172: Definition com.robertpenner.easing could not be found.
Symbol 'nms_new_all.flv', Layer 'Layer 6', Frame 1, Line 1, Column 40
1172: Definition de.alex_uhlmann.animationpackage could not be found.
Symbol 'nms_new_all.flv', Layer 'Layer 6', Frame 1, Line 2, Column 50
1172: Definition de.alex_uhlmann.animationpackage.animation could not be found.
Symbol 'nms_new_all.flv', Layer 'Layer 6', Frame 1, Line 3, Column 48
1172: Definition de.alex_uhlmann.animationpackage.drawing could not be found.
Symbol 'nms_new_all.flv', Layer 'Layer 6', Frame 1, Line 4, Column 48
1172: Definition de.alex_uhlmann.animationpackage.utility could not be found.
Symbol 'nms_new_all.flv', Layer 'Layer 6', Frame 1, Line 5, Column 31
1172: Definition com.robertpenner.easing could not be found.
Symbol 'nms_new_all.flv', Layer 'Layer 6', Frame 1, Line 7, Column 1
1120: Access of undefined property APCore.
That symbol is in my library.
When I go to the code, it shows:
import de.alex_uhlmann.animationpackage.*;
import de.alex_uhlmann.animationpackage.animation.*;
import de.alex_uhlmann.animationpackage.drawing.*;
import de.alex_uhlmann.animationpackage.utility.*;
import com.robertpenner.easing.*;
APCore.initialize();
nextBtn._alpha = 0;
I downloaded what I believe to be the correct animation package from here, versions 2.0 and 3.0, for Flash Pro CC2014, Flash Player 13:
AnimationPackage
I have no idea how I am supposed to import this package into my library, since none of the files are available to import, or what procedure I'm supposed to follow to correct this error. I emailed the programmer, but I have no idea if he is even still around. Does anyone have an answer on how to resolve this? Email me at [email protected] if you want the FLA file, since I can't attach it here. Thanks for the help!you need the classes mentioned after 'Definition" in the lines below and they should be place in de/alex_uhlmann/animationpackage subdirectory of your default directory.
Symbol 'nms_new_all.flv', Layer 'Layer 6', Frame 1, Line 2, Column 50
1172: Definition de.alex_uhlmann.animationpackage.animation could not be found.
Symbol 'nms_new_all.flv', Layer 'Layer 6', Frame 1, Line 3, Column 48
1172: Definition de.alex_uhlmann.animationpackage.drawing could not be found.
Symbol 'nms_new_all.flv', Layer 'Layer 6', Frame 1, Line 4, Column 48
1172: Definition de.alex_uhlmann.animationpackage.utility could not be found.
you also need penner's easing class in com/robertpanner -
URGENT! Having problem with while statement and other syntax errors
I am trying to teach myself JSP for a school project due very soon. But I keep receiving errors surrounding my while statement. The errors are:
Syntax: ";" inserted to complete BlockStatements
Syntax: "}" inserted to complete Block
I have checked it over and over again, comparing against other examples found in this forum and against servlet examples and I can see no difference. This is my file for your information. It is supposed to list all the users in the user table. Is there a simpler way to do this?
regards
rach
<%@ page language="java" import="java.sql.*, java.util.*"%>
<html>
<head>
<title></title>
</head>
<body>
<%! String selected = null; %>
<%
try{
// Connect to the database
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver").newInstance();
Connection con = DriverManager.getConnection("jdbc:odbc:dbtest");
catch(ClassNotFoundException e) {
System.out.println("Database driver could not be found.");
System.out.println(e.toString());
throw new UnavailableException(this, "Database driver class not found");
try{
//create SQL statement
stmt = con.createStatement();
ResultSet rs = stmt.executeQuery("SELECT * from USER ORDER BY User_lastname, User_firstname");
catch(SQLException e){
System.out.println("Error connecting to the database.");
System.out.println(e.toString());
throw new UnavailableException(this, "Cannot connect to the database");
%>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="10"> </td>
<td width="200" valign="top" align="center">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr><td><form method="post" action="userupdatedelete.jsp" target="content" name="userlist">
<h2>Users</h2>
</td>
</tr>
<tr>
<td width="10"> </td>
</tr>
<tr>
<td valign="top"><select size="15" name="rec">
<!-- if the resultset is not null -->
<% try {
//if (rs.next()) {
While (rs.next()){
//retrieve data from User table
String userid = rs.getString("User_ID");
String firstname = rs.getString("User_firstname");
String lastname = rs.getString("User_lastname");
out.println("<option value='userid'>lastname + ', ' + firstname</option>");
//<option value="<%=userid%>"><%=lastname + ", " + firstname%></option>
//else {
// out.println("<option> - No Users Entered - </option>");
//<option> - No Users Entered - </option>
stmt.close();
con.close();
catch (SQLException ex){
System.err.print("SQL Exception :");
System.err.println(ex.getMessage());
%>
</select>
</td>
</tr>
<tr>
<td align="center"><input type="submit" value="Update/Delete"></td>
</tr></form>
<tr>
<td><br></td>
</tr>
<tr>
<td align="center">
<form method="post" action="useraddform.jsp" name="addbuttonform">
<input type="submit" value=" Add New " name="addnew">
</tr></form>
</table>
</td>
<td width="10"> </td>
</tr>
</table>
</body>
</html>There is a problem here with the "scope" of variables namely your variables "rs" and "stmt". Variables declared within a try block are available only within that try block. Also, the type for stmt is not even given.
Change:
try{
//create SQL statement
stmt = con.createStatement();
ResultSet rs = stmt.executeQuery("SELECT * from USER ORDER BY User_lastname, User_firstname");
catch(SQLException e){
System.out.println("Error connecting to the database.");
System.out.println(e.toString());
throw new UnavailableException(this, "Cannot connect to the database");
}to:
Statement stmt = null;
ResultSet rs = null;
try
//create SQL statement
stmt = con.createStatement();
rs = stmt.executeQuery("SELECT * from USER ORDER BY User_lastname, User_firstname");
catch(SQLException e)
System.out.println("Error connecting to the database.");
System.out.println(e.toString());
throw new UnavailableException(this, "Cannot connect to the database");
Maybe you are looking for
-
Hi all, Please refer to the error: Root Components import: FAILURE [2015-04-10 17:04:48.126] Process: w3wp |Organization:0937f109-45df-e411-80cf-0050560100db |Thread: 43 |Category: Exception |User: ac011cf7-ad36-405b-91cf-2155ca15efb1 |Level: Error
-
"Load Driver" error while installing Win7 on Satellite C665
My hard drive in my laptop died on me, so I got a new hard drive (Solid State) and am installing Windows 7 on it on my Toshiba (Satellite C665 model PSC55A) I don't seem to be alone in encountering this error: "A required CD/DVD drive device driver i
-
When is a display too big? (30inch)
Not scientific for sure, but I am looking for some opinions I am looking to get a 30inch along with a new Mac Pro (currently running the 23inch - and I feel longing for more real estate quite often). I am wondering if, as you sit fairly close, people
-
Material type for both service and delivery
Hai all, I there is any material type for which both delivery and service can be carried for the same material. Thanks in advance, S.Jenibalet
-
Problem transforming SAX events
The following code parses a CSV file creating SAX events. If no XSL file is passed, it correctly does an identity transform and creates output so my assumption is that the parsing is working OK. However if I pass an xsl file containing the identity t