Developer forum

Forum » Development » RE: Additional information anywhere?

RE: Additional information anywhere?

Marco Santos
Reply

Hello.

I have two Data Providers that are derived from a third (itself derived from BaseProvider and abstract) and one of them is getting a "The method or operation is not implemented" exception, and I would like to see more detail about where in the stack this is happening. Is there a log where I can get the stack information from the Data Integration run? Or have you come across this scenario maybe and know of a few things I can try?

Also, Is there a way programatically to check if the import was successfull in order to execute some post processing?

Using version 8.4.0.17, by the way.

Regards,

Marco


Replies

 
Anders Ebdrup
Reply
This post has been marked as an answer

Hi Marco,

 

For the second question you can use something like this, which we are using for clearing cache:

 

    [Dynamicweb.Extensibility.Subscribe(Dynamicweb.Notifications.Integration.JobFinished)]
    public class ImportFinishObserver : Dynamicweb.Extensibility.NotificationSubscriber
    {
        public override void OnNotify(string notification, Dynamicweb.Extensibility.NotificationArgs args)
        {
            Dynamicweb.Notifications.Integration.JobFinishedIntegrationArgs jobFinishedIntegrationArgs =
                args as Dynamicweb.Notifications.Integration.JobFinishedIntegrationArgs;

            if (jobFinishedIntegrationArgs != null)
            {
                ProductStatusProvider.ClearCache(jobFinishedIntegrationArgs.DestinationTables);
            }
        }
    }

 

Best regards, Anders

Votes for this answer: 1
 
Marco Santos
Reply

Thanks Anders.

Regarding the first question, it has been resolved. There were interface markers that had to exist in the derived classes too, didnt  realise that was necessary.

I am getting another error though. In the reader I created, I create the dictionary rows and there is one value that it does not seem to like. The error is:

Job Failed with the following message: cannot parse '4.0' to a double.. Table: EcomProducts. Column: ProductStock The failed input row is: [ProductID:"35999"], [ProductNumber:"35999"], [ProductVariantID:"VO104.VO100"], [ProductName:"Inlay Divine"], [ProductStock:"4.0"], [productType2:"Inlay"]

I have tried the values "4", "4,0" and "4.0", all without result. Any particular format I should be using?

Regards,

Marco

 
Marco Santos
Reply

No need to worry about this (as far as I am concerned anyway). We upgraded to version 8.4.1 and the problem solved itself.

Thanks.

 

You must be logged in to post in the forum