function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Konst MaxxKonst Maxx 

500 Internal Server Error

Hi,

 

I have this method:

    public void testListMetadata() {
        try {
            ListMetadataQuery query = new ListMetadataQuery();
            query.setType("Package");
            double asOfVersion = 26.0;
            // Assuming that the SOAP binding has already been established.
            FileProperties[] lmr = sfd.getMetaConnection().listMetadata(
                    new ListMetadataQuery[]{query}, asOfVersion);
            if (lmr != null) {
                for (FileProperties n : lmr) {
                    System.out.println("Component fullName: " + n.getFullName());
                    System.out.println("Component type: " + n.getType());
                }
            }
        } catch (ConnectionException ce) {
            ce.printStackTrace();
        }
    }

 I assume it should return for me list of the installed packages.

Is it correct assumption?

 

But I have an error:

com.sforce.ws.SoapFaultException: UNKNOWN_EXCEPTION: An unexpected error occurred. Please include this ErrorId if you contact support: 1379208547-383 (1089039615)
	at com.sforce.ws.transport.SoapConnection.createException(SoapConnection.java:205)
	at com.sforce.ws.transport.SoapConnection.receive(SoapConnection.java:149)
	at com.sforce.ws.transport.SoapConnection.send(SoapConnection.java:98)
	at com.sforce.soap.metadata.MetadataConnection.listMetadata(MetadataConnection.java:160)


I've debugged inside and saw that at transport level I have http error 500 Internal Server Error

 

 How to solve it?

Where to create ticket for SF team to investigate this issue?

Flight PlanFlight Plan

Click on "help" after loging in your organisation > Click on "Contact Support" > Now click "Open a Case"

 

 

Hope this will help you.

 

Konst MaxxKonst Maxx

Thanks,

But it looks like for developer account they doesn't provide possibility to open tickets.

Clicking to "Open Case" redirects to the Help page.

Flight PlanFlight Plan
Yes that's true and I think they only provide support to customer's having production environment to log a case.