I'm trying to deploy an app to a packaging (Developer Edition) org. I successfully pulled the source from a scratch org and successfully converted the source using force:source:convert.

I run the following command:

sudo sfdx force:mdapi:deploy -d metadata -u [my username] -w -1 --verbose --loglevel trace

...and the CLI outputs the following:

=== Result
Status:  Failed
jobid:  0Af1I00000TWEFPSA5
Completed:  2017-11-29T20:38:01.000Z
Component errors:  0
Components deployed:  182
Components total:  244
Tests errors:  0
Tests completed:  0
Tests total:  0
Check only: false

I see the following line in the sfdx.log file (log level was set to 'trace'):

\"errorMessage\":\"UNKNOWN_EXCEPTION: EXTERNAL_OBJECT_EXCEPTION: Could not locate metadata file: IotPsl-1.uld.xml\",\"errorStatusCode\":\"UNKNOWN_EXCEPTION\",\"id\":\"0Af1I00000TWEFPSA5\"

I don't know what the IotPsl-1.uld.xml file is or why the error is an EXTERNAL_OBJECT_EXCEPTION.

Any information on what this error means or how to resolve it would be helpful.


I removed the permission set folder from the metadata directory, ran the mdapi:deploy command, and the operation succeeded. This was an educated guess based on the "Known Limitations" docs, which mentions that an "Unknown" error will be thrown when running the force:source:push command after removing a permission set locally.

While I did not remove the permission set locally, nor did I have a problem with the force:source:push command I guessed that the issues might be related to permission sets.

Any information on what might be the root cause of the problem or if this is a DX bug would be helpful.


I verified that I cannot create or modify any further permission sets via the metadata api and through the UI. The permission set screen in SF displays the following message:

enter image description here

  • 1
    I don't think its a DX bug. We've run into this issue today with our appexchange package (in code that uses the Metadata API) and I also saw a tweet that someone got this error while trying to uninstall a different appexchange package. – Phil B Nov 29 '17 at 22:41
  • 2
    To clarify above, it was actually code that that queries PermissionSet and PermissionSetAssignment – Phil B Nov 29 '17 at 22:48
  • Did you also encounter the error pictured above when attempting to modify permission sets through the GUI? – salesforce-hacker Nov 29 '17 at 22:57
  • 1
    Yes, my coworker observed that as well. – Phil B Nov 29 '17 at 22:59
  • 1
    I've logged a case as well and they told me they will call us today. I will post any more information I find out from that call. – salesforce-hacker Nov 30 '17 at 16:04

Known issue published, they are patching tonight.


| improve this answer | |
  1. Known issue is already marked as resolved. https://success.salesforce.com/issues_view?id=a1p3A000000mCtbQAE

  2. We are facing this issue in one of org, any solution or workaround ?

  3. We are querying PermissionSetAssignment in code.

  4. Permission Set listing in Salesforce throws An internal server error has occurred

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.