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 when querying for column msdyn_AgentType in System User table #337

Closed
n0rthface opened this issue Aug 16, 2023 · 0 comments
Closed

Comments

@n0rthface
Copy link

n0rthface commented Aug 16, 2023

Hi Mark,

I do not know if this issue only occurs with this specific column or if it is more general issue with SQL 4 CDS 7.4 and XRMToolBox 1.2023.6.65.

When using FetchXML queries being generated by SQL 4 CDS, I receive an error message for the following statement because the logical name casing deviates between attribute name and condition attribute element values. It is possible to query for the attribute without it being used as a condition attribute.
Please have a look if this needs a fix.

SQL
SELECT su.msdyn_agentType FROM systemuser su WHERE su.msdyn_agentType = 192350000;

FetchXML
<fetch xmlns:generator='MarkMpn.SQL4CDS'> <entity name='systemuser'> <attribute name='msdyn_agentType' /> <filter> <condition attribute='msdyn_agenttype' operator='eq' value='192350000' /> </filter> </entity> </fetch>

Error
'SystemUser' entity doesn't contain attribute with Name = 'msdyn_agenttype' and NameMapping = 'Logical'. MetadataCacheDetails: ProviderType=Dynamic, StandardCache=True, IsLoadedInStagedContext = False...

Thanks Hauke

@MarkMpn MarkMpn closed this as completed in d008580 Sep 3, 2023
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

1 participant