Hi @nedeljko.sovljanski. What a coincidence. I was just trying to use that same method earlier today within an iLogic rule, and was also running into lots of trouble for some reason, so I would like to tag in on this conversation. I eventually just created my own custom Function to handle this task.
This is the function I created in iLogic (vb.net):
Function RecordProperties(oPropSet As PropertySet) As List(Of Object())
Dim oMainList As New List(Of Object())
If oPropSet.Count = 0 Then Return oMainList
For Each oProp As Inventor.Property In oPropSet
Dim oData(2) As Object
oData(0) = oProp.Value
oData(1) = oProp.Name
oData(2) = oProp.PropId
oMainList.Add(oData)
Next
Return oMainList
End Function
It records the property data in the same order that you need to use it when using the PropertySet.Add method to create new properties, on purpose.
Wesley Crihfield

(Not an Autodesk Employee)