Create Shared Parameter Node - Unstable?

I know there’s been quite a few posts tackling this topic but I couldn’t find an answer to what I was looking for.

What I am trying to do is simple: create bunch of shared and project parameters using data from an excel sheet and it seems I am succeeding at it, but every other time I get this error:

The referenced object is not valid, possibly because it has been deleted from the database, or its creation was undone.

And when I say every other time I mean it literally. I execute the script and I get an error (missing project parameters) then I change couple of parameter names in the excel file and it works fine (no errors, no missing parameters).

Does anyone have an idea what’S going on/ what I am doing wrong?

PW_paramsTest.xlsx (17.0 KB)
createSharedParametersFromExcelSheet_V037.dyn (23.8 KB)