Cannot access properties in object

I am beyond baffled. From the output, I can see the format of the "project" object, and it contains a "projectName" property. But, when I uncomment the indicated line to try to access the property, the transformer returns no data at all. Can anyone tell me what is going on?

That was a tough one! The last object in the timeEntriesByPrjId did not have the same format as all the preceeding objects. So, the entire loop broke when it hit the last object.

So, the solution was to check for the existence of a particular key, and remove that key's object before entering the loop.

1 Like