Digital Developer Conference: a FREE half-day online conference focused on AI & Cloud – North America: Nov 2 – India: Nov 9 – Europe: Nov 14 – Asia Nov 23 Register now

Close outline
  • United States
IBM?
  • Site map
IBM?
  • Marketplace

  • Close
    Search
  • Sign in
    • Sign in
    • Register
  • IBM Navigation
IBM Developer Answers
  • Spaces
    • Blockchain
    • IBM Cloud platform
    • Internet of Things
    • Predictive Analytics
    • Watson
    • See all spaces
  • Tags
  • Users
  • Badges
  • FAQ
  • Help
Close

Name

Community

  • Learn
  • Develop
  • Connect

Discover IBM

  • ConnectMarketplace
  • Products
  • Services
  • Industries
  • Careers
  • Partners
  • Support
10.190.13.195

Content Services (ECM)×

Refine your search by using the following advanced search options.

Criteria Usage
Questions with keyword1 or keyword2 keyword1 keyword2
Questions with a mandatory word, e.g. keyword2 keyword1 +keyword2
Questions excluding a word, e.g. keyword2 keyword1 -keyword2
Questions with keyword(s) and a specific tag keyword1 [tag1]
Questions with keyword(s) and either of two or more specific tags keyword1 [tag1] [tag2]
To search for all posts by a user or all posts with a specific tag, start typing and choose from the suggestion list. Do not use a plus or minus sign with a tag, e.g., +[tag1].
  • Ask a question

How to prevent rulerunner from creating record on Engine DB, taskstats table?

50P5HWH145 gravatar image
Question by aaronchia  (37) | Jul 31, 2017 at 04:24 AM datacapecmsupportimportvscandatacapstudiomvscan

Hi all,

I am having mvscan as part of my rulerunner workflow to ensure that my workflow is fully automated. However, it keeps inserting record for the scan action even when there is no document found in the import folder. My guess is because the mvscan rule keeps listening to my import folder.

Is there any way to prevent this from happening? Thank you in advance!

Best regards, Aaron Chia

People who like this

  0
Comment
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster

3 answers

  • Sort: 
3100019Q4F gravatar image

Answer by yanglo (1141) | Jul 31, 2017 at 07:42 AM

There shouldn't be any "new" record created if the import folder is indeed empty. So, my first guess is that the import folder is not completely empty because it is on a Windows server and has one of those Thumbs.db which is hidden by default. So, please confirm if it's the case and do a little research to turn it off.

If it's not the case, you'd need to provide some logs.

Comment

People who like this

  0   Show 1   Share
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
3100019Q4F gravatar image yanglo (1141)   Jul 31, 2017 at 08:06 AM 0
Share

My second guess is that you didn't set or have the folder for images to be saved after import or rulerunner doesn't have proper access to it.

To prove or disprove this, we need to see logs and/or your batch's xml.

50P5HWH145 gravatar image

Answer by aaronchia (37) | Jul 31, 2017 at 08:42 AM

Hi @yanglo,

Thank you for the prompt reply. To provide more background, the new record is actually inserted into "taskstats" table, not the "tmbatch" table.

Also, for my mvscan rule, I have set the types of files to ingest to only tiff,tif,jpeg,jpg,pdf,png,bmp,jpg. Thus, to ingest Thumbs.db is not possible.

I have attached a sample of the DB record below.

alt text

Thank you once again!

Best regards, Aaron Chia


capture.png (11.3 kB)
Comment

People who like this

  0   Show 1   Share
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
3100019Q4F gravatar image yanglo (1141)   Jul 31, 2017 at 09:29 AM 0
Share

So, both of my guesses are off the target. :(

Now that you've clarified the case, I'm not sure if it's best for a PMR. I think that, if your batches are moving forward in the job/workflow, I'd not worry about this "issue". But first, I'd find out if each of these records in taskstats table should mean or match anything in your respective batches.

270002KNS7 gravatar image

Answer by EdLee (721) | Jul 31, 2017 at 10:49 AM

Have a look at bottom of this article: http://www-01.ibm.com/support/docview.wss?uid=swg21575411

It states:

Tasks run by Rulerunner / Rulerunner Quattro or other clients Inserts cannot be prevented with these clients, but a trigger can be created within SQL or Oracle to immediately delete the entry. For the above example, the trigger might look like the following:

Create Trigger on taskstats

AFTER insert AS

BEGIN

Delete from taskstats where new.ts_TaskName='VScan' AND new.ts_Status='pending'

END

/////////////////////////////////////////////////////

I hope this helps.

Peace,

Ed Lee

Comment

People who like this

  0   Share
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster

Follow this question

129 people are following this question.

Answers

Answers & comments

Related questions

Possible to import files for processing only when the files are inside a folder of a particular naming convention? 1 Answer

Export original PDF files 4 Answers

Redirection upon clicking "Submit" on IBM Content Navigator 1 Answer

Virtual Scan (using VScan or MVScan) in ingesting multiple files for one batch (then split per file within Datacap) 1 Answer

How do I manage batches left in running state by rulerunner 8 Answers

  • Contact
  • Privacy
  • IBM Developer Terms of use
  • Accessibility
  • Report Abuse
  • Cookie Preferences

Powered by AnswerHub

Authentication check. Please ignore.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • API Connect
  • Analytic Hybrid Cloud Core
  • Application Performance Management
  • Appsecdev
  • BPM
  • Blockchain
  • Business Transaction Intelligence
  • CAPI
  • CAPI SNAP
  • CICS
  • Cloud Analytics
  • Cloud Automation
  • Cloud Object Storage
  • Cloud marketplace
  • Collaboration
  • Content Services (ECM)
  • Continuous Testing
  • Courses
  • Customer Experience Analytics
  • DB2 LUW
  • Data and AI
  • DataPower
  • Decision Optimization
  • DevOps Build
  • DevOps Services
  • Developers IBM MX
  • Digital Commerce
  • Digital Experience
  • Finance
  • Global Entrepreneur Program
  • Hadoop
  • Hybrid Cloud Core
  • Hyper Protect
  • IBM Cloud platform
  • IBM Design
  • IBM Forms Experience Builder
  • IBM Maximo Developer
  • IBM StoredIQ
  • IBM StoredIQ-Cartridges
  • IIDR
  • ITOA
  • InformationServer
  • Integration Bus
  • Internet of Things
  • Kenexa
  • Linux on Power
  • LinuxONE
  • MDM
  • Mainframe
  • Messaging
  • Node.js
  • ODM
  • Open
  • PartnerWorld Developer Support
  • PowerAI
  • PowerVC
  • Predictive Analytics
  • Product Insights
  • PureData for Analytics
  • Push
  • QRadar App Development
  • Run Book Automation
  • Search Insights
  • Security Core
  • Storage
  • Storage Core
  • Streamsdev
  • Supply Chain Business Network
  • Supply Chain Insights
  • Swift
  • UBX Capture
  • Universal Behavior Exchange
  • UrbanCode
  • WASdev
  • WSRR
  • Watson
  • Watson Campaign Automation
  • Watson Content Hub
  • Watson Marketing Insights
  • dW Answers Help
  • dW Premium
  • developerWorks Sandbox
  • developerWorks Team
  • Watson Health
  • More
  • Tags
  • Questions
  • Users
  • Badges