You are viewing limited content. For full access, please sign in.

Question

Question

LFF5426-ErrorExecuteSTR index was outside the bounds of the array

asked on November 6, 2020

Hi

Been on this for two days before coming here.

Receiving this error:

An error occurred during the execution of the Save to Repository service task. [LFF5426-ErrorExecuteSTR] Details: URL: Error: ErrorExecuteSTR Date: 2020/11/06 09:23:19 (South Africa Standard Time) HTTP Status Code: 500 Business Process ID: 127 Instance ID: 8606 Business Process Name: Projects: Daily Site Diary Stack Trace: Caught exception: Laserfiche.Forms.CommonUtils.Exceptions.LFFormsException Message: An error occurred during the execution of the Save to Repository service task. [LFF5426-ErrorExecuteSTR] at Laserfiche.Forms.Routing.SaveToLaserficheService.Execute(Int32 instanceId, IRoutingContext routingContext, RoutingInstanceStatus OriginalStatus) at Laserfiche.Forms.Routing.ServiceTask.Execute(Int32 instanceId, IRoutingContext routingContext) Inner exception: System.IndexOutOfRangeException Message: Index was outside the bounds of the array. at Laserfiche.Forms.CommonUtils.LFHelper.RecursiveCreate(Session lfDb, FolderInfo lfParentFolder, String[] subFolderName, Int32 pos, String Volume) at Laserfiche.Forms.CommonUtils.LFHelper.TryGetFolderByPath(Session lfDb, FolderInfo lfParentFolder, String subFolderName, String HintVolume) at FormsModel.RoutingModels.Services.SaveFormToLaserficheStrategy.SaveAttachmentToLaserfiche(Session session, XmlDocument datasetXml, STLConfigurationObj conf, DocumentInfo rootddoc, String timeZone, String rootFolderPath) at FormsModel.RoutingModels.Services.SaveFormToLaserficheStrategy.SaveToLaserfiche(Session session, XmlDocument datasetXml, List`1 STLConfigList, SaveToLaserficheParameters saveToLaserficheParameters) at FormsModel.RoutingModels.Services.SaveToLaserficheHelper.OpenSessionAndSave(IEntityContext _AppContext, Int32 STLRepositoryId, List`1 STLConfigList, XmlDocument datasetXml, ISaveToLaserficheStrategy saveToLaserficheStrategy, String timeZone) at FormsModel.RoutingModels.Services.SaveToLaserficheHelper.SaveToLaserfiche(IEntityContext _AppContext, Int32 STLRepositoryId, List`1 STLConfigList, XmlDocument datasetXml, ISaveToLaserficheStrategy saveToLaserficheStrategy, String timeZone) at Laserfiche.Forms.Routing.SaveToLaserficheService.Execute(Int32 instanceId, IRoutingContext routingContext, RoutingInstanceStatus OriginalStatus)

Saw some interesting posts about this here:

https://support.microsoft.com/en-ph/help/2459027/kb2459027-fix-index-was-outside-the-bounds-of-the-array-smo-error-mess

And Here:

https://stackoverflow.com/questions/48718560/error-message-index-was-outside-the-bounds-of-the-array

As I am not building software but troubleshooting Laserfiche, the posts aren't really all that relevant.

I also saw some answers posts about this.

I made all my save to repo attachments's volume DEFAULT, tried to configure a new one, still received the error.

All other processes seem fine. I am assuming this has to do with one of the attachments - Not 100% sure.

Some guidance please?

Thanks.

0 0

Answer

SELECTED ANSWER
replied on November 8, 2020

Hi,

The inner exception throws at RecursiveCreate in TryGetFolderByPath, so the error seems related to the folder path of save to repository task.

What is your path configuration for form and attachment? Could you check whether still get the error if change to a simple test folder and keep other configurations? 

2 0
replied on November 8, 2020 Show version history

Cool, the initial file was using empty tokens to save.

Literally the only thing I didn't look at..

Thank you.

1 0

Replies

replied on January 5, 2021

I just experienced a similar issue with this error. I had a group of forms hang up. The repository the forms were going into is named KSD. When I used the picking tool to select the folder it put in the path looks right.  

 

But when I click okay. This is the path that shows up. Which seems fine. 

Still, the forms were not moving forward.

 

But when manually I changed the path to include "KSD" at the front. All the suspended forms kicked through with no problem. 

I'm not sure if this is a quirk particular to this situation. 

Just seems like a not so obvious solution. Hopefully, it helps. 

1 0
replied on April 15, 2022

The path should not require to start with the repository name, start with "\" should be OK. We have improved the error message since Forms 11. If you still see above error when start with "\", please open a support case for use to investigate it.

2 0
You are not allowed to follow up in this post.

Sign in to reply to this post.