Edit Mode Error Message

Discussion of issues, suggestions and bugs of Devart Excel Add-ins, our product line for connecting Excel to external data from cloud applications and databases
Post Reply
pryan
Posts: 5
Joined: Fri 19 Feb 2016 18:56

Edit Mode Error Message

Post by pryan » Mon 11 Apr 2016 19:06

Hello,
I have been using Devart Excel Add-ins on a very limited basis for the past few weeks and am trying to really dig into it now for the first time. I am trying to enter edit mode to modify cell values and am getting the following message: "Data cannot be edited because the table does not have columns that uniquely identify rows (primary key or unique index columns)". However, I feel very confident that my data does contain not just one, but multiple columns that can be used to this end and which are defined as indexes by the application from which the data was obtained.

Specifically, I am using a SQL view of the LINEITEM.DAT from Sage 50 US as my data source.

Does anyone have experience troubleshooting this error message?

Thanks!
Phil

Pinturiccio
Devart Team
Posts: 2420
Joined: Wed 02 Nov 2011 09:44

Re: Edit Mode Error Message

Post by Pinturiccio » Wed 13 Apr 2016 13:31

pryan wrote:Specifically, I am using a SQL view of the LINEITEM.DAT from Sage 50 US as my data source.
Do you mean http://sagecity.na.sage.com/support_com ... unting_us/?
1. Which Excel Add-in do you use in order to connect to this data source? Is it Excel Add-in for Oracle or may be Excel Add-in for SQL Server or something else?
2. Do you establish a connection in Excel Add-ins, retrieve data, and then get this error after clicking "Edit mode"?

pryan
Posts: 5
Joined: Fri 19 Feb 2016 18:56

Re: Edit Mode Error Message

Post by pryan » Wed 13 Apr 2016 14:25

Hi Pinturiccio,

Yes, I am using Sage 50 Accounting US.
I am using the SQL Server Excel Add-in from DevArt Excel Add-ins 1.5.239.0.
Yes, I established a connection, retrieved the data and now am getting this error message when clicking "Edit Mode".

Thanks and please let me know if you need additional info to assist!

Phil

Pinturiccio
Devart Team
Posts: 2420
Joined: Wed 02 Nov 2011 09:44

Re: Edit Mode Error Message

Post by Pinturiccio » Thu 14 Apr 2016 13:07

Devart Excel Add-ins does not support such source as Sage 50 Accounting US. You can find the list of the supported sources here https://www.devart.com/excel-addins/compatibility.html

We will investigate the possibility to support the Sage 50 Accounting US source, but we can't tell any timeframe at the moment.

pryan
Posts: 5
Joined: Fri 19 Feb 2016 18:56

Re: Edit Mode Error Message

Post by pryan » Thu 14 Apr 2016 13:31

OK, so just to make sure we are on the same page:
>The raw data is from Sage 50 Accounting US,
>the SQL view drawing from the raw data is in SQL Server,
>and DevArt Excel Add-ins is able to retrieve the data from the SQL Server view, but cannot edit and write back because the raw data came from Sage 50 Accounting US, which is not currently supported?

Would I be assuming correctly that there is no current way to use DevArt to connect directly to the Sage 50 Accounting US .DAT files?

Thanks,
Phil

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Re: Edit Mode Error Message

Post by Shalex » Mon 25 Apr 2016 13:05

We have reproduced the following issue with linked servers:
1) creating a connection to SQL Server
2) choosing "SQL Query" (instead of default "Visual Query Builder") in Import Data Wizard and typing the query:

Code: Select all

select * from Northwind...Categories
As a result, data are successfully imported to Excel sheet
3) clicking Edit Mode to modify data and send them back to the database, modifying some field, pressing Enter, clicking Commit: "Invalid object name 'Categories'.".
The reason of the problem is that Devart Excel Add-ins generates the "Categories" name of object instead of "Northwind...Categories".

We will notify you when the issue is fixed.

JIC: navigate to the Devart menu in Excel > Options > Edit > Error Handling > select the Show SQL option to see the generated SQL query when committing changes.

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Re: Edit Mode Error Message

Post by Shalex » Wed 11 May 2016 13:31

The bug with SQL generation when editing tables via linked server is fixed. We have just sent the build with the fix to your email used at the forum.

JIC: OLE DB provider "Microsoft.ACE.OLEDB.12.0" for linked server does not support transactions. You can turn off usage of transactions by Devart Excel Add-ins via Options -> Error Handling -> Use transaction.

pryan
Posts: 5
Joined: Fri 19 Feb 2016 18:56

Re: Edit Mode Error Message

Post by pryan » Thu 12 May 2016 13:42

Hi Shalex,

Thank you for the effort but the new build did not resolve my error.
pryan wrote:I am trying to enter edit mode to modify cell values and am getting the following message: "Data cannot be edited because the table does not have columns that uniquely identify rows (primary key or unique index columns)". However, I feel very confident that my data does contain not just one, but multiple columns that can be used to this end and which are defined as indexes by the application from which the data was obtained.

Specifically, I am using a SQL view of the LINEITEM.DAT from Sage 50 US as my data source.
Can you help me resolve?
Thanks!
Phil

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Re: Edit Mode Error Message

Post by Shalex » Fri 13 May 2016 16:25

1. Please send us your test *.DAT file. It should include a test view which represents at least one record for reproducing the issue.
2. You followed the steps described at viewtopic.php?t=33487#p116023, didn't you?

Post Reply