Closed chrden closed 9 months ago
@Shazwazza From the error, I believe a field on one of my document types may be causing the issue by passing an array where the analyser is expecting an int, for example, however I cannot determine which field or value is causing the issue as the logs do not contain that information.
@Shazwazza After a lot of digging, I found the issue.
It turns out I had a field on 2 doc types called icon
which was appending a value to the existing icon
field which is used for the Document type icon. This meant there were two values (hence StartArray
) being found for icon
when it was trying to set it to a string (hence PrimitiveValue
).
I found this by adding logging to the TransformingIndexValues
event and outputting the node ID for each node until I found the ones that were failing.
Do you think you could add this type of logging, or something similar, so that it makes it clearer in the logs which nodes are causing the error?
Thanks
Hi @chrden thanks for the report and the research. I do wish that Azure Search errors were a lot less vague! Yeah the StartArray type of errors you get are typically due to expecting one or multiple values and fields configured differently. I totally support adding additional logging one way or another to make debugging this easier.
I need to make sure we don't have any performance penalties in doing such things. I'll try to look into the error logging that is currently done to see if there's an easy way to add more information there.
Version Umbraco - 12.1.2 ExamineX.AzureSearch - 5.0.1 ExamineX.AzureSearch.Umbraco - 5.0.1
Summary I cannot seem to get my Umbraco Content nodes to be indexed at all. Only Media.
Detail I am continually getting the below error when building the External index:
My
ConfigureServices
inStartup.cs
looks like this:I also have the following Logging setup in my Development environment:
The above logging produces the attached screenshots on each rebuild of the External Index
![2](https://github.com/SDKits/ExamineX/assets/22013176/9759d4d7-4a66-4920-89d7-63d65ad9908b)
Where the
Error
logs are is where theAzure.RequestFailedException
is loggedTesting I have tried with and without custom
FieldDefinitions
(by commenting out the code shown above) and the same logs occur each time.Only the Media section appears to be successfully indexed each time
Let me know if any further information is needed.
Thanks