Back to connectors… Back to Sage 300...

Regional settings / Date error (3 replies)

Frans S
8 years ago
Frans S 8 years ago

I am working on a client that has US regional settings (eg. mm/dd/yyyy), and I’m getting this error:

Accpac API Error - Failed to convert string '2016-05-01' to an internal Date representation.

Similar question: Does the regional setting affect IMAN?

Support
8 years ago
Support 8 years ago

Frans, to answer:

a. Yes IMan is affected by regional settings. The user under which the Scheduler & Data services runs (or the System Default if running under Local System) dictates how dates will be interpreted.

b. In your case the date is yyyy-MM-dd which is not convertible to a US date (mm/dd/yyyy).

To remedy you must convert the yyyy-MM-dd value to the US one.

You can try the following function (replacing DateField with the actual field containing the value):

NumberToDate(Replace(%DateField, "-", ""))
NumberToDate(Replace(%DateField, "-", ""))
Frans S
8 years ago
Frans S 8 years ago

Seeing that I was working with SQL as a data source, the solution was to use CONVERT(DATE, XXX) for the dates, and for the optional field I used CONVERT(VARCHAR(10), XXX, 112) seeing that optional fields are stored as text, even if they are dates.

6 years ago
Frans S 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