Back to forum list… Back to How Do I?...

No longer able to DELETE FROM from Database Read Reader (2 replies and 1 comment)

Mark Binkley
2 years ago
Mark Binkley 2 years ago

Hello,

Prior to upgrading to v5.0, I was able to issue a DELETE to clear a SQL table's records.    Using a Database Read Reader, my SQL statement was:

Delete
FROM dbo.ARInvoiceUpload

However, with v5.0 I get "Object reference not set to an instance of an object." error.

Is there a different, legal way to accomlish deleting all records from a temp table?

Thank you.

 

Mark Binkley
2 years ago
Mark Binkley 2 years ago

Please disregard.  I have used a method where I mark the records as processed rather than delete them.

Thanks.

Support
2 years ago
Support 2 years ago

Mark, just to let you that there is a bug here, but two easy workarounds:

  1. Change the connection string from OleDB to ODBC OR;
  2. Alter the SQL Statement to return a value.

    Change from:

    delete from Customers

    To 

    delete from Customers;
    select "1" as "FakeID"

 

Mark Binkley
2 years ago

Thank you! This worked nicely.

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