Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error "DeleteMultiple has not yet been implemented" #469

Open
Feb00 opened this issue May 9, 2024 · 4 comments
Open

Error "DeleteMultiple has not yet been implemented" #469

Feb00 opened this issue May 9, 2024 · 4 comments

Comments

@Feb00
Copy link

Feb00 commented May 9, 2024

Only for some tenants, delete queries fail, example:
image
image

Version 9.0.1
Am I doing something wrong?

@MarkMpn
Copy link
Owner

MarkMpn commented May 9, 2024

What sort of entity is it that you’re using, eg regular, virtual, elastic?

@Feb00
Copy link
Author

Feb00 commented May 9, 2024

Regular entity

@MarkMpn
Copy link
Owner

MarkMpn commented May 9, 2024

This message should only be used on elastic tables, but it sounds like it has been added somehow in the affected tenants for this entity. You can check this by running:

SELECT *
FROM   sdkmessagefilter
       INNER JOIN
       sdkmessage
       ON sdkmessagefilter.sdkmessageid = sdkmessage.sdkmessageid
WHERE  sdkmessagefilter.primaryobjecttypecode = 'xxx_jobqueue'
       AND sdkmessage.name = 'DeleteMultiple';

You should receive 0 records, but in the affected environments I think you will receive 1 result. I'd be interested to understand why this message exists for this entity, but I can work around this in a future update. For now you should be able to avoid the problem by changing the batch size setting to 1, either globally in the SQL 4 CDS settings or by adding the OPTION(USE HINT('BATCH_SIZE_1')) hint for this individual query.

@Feb00
Copy link
Author

Feb00 commented May 10, 2024

I confirm that I get 1 line by running the query in the environments where the problem is present.
Setting the batch sizes to 1 the problem does not occur, thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants