Skip to Content

Error -- Publication Data is not importing immediately when using CSV Web Service Extension

Hi All, I written one cron job to read the CSV file from data directory. In cron job implementation I am calling the service for Raw item , canonical and publication as follows.

POST - http://localhost:8080/datahub-webapp/v1/data-feeds/DEFAULT_FEED/items/RawProduct and

POST - http://localhost:8080/datahub-webapp/v1/pools/GLOBAL/compositions and POST - http://localhost:8080/datahub-webapp/v1/pools/GLOBAL/publications

Sometimes The product is coming immediately but some times it is not processing immediately product data. At that time I am getting the publication status success from the response. The records are inserting in the Raw Item, Canonical but not In the publication table and also there no record in the publication error and publication retry table also.

How to process the data immediately when I run the cron job using CSV Web Service Extension

Thanks

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Aug 11, 2016 at 07:22 PM

    Check if the feed is completed before triggering the composition.
    Check if the composition is completed before triggering the publication.

    You can do GET requests on the feed and composition to know their status. Continuously do GET requests until the status is not IN_PROGRESS.
    You can also write event listeners on the data hub to be more immediate on triggering the next transformation phase.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.