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

Getting TypeError for visual components from ORG check app in PROD #453

Open
Ramiya04 opened this issue Nov 4, 2024 · 33 comments
Open

Getting TypeError for visual components from ORG check app in PROD #453

Ramiya04 opened this issue Nov 4, 2024 · 33 comments
Assignees
Labels
bug Something isn't working

Comments

@Ramiya04
Copy link

Ramiya04 commented Nov 4, 2024

Screen Shot 2024-11-03 at 9 10 24 PM **Describe the bug** After installing ORGCheck app in production, clicking on Visual Components tab is giving the attached error.

To Reproduce
Org Check is spinning around for 1 seconds...

We really apologize for this error.

Please consider logging a new issue with all information that may help to reproduce the error you have (including some red message in your browser console).

Thank you!

TAB visual-force-pages TypeError:
TypeError
at eval (modules/orgcheck/orgcheckApp.js:3:53191)
at Array.forEach ()
at eval (modules/orgcheck/orgcheckApp.js:3:53059)
at Proxy.forEach ()
at eval (modules/orgcheck/orgcheckApp.js:3:53027)
at eval (eval at (https://york--orgcheck.vf.force.com/auraFW/javascript/ZzhjQmRxMXdrdzhvS0RJMG5qQVdxQTdEcXI0cnRHWU0zd2xrUnFaakQxNXc5LjMyMC4y/aura_prod.js:105:100625), :3:23715)
at en. (https://york--orgcheck.vf.force.com/auraFW/javascript/ZzhjQmRxMXdrdzhvS0RJMG5qQVdxQTdEcXI0cnRHWU0zd2xrUnFaakQxNXc5LjMyMC4y/aura_prod.js:105:68834)
RECIPE visual-force-pages Error in dataset!
DATASET visual-force-pages TypeError:
TypeError
at eval (modules/orgcheck/orgcheckApp.js:3:53191)
at Array.forEach ()
at eval (modules/orgcheck/orgcheckApp.js:3:53059)
at Proxy.forEach ()
at eval (modules/orgcheck/orgcheckApp.js:3:53027)
at eval (eval at (https://york--orgcheck.vf.force.com/auraFW/javascript/ZzhjQmRxMXdrdzhvS0RJMG5qQVdxQTdEcXI0cnRHWU0zd2xrUnFaakQxNXc5LjMyMC4y/aura_prod.js:105:100625), :3:23715)
at en. (https://york--orgcheck.vf.force.com/auraFW/javascript/ZzhjQmRxMXdrdzhvS0RJMG5qQVdxQTdEcXI0cnRHWU0zd2xrUnFaakQxNXc5LjMyMC4y/aura_prod.js:105:68834)

@Ramiya04 Ramiya04 added the bug Something isn't working label Nov 4, 2024
@VinceFINET
Copy link
Collaborator

What a stack trace !!
I need to change that as well cause it's not easy to understand what's wrong...
BUT I will work on this.

@VinceFINET VinceFINET added this to the Version Beryllium [Be,4] milestone Nov 19, 2024
@VinceFINET
Copy link
Collaborator

can you send me the orgID where you see this issue? if confidential send it to me via DM.

@VinceFINET
Copy link
Collaborator

@Ramiya04 any update on this one?

@Ramiya04
Copy link
Author

Ramiya04 commented Nov 22, 2024 via email

@VinceFINET
Copy link
Collaborator

any feedback?

@Ramiya04
Copy link
Author

Ramiya04 commented Nov 28, 2024 via email

@VinceFINET
Copy link
Collaborator

no issue. I can't log to your org with the org id. for me it's just an information that i can use to see what was wrong with org check. If you will it's more to see further than this unreadable stack trace!

@Ramiya04
Copy link
Author

Ramiya04 commented Nov 28, 2024 via email

@VinceFINET
Copy link
Collaborator

VinceFINET commented Nov 28, 2024

Ok

Can you run the following SOQL queries using the Tooling API please:

first one:

SELECT COUNT(Id)
FROM ApexPage 
WHERE ManageableState IN ('installedEditable', 'unmanaged')

second one:

SELECT NamespacePrefix, COUNT(Id)
FROM ApexPage 
WHERE ManageableState IN ('installedEditable', 'unmanaged')
GROUP BY NamespacePrefix

And give me the output of the two.

Thank you!

@VinceFINET
Copy link
Collaborator

(using the tooling api)

@Ramiya04
Copy link
Author

Ramiya04 commented Nov 28, 2024 via email

@VinceFINET
Copy link
Collaborator

let me insert that amount of VIsualforce Pages in my test org and see if that comes from the number of pages...

@VinceFINET
Copy link
Collaborator

I inserted fake Visual Force Pages in my test org.
Unfortunately, I could not reproduce the error you have.
image

@VinceFINET
Copy link
Collaborator

Is it possible to plan a screen share next week?

@Ramiya04
Copy link
Author

Ramiya04 commented Nov 29, 2024 via email

@Ramiya04
Copy link
Author

Ramiya04 commented Nov 29, 2024 via email

@VinceFINET
Copy link
Collaborator

Can you set your user in production with "Debug Mode"
image

Then launch Org Check again and see if the stacktrace can be more explicit...

@Ramiya04
Copy link
Author

Ramiya04 commented Dec 2, 2024 via email

@VinceFINET
Copy link
Collaborator

i don't see any picture in github sorry

@Ramiya04
Copy link
Author

Ramiya04 commented Dec 2, 2024 via email

@VinceFINET
Copy link
Collaborator

ok i had an issue raised about error in this tab only. that was due to a typo in the code.
i do hope you have the same issue here.
if so the error is corrected and will be deployed today. i will let you know.

@VinceFINET
Copy link
Collaborator

The new version is being pushed.

@VinceFINET
Copy link
Collaborator

It should be fine. could you check if ti's working fine now?

@Ramiya04
Copy link
Author

Ramiya04 commented Dec 5, 2024 via email

@VinceFINET
Copy link
Collaborator

VinceFINET commented Dec 5, 2024 via email

@Ramiya04
Copy link
Author

Ramiya04 commented Dec 6, 2024 via email

@VinceFINET
Copy link
Collaborator

VinceFINET commented Dec 6, 2024 via email

@Ramiya04
Copy link
Author

Ramiya04 commented Dec 6, 2024 via email

@VinceFINET
Copy link
Collaborator

vfinet at gmail dot com
send a first invite i will propose a time if not ok for me. (my timezone is UTC+1)

@VinceFINET
Copy link
Collaborator

:) received and accepted!

@Ramiya04
Copy link
Author

Ramiya04 commented Dec 6, 2024 via email

@VinceFINET
Copy link
Collaborator

Thank you for the file you sent me.

So the error you have happens when the application is getting the dependencies for the visual force pages.

{
    "compositeResponse": [
        {
            "body": {
                "totalSize": 992,
                "done": true,
                "records": [...]
            },
            "httpHeaders": {},
            "httpStatusCode": 200,
            "referenceId": "chunk0"
        },
        {
            "body": {
                "totalSize": 989,
                "done": true,
                "records": []
            },
            "httpHeaders": {},
            "httpStatusCode": 200,
            "referenceId": "chunk100"
        },
        {
            "body": [
                {
                    "message": "An unexpected error occurred. Please include this ErrorId if you contact support: 1458909393-3355533 (1140092415)",
                    "errorCode": "UNKNOWN_EXCEPTION"
                }
            ],
            "httpHeaders": {},
            "httpStatusCode": 500,
            "referenceId": "chunk200"
        },
        {
            "body": {
                "totalSize": 19,
                "done": true,
                "records": [...]
            },
            "httpHeaders": {},
            "httpStatusCode": 200,
            "referenceId": "chunk300"
        }
    ]
}

In the response you have three blocks: chunk0, chunk100, chunk200 and chunk300.
All are ok (=httpStatusCode: 200) except chunk200 (=httpStatusCode: 500)

The chunk that has issue had the following query (in tooling api):

SELECT MetadataComponentId, MetadataComponentName, MetadataComponentType, RefMetadataComponentId, 
RefMetadataComponentName, RefMetadataComponentType FROM MetadataComponentDependency WHERE 
RefMetadataComponentId IN (
'0660f000002r74D','066G0000002PyUB','066G00000032q2q','0660f000002atPw',
'0660f000002atPx','0660f000002atPv','0660f000002r74E','0660f000002atPy','0660f000002r5ro','0664R000002ywcw',
'0664R000002ywcn','0660f000002asi7','0660f000002asi8','0660f000002asi9','0660f000002asiA','0660f000002asiB',
'0660f000002asiC','066G0000002ylRK','066G0000002ylRL','066G0000002ylRM','066G0000002Pz7h',
'0664R000003sGwY','0664R000003sGwT','0664R000003sGwZ','0664R000002yvsq','0664R000002yvsr',
'0664R000002yvss','066G0000002Ftwe','0660f000002ataU','0660f000002ataV','0660f000002ataW','0660f000002ataX',
'0660f000002ataY','066G0000002Ttaj','066G0000002Ttak','066G0000002Ttal','066G0000002Ttam','066G0000002Ttan',
'066G0000002Ttao','066G0000002Ttap','066G0000002Ttaq','066G0000002Ttar','066G0000002Ttas',
'066G0000002Ttat','066G0000002Ttau','066G0000002Ttav','0664R000003JHiC','0664R000003JHZ0',
'0664R000002jA88','0664R000002jA89','0664R000002jA8A','0664R000002jA8B','0664R0000037LEN',
'0664R000003JFXL','066G00000032s41','066G0000002uWms','0664R000002j3iJ','0660f000002uhRO',
'0660f000002uhRP','0660f000002uhRQ','0660f000002uhRI','0660f000002uhRJ','0660f000002uhRL',
'0660f000002uhRM','0660f000002uhRN','0660f0000037ASc','066G0000002PqYB','066G0000002PG3q',
'066G0000002FrRO','066G0000002FrRP','0660f000002uhRm','066G0000002Of77','0660f000002uhRn',
'0660f000002uhRo','0660f000002uhRp','0660f000002uhRq','0660f000002uhRr','0664R000002ywT6',
'0664R000002ywT7','066G0000002ylRJ','0664R000003JHlQ','0664R000002ywQv','0664R000002ywQw',
'0664R000002ywQx','0664R000002ywQy','0664R000002ywQz','0664R000002ywR0','0664R000002ywR1',
'0664R000002ywT3','0664R000002ywT4','0664R000002ywT5','0660f000002yutm','0660f000002yutn',
'0660f000002iO32','0660f000002iO33','0660f0000032vBC','0660f000002rCxy','066G0000002f1Ht',
'0664R000003JH8q','0664R000003JGB5'
 OR MetadataComponentId IN (
'0660f000002r74D','066G0000002PyUB','066G00000032q2q','0660f000002atPw',
'0660f000002atPx','0660f000002atPv','0660f000002r74E','0660f000002atPy','0660f000002r5ro','0664R000002ywcw',
'0664R000002ywcn','0660f000002asi7','0660f000002asi8','0660f000002asi9','0660f000002asiA','0660f000002asiB',
'0660f000002asiC','066G0000002ylRK','066G0000002ylRL','066G0000002ylRM','066G0000002Pz7h',
'0664R000003sGwY','0664R000003sGwT','0664R000003sGwZ','0664R000002yvsq','0664R000002yvsr',
'0664R000002yvss','066G0000002Ftwe','0660f000002ataU','0660f000002ataV','0660f000002ataW','0660f000002ataX',
'0660f000002ataY','066G0000002Ttaj','066G0000002Ttak','066G0000002Ttal','066G0000002Ttam','066G0000002Ttan',
'066G0000002Ttao','066G0000002Ttap','066G0000002Ttaq','066G0000002Ttar','066G0000002Ttas',
'066G0000002Ttat','066G0000002Ttau','066G0000002Ttav','0664R000003JHiC','0664R000003JHZ0',
'0664R000002jA88','0664R000002jA89','0664R000002jA8A','0664R000002jA8B','0664R0000037LEN',
'0664R000003JFXL','066G00000032s41','066G0000002uWms','0664R000002j3iJ','0660f000002uhRO',
'0660f000002uhRP','0660f000002uhRQ','0660f000002uhRI','0660f000002uhRJ','0660f000002uhRL',
'0660f000002uhRM','0660f000002uhRN','0660f0000037ASc','066G0000002PqYB','066G0000002PG3q',
'066G0000002FrRO','066G0000002FrRP','0660f000002uhRm','066G0000002Of77','0660f000002uhRn',
'0660f000002uhRo','0660f000002uhRp','0660f000002uhRq','0660f000002uhRr','0664R000002ywT6',
'0664R000002ywT7','066G0000002ylRJ','0664R000003JHlQ','0664R000002ywQv','0664R000002ywQw',
'0664R000002ywQx','0664R000002ywQy','0664R000002ywQz','0664R000002ywR0','0664R000002ywR1',
'0664R000002ywT3','0664R000002ywT4','0664R000002ywT5','0660f000002yutm','0660f000002yutn',
'0660f000002iO32','0660f000002iO33','0660f0000032vBC','0660f000002rCxy','066G0000002f1Ht',
'0664R000003JH8q','0664R000003JGB5'
)

So if you run only this query with tooling api you will have the same error....

@Ramiya04
Copy link
Author

Ramiya04 commented Dec 13, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants