Multiple CMDT Failing #321
-
We have two separate rollup's we'd like to perform between the same object, 'Hours' and 'Cost'. We're running into issues where when we have both records configure as CMDT records, only one of the records is actually getting calculated. We've verified that both record configuration works by deleting the other and confirming it works. The records are getting created / updated from a Lightning component which is potentially creating 5-50 child records at once. I've enabled the debug logging and it looks as though both are running as expected, but only one of the fields gets updated. In our case it seems as though it's the last metadata record 'Cost' that is getting filled in. Is there anything we have to do in order to have multiple rollups on the same object? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 58 replies
-
@shane-saltbox hi there, multiple rollups are not only possible but very common. This is the first time I'm hearing of an issue like this - we have some users performing dozens of rollups on the same child object to parent. Is there any more info you can give me? It sounds like you've already enabled logging: -
|
Beta Was this translation helpful? Give feedback.
-
I will take a look! We are close to getting this resolved, I feel, and I was able to get the necessary test coverage this morning for your base case, so I'll encapsulate the delete situation in another test as well. I will be able to spend quite a bit of time today on this, feeling good about the progress so far. |
Beta Was this translation helpful? Give feedback.
-
You’ve configured it the way I expected, yes. It’s … bizarre … that the results differ so drastically from your usage of the flow without that argument — where the Flow engine seems to have properly bulkified the insert/update/delete — to with that argument (since it seems to only be getting a single record at a time for this). At this point, I don’t think that adding that second parameter will actually contribute much, if that’s the way the underlying requests are going to be sent. My gut reaction is that the Full Record Set changes I am working through will prove more fruitful in the long term. I don’t know if you tried using Apex instead of Flow; that might produce different results for you (assuming the component you were demoing bulkifies it’s record inserts/updates/deletes). |
Beta Was this translation helpful? Give feedback.
-
This was resolved in |
Beta Was this translation helpful? Give feedback.
This was resolved in
v1.5.8
- excellent feedback and testing cycle from @shane-saltbox