I have an IntegrationJobFinishedObserver where I try to programatically build the product index after an integration job has executed (I need to build it in code rather than after the integration job has finished, because the IntegrationJobFinishedObserver does some product modifications and the index needs to be built as the last step of the process).
See screenshot of how I try to do this in code. The index build starts, but it fails with an exception "The given key was not present in the dictionary"
I suspect that there's something wrong with the parameters.
Any tips?
Best regards
Espen