Back to connectors… Back to Sage 300...

G/L Import - Attempt to change read-only field “Currency Rate” (2 replies)

Steve Bagnall
9 years ago
Steve Bagnall 9 years ago

Can you possibly advise on a Sage 300 GL journal problem please? We are developing a job that creates GL journal entries with multiple details. The details are always mixed currencies so we provide an exchange rate for each detail and put it to Currency Rate on the Journal Details. If the source and functional currencies are the same then the rate is 1.

However, when source currency of a detail is the same as the functional currency we get the following Sage 300 error:

Accpac API Error 1144 – Journal Detail

Attempt to change read-only field “Currency Rate”

Do you have any ideas what we can do here? We can’t process the source=functional transactions separatley from others because the journals wouldn’t balance.

Support
9 years ago
Support 9 years ago

Steve, there needs to be an improvement made to the Journal Import to handle this scenario, however there is a workaround:

In a Map transform prior to the G/L Import, on the Currency Rate field, enter the following formula.

Dim Result
'CurrencyRate is your field name.
Result = %CurrencyRate
'If the currency of the detail is equal to the HomeCurrency
If %Currency = "GBP" Then
  'Clear the Value of the Currency Rate Field....SetFieldNull returns an empty string.
  Result = SetFieldNull("CurrencyRate")
End If
'Now set the Result back to the field.
Result
Dim Result
'CurrencyRate is your field name.
Result = %CurrencyRate
'If the currency of the detail is equal to the HomeCurrency
If %Currency = "GBP" Then
  'Clear the Value of the Currency Rate Field....SetFieldNull returns an empty string.
  Result = SetFieldNull("CurrencyRate")
End If
'Now set the Result back to the field.
Result
Steve Bagnall
9 years ago
Steve Bagnall 9 years ago

Well that worked a treat thanks very much.  I didn't know that was a way to handle it so not an issue at all.

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