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

[BUG] InternalExecutionError - metadata object vertex #1712

Open
chandrasub opened this issue Jan 2, 2025 · 0 comments
Open

[BUG] InternalExecutionError - metadata object vertex #1712

chandrasub opened this issue Jan 2, 2025 · 0 comments
Labels
SFGE Issues related to the Salesforce Graph Engine

Comments

@chandrasub
Copy link

Have you tried to resolve this issue yourself first?

Yes

Bug Description

Unexpected Internal Execution Error. The code analyzer engine appears unable to verify both the source and sync. It is failing to handle a reference to metadata for custom settings

Output / Logs

See attached sfge.log file.
sfge.log

Vertex 1:
BeginLine=103, DefiningType=PLM:

Map<String, PDLM__Configuration__c> configs = PDLM__Configuration__c.getAll();

Vertex 2:
BeginLine=118, DefiningType=PLM:

public static string getConfiguration(string name, string defaultValue) {
PDLM__Configuration__c cfg = PDLM__Configuration__c.getValues(name);
return String.isNotBlank(cfg?.PDLM__Value__c) ? cfg.PDLM__Value__c : defaultValue;
}

Steps To Reproduce

sf scanner run dfa --format csv --outfile CodeAnalyzerDFA5.csv --target ./ --projectdir ./ --category Security

Expected Behavior

the sfdx-scanner must be able to handle metadata references without generating an internal error

Operating System

MacOS Sonoma 14.7.1

Salesforce CLI Version

@salesforce/cli/2.39.6 darwin-arm64 node-v20.18.1

Code Analyzer Plugin (@salesforce/sfdx-scanner) Version

@salesforce/sfdx-scanner (4.7.0)

Java Version

java version 18.0.1.1 2022-04-22

Additional Context (Screenshots, Files, etc)

note: the latest code analyzer v5.0.0-alpha.3 did not flag this issue. It only happens with sfdx-scanner 4.2 and 4.7

Workaround

NA

Urgency

Moderate

@stephen-carter-at-sf stephen-carter-at-sf added the SFGE Issues related to the Salesforce Graph Engine label Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
SFGE Issues related to the Salesforce Graph Engine
Projects
None yet
Development

No branches or pull requests

2 participants