Developer forum

Forum » Integration » Running activities

Running activities

Davor Zlotrg
Reply

Hey Dynamicweb,

 

I have an issue with the integration, I created my own custom provider 

 

public class CSVDestinationProvider : ConfigurableAddIn, IDestination {...}

public class CSVSourceProvider : ConfigurableAddIn, ISource {...}

public class CSVSourceReader : ISourceReader {...}

 

Everything is working fine on localhost and production but when I publish this on the staging server it is not working, It is worth nothing that I have multiple custom activities and they are all working on local and production enviroments but none of them are working on the staging enviroment.

 

To be sure that I have the current files I restored the database and all the files from prod to staging and local but I get the same result. I also added write permissions to Everyone for the Files folder because I thought I had a permissions problem but that didn't help as well.

 

Do you know what the problem is? If not, is there a log file anywhere or maybe a record in the database that I can look into to see what the problem is?

 

Thanks

Untitled.jpg

Replies

 
Morten Bengtson
Reply
This post has been marked as an answer

The log files are stored in this folder: /Files/System/Log/DataIntegration/

You can add logging to your provider like this:

public override bool RunJob(Job job, string logFile)
{
    this.SetupLogging(logFile);
            
    try
    {
        // Do your thing
    }
    catch (Exception ex)
    {
        this.Logger.Log("Job failed: " + ex);
        return false;
    }

    this.Logger.Log("Job succeeded!");
            
    return true;
}
Votes for this answer: 1
 
Morten Snedker
Reply

Hi Davor,

In addition to Mortens anwser I'd like to add that I strongly suggest moving to a newer version of Dynamicweb. A huge amount of fixes and approvements have happened since 8.3.1.8.

 

 

Best regards
Morten Snedker

 
Morten Snedker
Reply

Just came to think: make sure that host (IIS) can resolve itself. If your staging is http://staging.mysite.com, the server should be able to resolve that address DNS-wise. The job as passed on to a new thread, hence my answer.

 

/Snedker

 

 
Davor Zlotrg
Reply

Hi Snedker,

 

Yes, I will be updating to the newest version. The problem I have is that RunJob method is never executed. 

It only says Batch Starting and that's it.

 

On localhost after Batch Starting I get Job started (I guess that on that step the RunJob method is executed).

 

You must be logged in to post in the forum