Does anyone know of an issue when upgrading from 4.x to 6.x that requires you to reference documents in a document list using the element index?
I have a service in 4.6 that branches on a field in a document (in a document list) and references the field as ‘/documentListName/fieldName’.
Once this code was placed in a 6.5 IS and I attempted to execute it, the branch statements always resolve to the $null sequence. After steping through the code, I noticed the data in the pipeline is named ‘/documentListName/documentName[index]/fieldName’ and the branch statement is not able to locate ‘/documentListName/fieldName’.
I digged into this issue deeper and stepped through the original code on a 4.6 IS and noticed the data in the pipeline has always been named ‘/documentListName/documentName[index]/fieldName’ and works as expected. If there are no documents in the document list, I would like to execute the $null sequence option - otherwise, execute the $default option.
Was a change made to the way variables should be referenced somewhere between the 4.6 and 6.5 releases?