Back to connectors… Back to Sage 300...

Method '~' of object '~' failed (6 replies)

D Dunn
9 years ago
D Dunn 9 years ago

I have a script in a Map transform used for validation. It appears that if I edit the script that there's a strong possibility that I'll get the error message within the header. The only way to get rid of the error is to restart the IMan services.  If I edit the formula to remove the Sage 300 specific functions then I don't see the error.

Dim result
 
Dim DuplicateOrder
 
result = 0
 
Dim FoundOrder
 
FoundOrder = ACCPACRECORDEXISTS("SAMS300INC",0,"VI0700","ORDNUMBER",%ORDNUMBER)
 
DuplicateOrder = GetRegisteredValue(%ORDNUMBER)  ""
 
RegisterValue %ORDNUMBER, %ORDNUMBER
 
if FoundOrder OR (DuplicateOrder) then result = 1
 
if %PAYTYPE="" then result = 5
 
if %PAYTYPE="CC" then
  if %CreditCardType="" then 
    result = 6
    WriteToLog 99, "Credit card type is blank"
  end if
  if %CreditCardType="CC" then 
    result = 6
    WriteToLog 99, "Credit card type is CC"
  end if
end if
 
result
Dim result

Dim DuplicateOrder

result = 0

Dim FoundOrder

FoundOrder = ACCPACRECORDEXISTS("SAMS300INC",0,"VI0700","ORDNUMBER",%ORDNUMBER)

DuplicateOrder = GetRegisteredValue(%ORDNUMBER)  ""

RegisterValue %ORDNUMBER, %ORDNUMBER

if FoundOrder OR (DuplicateOrder) then result = 1

if %PAYTYPE="" then result = 5

if %PAYTYPE="CC" then
  if %CreditCardType="" then 
    result = 6
    WriteToLog 99, "Credit card type is blank"
  end if
  if %CreditCardType="CC" then 
    result = 6
    WriteToLog 99, "Credit card type is CC"
  end if
end if

result
Support
9 years ago
Support 9 years ago

Django, I can replicate your issue. Can you ensure:

  1. The view VI0700 is valid.
  2. The field "ORDNUMBER" (i.e. the 4th argument) is valid?

We do need to handle errors on the AccpacXXX functions in a much better manner.

D Dunn
9 years ago
D Dunn 9 years ago

VI0700 is a valid view.  It is an Orchid Extender view.  ORDNUMBER is a valid field within that table.  We processed about 60 transactions this morning with no problems.  Then the error appeared.  We restarted IMan and processed another 80 transactions, including the one reported in the log as being affected by this error message.

Support
9 years ago
Support 9 years ago

Django, would it be possible for you to use an alternative function?

For example you could use just the standard Lookup function, or the AccpacCustomLookup (which uses CS0120).

Thanks

D Dunn
9 years ago
D Dunn 9 years ago

I'll try switching over to the custom lookup.  I'm getting this message every other day.  

D Dunn
9 years ago
D Dunn 9 years ago

Just an update - using AccpacERPCustomLookup appears to be more stable.  This message hasn't appear today at all.

7 years ago
D Dunn 7 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