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
Daniel Martins 4Daniel Martins 4 

Error in the Lightning Connect module

When checking the challenge  I get a persisting issue with the "Phone Plan" external object 

Displayed message is : 
Challenge Not yet complete... here's what's wrong: 
There was an unexpected error in your org which is preventing this assessment check from completing: System.ExternalObjectException: data.api.DataSourceException: This data is no longer available. The "Phone_Plan" table in the external data source is currently unavailable. Try again later or contact your administrator for help.


I have tried with a new developer ORG and I get the same error.

Thanks. 
pconpcon
Can you please provide a screenshot of your External Data source's configuration?
Daniel Martins 4Daniel Martins 4
Hi Pcom,

This is the screenshot

User-added image
pconpcon
So to start with, trailhead is not designed to work with a namedspace org.  So I would recommend that you try again with a new Developer Edition org [1] that does not have a namespace.  Secondly, it looks like the objects were renamed.  This could be a change in the data on the backend or it could have been something that you did.  When I validate and sync this odata endpoint, I get "phone_plans" and "phones" not their single noun versions.  I would delete the two external objects, re-validate and sync and then finish the work.  If that does not work then I would try again in a new Developer Edition org without a namespace.  Also, take a read over this [2] to ensure that you don't lose your existing trailhead badges by logging into trailhead with your primary account and then logging into the secondary org to do your trailhead work.

[1] https://developer.salesforce.com/signup
[2] https://developer.salesforce.com/forums/?id=906F00000005JciIAE
BESTINA MAGDALENEBESTINA MAGDALENE
Hi Daniel Martins 4,

please check if your table name is "phone_plans" . 

I got the same error and when i corrected this , it worked. give it a try!

 
ritesh jaiswal 15ritesh jaiswal 15
Try to sync again , And after sync try to edit the object name and label only. Not the table name
Eraaj Khan 22Eraaj Khan 22
I ran into the same issue. I had to change the external data object names from phone_plans and phones to Phone_Plan and Phone. The excercise guide clearly says "Note that you will need to adjust the Object Names for the two external objects from the default setting after the initial sync". But once object names are changed they are no longer accessible/available. I've attemted several times but to no use. The solution seems to be 'Get a  new Dev Org' and that's not ideal.

Error Message
Keith StegerKeith Steger
Just had the same issue. After troubleshooting I found that I had not read the last line of the challenge carefully enough.

"Make sure that you don’t change the Table Name field in either external object."

When I double-checked my work I had copy-pastaed into the this field also, which fouled it up. When I fixed this field, all was good.
 
TalhaaqeelTalhaaqeel

Try from different org. And start the challenge all over again. Use Trailhead Playground 2 instead of Playground 1. 

Dont change the table's name field, leave phone_plans and phones in external object. 

Anita SumariAnita Sumari
I am still getting this error too after trying the above - any tips?
There was an unexpected error in your org which is preventing this assessment check from completing: System.ExternalObjectException: An error occurred while connecting to the external system. Please try again, or contact your administrator. Attempted to reach this URL: https://phone-odata-demo.herokuapp.com/devices.svc/phones?$top=1&$select=ID,UUID. Error received from the external system: 500: Internal Server Error
Kalpana NadendlaKalpana Nadendla

Kalpana Nadendla
I am getting this error,could someone help with the solution?
There was an unexpected error in your org which is preventing this assessment check from completing: System.ExternalObjectException: An error occurred while connecting to the external system. Please try again, or contact your administrator. Attempted to reach this URL: https://phone-odata-demo.herokuapp.com/devices.svc/phone_plans?$top=1&$inlinecount=allpages&$select=Id. Error received from the external system: 500: Internal Server Error
 
kishore avs 1kishore avs 1
Hello

I am still facing the same error

There was an unexpected error in your org which is preventing this assessment check from completing: System.ExternalObjectException: An error occurred while connecting to the external system. Please try again, or contact your administrator. Attempted to reach this URL: https://phone-odata-demo.herokuapp.com/devices.svc/phone_plans?$top=1&$inlinecount=allpages&$select=Id. Error received from the external system: 503: Application Error

Please help me
Maria KuznetsovaMaria Kuznetsova

Hi there! I'm facing the same error 

There was an unexpected error in your org which is preventing this assessment check from completing: System.ExternalObjectException: An error occurred while connecting to the external system. Please try again, or contact your administrator. Attempted to reach this URL: https://phone-odata-demo.herokuapp.com/devices.svc/phone_plans?$top=1&$inlinecount=allpages&$select=Id. Error received from the external system: 503: Application Error

Alberto CataniaAlberto Catania
I have the same problem.

There was an unexpected error in your org which is preventing this assessment check from completing: System.ExternalObjectException: An error occurred while connecting to the external system. Please try again, or contact your administrator. Attempted to reach this URL: https://phone-odata-demo.herokuapp.com/devices.svc/phone_plans?$top=1&$inlinecount=allpages&$select=Id. Error received from the external system: 503: Application Error..
In my opinion is the link that does not work anymore. I tried even with different profiles and it still give the same identical problem..
ForcesaleForcesale
Hi,

I keep getting the same error.

