Back to connectors… Back to Sage 300...

Type Mismatch on AutoSimply Shop Entry insert (4 replies and 1 comment)

davidgelula
4 years ago
davidgelula 4 years ago

I am getting the error Type Mismatch when trying to insert an AutoSimply Shop Entry; I believe this is related to setting the Action Start and Action End date fields. In the SCTRANS table, these fields - STARTDATE, ENDDATE - are type char(10). I believe this as, when I remove them, the job fails on a different error.

I have my corresponding date fields converted in my SQL view ... CONVERT(char(10), vIManSCSE010b.ApproxStartTime, 112) as 'SC_ActionStart'
 and CONVERT(char(10), vIManSCSE010b.EndTime, 112) as 'SC_ActionEnd' ... and they clearly show as "Text" in my DB Reader, the subsequent transforms, and the Sage 300 Connector.

I am losing my mind here trying to wrap this job - does anyone have a suggestion?

davidgelula
4 years ago
davidgelula 4 years ago

This is bananas or I am maroon - someone please enlighten me to the problem. If you look at the screen shot I attached, the ten fields I mapped in the Connector are all CHAR in SQL and Type = Text in IMan. How can there be a Type Mismatch?

While I'm 99% convinced this is related to the STARTDATE and ENDDATE fields, I am open to other ideas. E.g. do I need to set another field in the Connector? The others available are:

MO Series - not active in this company

Receipt QTY - n/a for this job (Sage UI accepts zero)

Scrap QTY - n/a for this job (Sage UI accepts zero)

Reason - n/a for this TRANSTYPE (Direct Runtime)

Comments - n/a for this job (Sage UI accepts null)

Audit record - assume I would not map to this; no clue what it does

SYS.ERROR and SYS.WARNING

Help!!!

https://www.realisable.co.uk/wp-content/uploads/2020/08/SC-going-crazy.png
davidgelula
4 years ago
davidgelula 4 years ago

When I unmap the two date fields, the Entry does get created and I can only see them in the table ... but not in all UI screens. E.g. I cannot see them in the basic Shop Entry screen but I can see them in Review Entries and in the Shop Entry screen when I drill down from it. Strange. So there may be multiple things happening here but these date fields continue to be the culprit prohibiting the records from inserting.

davidgelula
4 years ago
davidgelula 4 years ago

Okay resolved on the dates (and times) thanks to some ideas from my colleagues - it seems IMan wants normal datetime data for the date and time fields and is magically converting them.

For some reason, these transactions still don't show up in the Shop Entry UI but since I do see them in Review Entries, I will bubble this up to AutoSimply to see what they say unless James or Nick has seen this before?

Support
4 years ago
Support 4 years ago

David, to confirm the dates and times need to be in date and time format and yes, IMan converts these to the underlying database formatted values (if required).

Any Shop Entry successfully created, should show both in the Review Entries & Shop Entry screen.

Shop Entries are 'tetchy'. I would recommend mapping all fields to the Shop Entry import. I have included several screenshots to show the mapping and set of test data we use to test the Shop Entries.

https://www.realisable.co.uk/wp-content/uploads/2020/08/Preview.png
https://www.realisable.co.uk/wp-content/uploads/2020/08/FieldMapping_2.png
https://www.realisable.co.uk/wp-content/uploads/2020/08/FieldMapping_1.png
davidgelula
4 years ago

James - thanks for this; I followed your lead on the mapping. Are you using a vbscript to set those time fields to begin with 30/12/1899 ? If so, can you share it? Looking at the data in the table I see why that is a good idea. Things can look wacky otherwise.
I'm going to ask AutoSimply why these entries are not showing up in the Shop Entry UI but do via Review Entries.

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