I added the code and tested with the dataset I sent to you. The message I am getting is that - "Solve required two valid stops".
I tested with another dataset, I got message " Solve failed without any GPmessages".
' Give user information about an exception. Try ' We will purposely create a File Exception for the ' purpose of this example. We will be invoking the exception ' by providing a path of an illegal form. Dim fileContents As String = System.IO.File.ReadAllText("iShouldn'tWork ") Catch ex As Exception ' ex.ToString will give the user a large technical dump. MessageBox.Show("ToString: " & ex.ToString) ' ex.Message will give the user a brief, more user friendly error message. MessageBox.Show("Message: " & ex.Message) End Try
Looking at your last email, the error appears to be coming from a call to some IArray variable. This is likely coming from one of the IStringArray variables passed to the solver (e.g., for accumulate attribute names, etc.).In your code, I notice you have the following:' Dim AccumulateAttributes As IStringArray 'changed 09_16Dim AccumulateAttributes As StrArrayIs there a reason you recently changed this code from using the IStringArray interface? Perhaps this is somehow part of the problem. Can you change the code back to how it was or comment out your use of the accumulate attributes altogether to see if this is the issue?
I see in your code that you have a try/catch block around the solve and you report the first GPMessage returned by the solver upon failure. Have you checked to see if there are any other messages in the GPMessages object? There can be multiple messages, and there may be more detailed information in this object that will help to narrow down the problem. Try this first, and we can proceed from there.
Los miembros registrados pueden publicar, seguir actualizaciones y más. ¿Nuevo aquí? Regístrate gratis.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.