Red Gate forums :: View topic - Error "Source array was not long enough..."
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
SQL Log Rescue
SQL Log Rescue forum

Error "Source array was not long enough..."

Search in SQL Log Rescue forum
Post new topic   This topic is locked: you cannot edit posts or make replies.
Jump to:  
Author Message
nmpham



Joined: 28 Jun 2005
Posts: 12

PostPosted: Tue Jun 28, 2005 2:32 pm    Post subject: Error "Source array was not long enough..." Reply with quote

"Source array was not long enough. Check srcIndex and length, and the array's lower bound"

I use SqlLog Rescue to view the transaction log on a remote server.
I use an UNC path for backup device.
(very small base = 31 MB, Log size ~ 8 MB)

A msgbox pop up and show the above message.
Any idea?
Back to top
View user's profile Send private message
Neil Davidson



Joined: 08 Sep 2004
Posts: 223

PostPosted: Tue Jun 28, 2005 3:44 pm    Post subject: Reply with quote

Hi,

Can you let me know at what point this occurs please. For example, does it happen while you're using the wizard, or when looking at the transactions? If you're looking at transactions, does it happen for all transactions?

If you look in the Windows event log, are there any errors or messages from SQL Log Rescue there?

- Neil
_________________
- Neil Davidson
Red Gate Software Ltd
Back to top
View user's profile Send private message
nmpham



Joined: 28 Jun 2005
Posts: 12

PostPosted: Tue Jun 28, 2005 3:57 pm    Post subject: My Steps Reply with quote

i'm using wizard
1. Create new Recovery Project
2. Choose SQLServer + Database
3. Edit backup Path: using UNC path to a backup file (i verified, this path is working)
4. Finish

--> Exception (from Event viewer)

System.ArgumentException
Source array was not long enough. Check srcIndex and length, and the array's lower bounds.

Server stack trace:
at System.Array.Copy(Array sourceArray, Int32 sourceIndex, Array destinationArray, Int32 destinationIndex, Int32 length)
at ᑅ.ᐁ(Byte[] , Int16 , ᑆ )
at ᐦ.ᐁ(Int32 )
at ᐭ.ᐁ(Int32 , ᐧ[] , ᐦ )
at RedGate.LogRescue.Engine.LogEngine.ᐂ(LogEntryExtract )
at RedGate.LogRescue.Engine.LogEngine.ᐁ(Int32 )
at RedGate.LogRescue.Engine.LogEngine.InitPostProcessLogEntryExtracts()
at ᑍ.ᐊ()
at System.Runtime.Remoting.Messaging.StackBuilderSink.PrivateProcessMessage(MethodBase mb, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
at System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(IMessage msg, IMessageSink replySink)

Exception rethrown at [0]:
at RedGate.SQL.Controls.ProgressDialog.Run(ICancellable executor, ProgressDialogStart startMethod)
at ᑍ.ᐁ(LogEngine , RecoveryProject )
at ᑍ.ᐂ(LogEngine , RecoveryProject )
at ᑖ.ᐁ(LogEngine , RecoveryProject , Boolean )
at ᑖ.ᐁ(IWin32Window , RecoveryProject , Boolean )
at ᑈ.ᐁ(Object , ItemClickEventArgs )
at DevExpress.XtraBars.BarItem.OnClick(BarItemLink link)
at DevExpress.XtraBars.BarBaseButtonItem.OnClick(BarItemLink link)
at DevExpress.XtraBars.BarItemLink.OnLinkClick()
at DevExpress.XtraBars.BarItemLink.OnLinkAction(BarLinkAction action, Object actionArgs)
at DevExpress.XtraBars.BarButtonItemLink.OnLinkAction(BarLinkAction action, Object actionArgs)
at DevExpress.XtraBars.BarItemLink.OnLinkActionCore(BarLinkAction action, Object actionArgs)
at DevExpress.XtraBars.ViewInfo.BarSelectionInfo.ClickLink(BarItemLink link)
at DevExpress.XtraBars.ViewInfo.BarSelectionInfo.UnPressLink(BarItemLink link)
at DevExpress.XtraBars.Controls.CustomLinksControl.OnMouseUp(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at DevExpress.XtraBars.Controls.DockedBarControl.WndProc(Message& msg)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Back to top
View user's profile Send private message
Neil Davidson



Joined: 08 Sep 2004
Posts: 223

PostPosted: Tue Jun 28, 2005 6:23 pm    Post subject: Reply with quote

Do you have the same problem if you don't include the backup files, and only work from the live log?
_________________
- Neil Davidson
Red Gate Software Ltd
Back to top
View user's profile Send private message
nmpham



Joined: 28 Jun 2005
Posts: 12

PostPosted: Wed Jun 29, 2005 8:21 am    Post subject: Reply with quote

It doesnt work with live log (no backup specified)
Same msgbox, same exception
Back to top
View user's profile Send private message
Neil Davidson



Joined: 08 Sep 2004
Posts: 223

PostPosted: Wed Jun 29, 2005 9:57 am    Post subject: Reply with quote

Is there any chance we can get hold of your .mdf and .ldf files? That will help us troubleshoot the issue. If that's OK then let me know and I'll set up an area on our ftp site for you to upload them.
_________________
- Neil Davidson
Red Gate Software Ltd
Back to top
View user's profile Send private message
nmpham



Joined: 28 Jun 2005
Posts: 12

PostPosted: Wed Jun 29, 2005 10:27 am    Post subject: Reply with quote

Sorry i cannot: we have some real customer data in this database.

I tried to attach Log Rescue process in VS.NET, and i catched another
exception before the System.ArgumentException:

EngineException: Database backup information is needed to reconstruct this BLOB!

The blob cannot be reconstructed, so the byte array is empty ==> Array.Copy failed.

In which case this EngineException is thrown?
Back to top
View user's profile Send private message
Neil Davidson



Joined: 08 Sep 2004
Posts: 223

PostPosted: Wed Jun 29, 2005 1:22 pm    Post subject: Reply with quote

I'm going to ask the developer who wrote this bit of code to get in touch with you to troubleshoot this further. This will take a couple of days though - he's out of the office for the rest of the week.

We're happy to sign an NDA if that will allow us to access your data. If that's not possible then of course I understand.
_________________
- Neil Davidson
Red Gate Software Ltd
Back to top
View user's profile Send private message
nmpham



Joined: 28 Jun 2005
Posts: 12

PostPosted: Thu Jun 30, 2005 2:41 pm    Post subject: Reply with quote

Sorry, it's not possible to give away our database. It contains sensitive
customer data.

I will be in vacation from June 30 afternoon until July 7. I will be back at
July 8 in the morning.
Back to top
View user's profile Send private message
Display posts from previous:   
This topic is locked: you cannot edit posts or make replies. All times are GMT + 1 Hour
Page 1 of 1

 
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 vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group