Again, I'm retrieving the duration of activities from the Activities table for each customer recordID and populating them into a column I created in the Customer table called "PDFHours".
I'm using SQL to do an advanced query tied to a button click, and that seems to work mostly, but I'm having problems perhaps dealing with some of the junk in the activity table.
Due to file attachments (I think), when I export the Activity table into a CSV file, there are a number of rows where the aActivityCompanyName column (the first column in the table) is populated with an extended character sequence of gibberish (like Ilgb3RzurMGLIQ7v1CtIhTLL59RbXvRvy4aWLVZTS7rfEXCa5Mr but much longer) for some of the rows. Many times these rows are one after the other, and then there are normal records after for a while. None of these rows have a RecordID. This type of text also shows up in a custom column I created called "Certification1Doc", but those ones have rRecord IDs.
I believe this is the source of the Action Sequence Order:40 error I get when trying to pull the results from the ActualDuration field and populate the PDFHours field for each customer.
How do I remove these records from the table? Is it possible? Could something else be impacting this?
This didn't arise until I started compiling hours for activities between certain dates. In my SQL I have caveats like [RecordID] > 0, ISDATE (DueDateStart) = 1 and ISDATE (DueDateEnd) = 1, but if those are working, I have to believe that it's the garbage entries that are the problem.
Please let me know how/if I can remove them or deal with them.
Thanks