There was an unexpected error in your org which is preventing this assessment check from completing: System.ExternalObjectException: An error occurred while connecting to the external system. Please try again, or contact your administrator. Attempted to reach this URL: https://phone-odata-demo.herokuapp.com/devices.svc/phone_plans?$top=1&$inlinecount=allpages&$select=Id. Error received from the external system: 503: Application Error
Razi FaizeeRazi Faizee
Hi,
I am also facing error.
There was an unexpected error in your org which is preventing this assessment check from completing: System.ExternalObjectException: An error occurred while connecting to the external system. Please try again, or contact your administrator. Attempted to reach this URL: https://phone-odata-demo.herokuapp.com/devices.svc/phone_plans?$top=1&$inlinecount=allpages&$select=Id. Error received from the external system: 503: Application Error

Please someone help us out.
Kalpana NadendlaKalpana Nadendla
Hello All,
I tried with another ID too,it still showing same error,could someone help with this issue....
here was an unexpected error in your org which is preventing this assessment check from completing: System.ExternalObjectException: An error occurred while connecting to the external system. Please try again, or contact your administrator. Attempted to reach this URL: https://phone-odata-demo.herokuapp.com/devices.svc/phone_plans?$top=1&$inlinecount=allpages&$select=Id. Error received from the external system: 503: Application Error
C. HennigC. Hennig
Same here for me, all id and object names are correct but still:

There was an unexpected error in your org which is preventing this assessment check from completing: System.ExternalObjectException: An error occurred while connecting to the external system. Please try again, or contact your administrator. Attempted to reach this URL: https://phone-odata-demo.herokuapp.com/devices.svc/phone_plans?$top=1&$inlinecount=allpages&$select=Id. Error received from the external system: 503: Application Error
Hemanth Krishna 30Hemanth Krishna 30
Can any one please help me solving  this challege

Use Salesforce Connect to link an External Object with Salesforce Users
The mobile phones being tracked by an external application are used by specific users in your Salesforce instance. Create an indirect lookup relationship between the 'Phone' External Object and the 'User' standard object
.
Create an OData 2.0 external data source with 'Mobile Devices' as the label, 'Mobile_Devices' as the name, and this URL: https://phone-odata-demo.herokuapp.com/devices.svc/. Note: If you have completed the previous challenge in this module ('Setting up Salesforce Connect'), the External Data Source should already exist in your Developer Edition.
Add a new 'Phone UUID' custom field on the User standard object with the resulting API name of 'Phone_UUID__c'. The field should be of type 'Text' and marked as 'Unique' and 'External ID'.
Change the 'UUID' field on the 'Phone__x' external object to be an indirect lookup relationship to the 'User' standard object. Use the 'Phone_UUID__c' field as the matching key for this indirect lookup relationship.
Update any existing User record in your Developer Edition instance to have a value of '0000123442' for the 'Phone_UUID__c' field.

ERROR while trying to check the challege


There was an unexpected error in your org which is preventing this assessment check from completing: System.ExternalObjectException: An error occurred while connecting to the external system. Please try again, or contact your administrator. Attempted to reach this URL: https://phone-odata-demo.herokuapp.com/devices.svc/phones?$top=1&$inlinecount=allpages&$select=ID,UUID. Error received from the external system: 503: Application Error
Christopher Watkins 4Christopher Watkins 4
I too am getting the same error despite a second playground, mutliple scenarnios tried, and making sure the table name is the same. In my very limited experience read of this, I think there is a fundemental issue with the heroku app link provided. That again is an uneducated conlusion here. I am having multiple issues with the heroku app url's (or apps) they are providing for these challenges. 
Daniela PiñinDaniela Piñin
Hello,

I also keep getting this error: There was an unexpected error in your org which is preventing this assessment check from completing: System.ExternalObjectException: An error occurred while connecting to the external system. Please try again, or contact your administrator. Attempted to reach this URL: https://phone-odata-demo.herokuapp.com/devices.svc/phone_plans?$top=1&$inlinecount=allpages&$select=Id. Error received from the external system: 503: Application Error

And Salesforce support says that Salesforce Connect is out of their scope of support, so they can't help me. Is there anyone that can help me to solve it? please
Bruno Souza 29Bruno Souza 29

I am receiving the same error too, I think theres an error in this Module, because there is the limitation on creating more than one External Data Source. I created one in a Trailhead Playground and the second one I created in a Developer Edition Org and I am receiving the same error: 

There was an unexpected error in your org which is preventing this assessment check from completing: System.ExternalObjectException: An error occurred while connecting to the external system. Please try again, or contact your administrator. Attempted to reach this URL: https://phone-odata-demo.herokuapp.com/devices.svc/phones?$top=1&$inlinecount=allpages&$select=ID. Error received from the external system: 503: Application Error

One thing I noticed is: the challenge says to change the API name of the object to Phone_Plan__x and then it says to change to Phone__x, when I do that is shows an error saying that the object Phone_Plan__x does not exist. When we change the name again to Phone__x it shows the above error. I tried to recreate the objects by syncing again but the problem remains.

Kalpana NadendlaKalpana Nadendla
Hello,

Looks they completely removed the Salesforce Connect module from the Admin Advanced!!I am not able to see that module.

Thanks
Kalpana