Replies: 1 comment 1 reply
-
Not sure it is ideal to simply ignore the minor write errors. Perhaps you could speed up the existence check if you make use of MDX. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I receive a medium-sized transactional dataset from a source system outside TM1 and bring it into a dataframe. Sometimes there are records (elements) in that dataset that have NOT been created in TM1 yet and that's fine. The code should just ignore those ones if they aren't in TM1 yet.
The dimension in TM1 with the sometimes-missing elements is MASSIVE and VERY slow to query!
Hence I am looking for a way to send a tm1.cubes.cells.write_dataframe command to TM1 when I know I will have rows in the dataframe that won't have matching elements in the cube. I'm hoping TM1Py can just send the rows that it does have an ignore the others without throwing a critical error. (Similar to TM1Ignore_BadTuples but in reverse).
I know I could query TM1 first into a dataframe and then union-filter my source dataframe to the TM1 dataframe and send the filtered result. That's what I do currently to run without errors. However that TM1 dataframe query makes the script run 20 times slower than it would otherwise run, so I'm asking the community if there's any solution I can use where I don't have to check for element-existence in TM1 first.
EDIT: Confirmed that the existing records ARE being sent at least. For now I'll just nest in a try-catch-pass. As a feature, would be nice if could have a parameter to hide just this one error messages and suppress the "TM1ProcessError...tm1py....log" error file in instances where I expect each time that some rows will fail. That way I could use without the try-catch in case other errors were generated. If there's a better way than try-catch please let me know. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions