Back to connectors… Back to Sage 300...

Errors after adding a join to a DB reader (1 reply)

davidgelula
7 years ago
davidgelula 7 years ago

Related to my previous post, I successfully created a small job to grab and insert a handful of Order/Invoice header fields from a sybase db into Sage 300 Orders. The select was simple using a DB Reader:

SELECT CUSTNO, INVNO, INVDTE, ORDTE, PONUM

FROM ARINVOI

WHERE CUSTONO LIKE 'A%' (I ADDED THIS WHERE CLAUSE TO TEST WITH A SMALLER DATASET)

In the source db, the Order/Invoice header and detail data is separated into two different tables like 300 but, being n00bish and relaying on the documentation, I assumed the approach was to pull the header and details together anyway in Iman and then use a map transform and hierarchy transform to organize the data.

(NOTE: If there is a better way to handle the integration of header/detail records, from a source db into a target db, I am all ears for a best practice. I recognize that since I have a job to insert the headers, I could just run a second job to insert the details, and then a third to ship all and invoice ... but I doubt this is the most efficient approach.)

So going with my plan, I modified the SQL statement as follows adding left join to grab the order/invoice details:

SELECT ARINVOI.CUSTNO, ARINVOI.INVNO, ARINVOI.INVDTE, ARINVOI.ORDTE, ARINVOI.PONUM, ARTRANS.ITEM, ARTRANS.ID, ARTRANS.UNITMS, ARTRANS.QTYSHP, ARTRANS.WEIGHT, ARTRANS.UNITPR, ARTRANS.REQ1

FROM ARINVOI

LEFT JOIN ARTRANS ON ARINVOI.INVNO = ARTRANS.INVNO

WHERE ARINVOI.CUSTNO LIKE 'A%'

Trying to Refresh and return a sample data-set, I am getting the following errors - note that running the query directly in Sybase returns the results just fine in 1.279 seconds:

1 IMan DataService session incurred an error.The communication object, System.ServiceModel.Channels.ReliableRequestSessionChannel, cannot be used for communication because it is in the Faulted state.
2 The request channel timed out while waiting for a reply after 00:00:00. Increase the timeout value passed to the call to Request or increase the SendTimeout value on the Binding. The time allotted to this operation may have been a portion of a longer timeout.
3 The request channel timed out while waiting for a reply after 00:00:00. Increase the timeout value passed to the call to Request or increase the SendTimeout value on the Binding. The time allotted to this operation may have been a portion of a longer timeout.
4 IMan DataService session incurred an error.The communication object, System.ServiceModel.Channels.HttpChannelFactory+HttpRequestChannel, cannot be used for communication because it has been Aborted.
5 The request channel timed out while waiting for a reply after 00:00:00. Increase the timeout value passed to the call to Request or increase the SendTimeout value on the Binding. The time allotted to this operation may have been a portion of a longer timeout.

These also appear to be the same errors I am receiving on my PO import job where I'm having issues with the mapping of the Vendor Number.

6 years ago
davidgelula 6 years ago

Closed due to inactivity.

Contact

Realisable Software Ltd provides code-free, cost-effective applications integration solutions for SMEs. Our core IMan product is designed to integrate almost any application with a number of Sage solutions and online payment processors.

Looking to purchase IMan, please see our resellers here.

Realisable Software
Ph: +44 (0) 208 123 1017

Copyright © Realisable. All rights reserved.
Realisable is a registered trademark

Close

Request Demo

Realisable Software Ltd provides code-free, cost-effective applications integration solutions for SMEs. Our core IMan product is designed to integrate almost any application with a number of Sage solutions and online payment processors.

Looking to purchase IMan, please see our resellers here.

Realisable Software
Ph: +44 (0) 208 123 1017

Copyright © Realisable. All rights reserved.
Realisable is a registered trademark

Close

Access Downloads

Realisable Software Ltd provides code-free, cost-effective applications integration solutions for SMEs. Our core IMan product is designed to integrate almost any application with a number of Sage solutions and online payment processors.

Looking to purchase IMan, please see our resellers here.

Realisable Software
Ph: +44 (0) 208 123 1017

Copyright © Realisable. All rights reserved.
Realisable is a registered trademark

Close