Developer forum

Forum » Integration » Import with custom request failing

Import with custom request failing

Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Hi there,

I have a site migrated to DW 10 where I am trying to set up scheduled tasks. I am using the type "Import data with custom request add-in" like I have on the DW9 version and configured to connect to an AX instance. When I run the task, I get this:

Exception has been thrown by the target of an invocation.  

I think the credentials are OK and AX can be reached, as the same info works for Live Integration. There's nothing else in the logs that clarifies what's going on.

How can I troubleshoot this further?

Imar

 


Replies

 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Further to this: when I turn request / response logging on, I can see the response XML file just fine. However, the XML file configured on the selected activity to run is not updated. I am running on 10.18.8.

Imar

 
Dmitriy Benyuk Dynamicweb Employee
Dmitriy Benyuk
Reply

Hi Imar,
can you check if you are using the latest version of the import data add-in?
https://www.nuget.org/packages/Dynamicweb.DataIntegration.ScheduledTaskAddIns.ImportDataCustomRequestAddIn/10.7.0
If that does not help, can you send me the task log file form the Files\System\Log\ScheduledTasks folder?

BR, Dmitrij
 

 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Hi Dmitriy,

I think I figured it out. Looks like the mapping to files on disks has changed between 9 and 10 and the path isn't updated to reflect that. When I open the job, I see this:

Reselecting the file from /Files/Files/Integration then seems to solve the issue.

It would be nice if the job / task failed with a more meaningful message when the file it's supposed to write to does not exist.

Thanks!

Imar

 

You must be logged in to post in the forum