API
Version 7.x > API > Integration Bus not reporting errors? View modes: 
User avatar
Certified Developer v7
Certified  Developer v7
ianwright - 11/7/2013 9:26:44 AM
   
Integration Bus not reporting errors?
I'm trying to use the Integration Bus and it seems to not log any errors in my case - which I'm assuming it should do?

I'm creating an SKUInfo, I've managed to determine that there are some fields that I've not set which I need to (SKUPrice in this case). So in the following code taskType has the value TaskTypeEnum.CreateObject and SKUInfo is a new SKUInfo with some required fields un-populated.
 // Find the SKU to update and process it
SKUInfo skuInfo = null;
taskType = FindOrCreateSKUInfo(product, out skuInfo);

base.ProcessExternalTask(skuInfo, result, taskType, dataType, siteName);

Running this with result = IntegrationProcessTypeEnum.Default and dataType TaskDataTypeEnum.Snapshot doesn't throw up any Exceptions, runs to the end but doesn't actually do anything. The connector doesn't report any errors, neither does the scheduled task that initiated it and the Kentico event log is empty.

User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 11/7/2013 3:01:09 PM
   
RE:Integration Bus not reporting errors?
I've got a forum post out there with an example I'm using and it reports errors without a problem. Take a look.

User avatar
Certified Developer v7
Certified  Developer v7
ianwright - 11/8/2013 2:35:40 AM
   
RE:Integration Bus not reporting errors?
I will take a look - I think that actually the integration bus isn't actually attempting to do anything, which would explain why there are no errors. I'm just not quite sure why yet.

User avatar
Certified Developer v7
Certified  Developer v7
ianwright - 11/8/2013 2:37:37 AM
   
RE:Integration Bus not reporting errors?
Although I've noticed that yours is an outgoing/export from Kentico. My scenario is the other way around. What I've currently got code wise is:
/// <inheritdoc/>
public override void ProcessExternalTask(object obj, IntegrationProcessTypeEnum result, TaskTypeEnum taskType, CMS.Synchronization.TaskDataTypeEnum dataType, string siteName)
{
// Ensure we have a Merlin product
MerlinProduct product = obj as MerlinProduct;
if (product == null)
throw new ArgumentException("The external object was not a " + typeof(MerlinProduct).FullName, "obj");

// Find the SKU to update and process it
SKUInfo skuInfo = null;
taskType = FindOrCreateSKUInfo(product, out skuInfo);

base.ProcessExternalTask(skuInfo, result, taskType, dataType, siteName);

// Process each of the price bands
foreach (CustomTableItem priceBand in GetPriceBands(product, taskType == TaskTypeEnum.CreateObject))
{
base.ProcessExternalTask(priceBand, result, taskType, dataType, siteName);
}
}

However the call to base.ProcessExternalTask just doesn't seem to do anything.

User avatar
Kentico Support
Kentico Support
kentico_zdenekc - 12/18/2013 10:31:23 AM
   
RE:Integration Bus not reporting errors?
Hi,

In the parallel email conversation, we've reached the dead end where even the tasks were not logged in your environment, but we weren't able to reproduce it with the simple scenario, it's hard to clarify what exactly was wrong here.
If you ever find any new clues, or if others came accross the same issue, please don't hesitate to let us know. Thanks.

Regards,
Zdenek